Fixing Connection Issues
Identify and resolve common connection problems, including server status checks, authentication errors, and network configuration.
Server Not Running in Specified Location
mariadb -uname -p -uname -p
ERROR 2002 (HY000): Can't connect to local MySQL server through
socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")mariadb -uname -p --port=3307 --protocol=tcp
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost'
(111 "Connection refused")netstat -ln | grep mysqld
unix 2 [ ACC ] STREAM LISTENING 33209505 /var/run/mysqld/mysqld.sockUnable to Connect from a Remote Location
Authentication Problems
Problems Exporting Query Results
Access to the Server, but not to a Database
Option Files and Environment Variables
Unable to Connect to a Running Server / Lost root Password
localhost and %
See Also
Last updated
Was this helpful?

