Operating System - Linux
1758962 Members
3253 Online
108877 Solutions
New Discussion юеВ

Re: Unable to connect to database

 
Anjana
New Member

Unable to connect to database

Hi ,

I have MYSQL set up on the fedora core 4 machine. I would want to access the DB remotely from a windows machine through EMS MySqlmanager. When i try to register the host it says cannot connect to MySql server. I am otherwise able to connect to the linux box through putty. Please help
2 REPLIES 2
Ivan Ferreira
Honored Contributor

Re: Unable to connect to database

Ensure the database is up:

service mysqld start
service mysqld status

Ensure firewall is down:

service iptables stop

If still won't work, disable SELinux if enabled:

/etc/sysconfig/selinux
SELINUX=disabled

Then reboot.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Stuart Browne
Honored Contributor

Re: Unable to connect to database

Also make sure you have a user configured in the grants list that can access the database from your remote windows workstation.

Generally, a mysql database is set up to only allow connections from localhost. You have to specifically grant permissions to access a database from a remote host.

http://dev.mysql.com/doc/refman/4.1/en/grant.html

for details on the grant syntax.
One long-haired git at your service...