Thanks in advance for your help.
I encountered a problem with the mysql server, which is the heading of this section, using the command:
mysql -u myuser -pmypass -h `hostname` db_name
I get an error
ERROR 2003 (HY000): Can't connect to MySQL server on 'hostname' (111)
So, I checked the my.cnf file and I have no lines with the “binding address” and “skip-networking”, although I tried to add them and restart, which didn’t change anything.
In addition, there are no errors in the SQL logs, and we (with HeidiSQL) can connect to the server remotely, knowing that the user myuser"@"% . Mysql listens on port 3306, so it's good there
In addition, users created using @localhost work fine on the command line (without the -h option).
What is more intriguing is that other servers that look the same work both locally and remotely with the first command ...
Server works with CentOS 6.2
So, if anyone has an idea about this, I would be glad to hear that.
PS: This is my first post here, so if there are formatting issues, please forgive me
mysql networking centos
Asettouf
source share