how connect to local mysql server (LAN)

Posted by clarkk on Server Fault See other posts from Server Fault or by clarkk
Published on 2012-06-30T14:11:35Z Indexed on 2012/07/01 3:17 UTC
Read the original article Hit count: 470

Filed under:
|

I got two Debian 6 servers - one for web and one for the database..

How can I connect through the local area network?

On both servers I have permanently changed the hostnames

/etc/hostname
/etc/hosts

web => web-server
db => db-server

In the privileges in mysql I have set the root user to accept requests from web-server (instead of localhost) and from the web-server I connect to db-server

in my.cnf I have escaped the following line:

# bind-address      = 127.0.0.1

error

Warning: mysqli::mysqli(): (HY000/2005): Unknown MySQL server host 'db-server' (1)

© Server Fault or respective owner

Related posts about mysql

Related posts about lan