Home > Software engineering >  how can I redirect database for local server?
how can I redirect database for local server?

Time:03-19

on a local server I want to redirect the query from a database to my local database. how can i redirect in windows ?

One is "mysql:host=localhost" and the other is "mysql:host=bdd.mysql.db"

i use easyphp (apache, php, sql, ssl) , windows10

i want to redirect "mysql:host=bdd.mysql.db" to "mysql:host=localhost:3388"

thanks

CodePudding user response:

vi your hosts file C:\Windows\System32\drivers\etc\hosts

CodePudding user response:

in the hosts. file i add

127.0.0.1 bdd.mysql.db

  • Related