I’m trying to connect MySql Server from my machine to a server, for development using. In the server, MySql is running normaly, but I’m not able to connect it remotely.
I’ve already cheked my.cnf removing the line “skip-networking”. In server, the bin/mysqladmin variables returns:
bin/mysqladmin version -u root -pPASSWORD
bin/mysqladmin Ver 8.42 Distrib 5.5.27, for linux2.6 on x86_64
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Server version 5.5.27-log
Protocol version 10
Connection Localhost via UNIX socket
UNIX socket /tmp/mysql.sock
Uptime: 5 min 55 sec
Threads: 1 Questions: 1 Slow queries: 0 Opens: 33 Flush tables: 1 Open tables: 26 Queries per second avg: 0.002
- Server: SuSe Linux
- Client: Windows 7
- MySql: according to the information above.
What would be happening? Thanks!
If you could not connect using the MySQL client, I would suggest that the user you are connecting with is not allowed to connect remotely. That is a right that must be explicitly granted (though most beginning tutorials I have read show creating users that have access from any machine… which opens the door to security risks).
Example:
If you followed the MySQL docs and did something like this:
The user jeffrey would only be allowed to log on from localhost.
However, since you state that you cannot connect using Telnet, I would challenge the statement “PS: is not the Firewall.”
Several firewalls can affect the communication path.
Make sure you understand all firewalls that may be involved.
@JvdBerg’s suggestion is also a good one, to ensure you are listening to all interfaces