views:

355

answers:

1

How to connect with a database over the LAN?

I have only the name of the computer.

A: 

You must add your host to the 'user' system table to allow your computer connect remotely to the MySql DB.

You can use instructions like http://www.cyberciti.biz/tips/... to do this.

holub
I change localhost to localhost2 and with telnet in the same computer I tried "telnet localhost2 3306" and I got"Unable to connect to remote host: Connection refused"
Leo
Have you root password to the DB? Try to change host 'localhost' to '%' in the 'user' table and restart mysql.P.S. It's not good idea for the production environment, but you can try this method to overpass your issue.
holub
unsuccessfully :/
Leo
try to turn off the firewall or/and your antivirus protection
holub