-
Notifications
You must be signed in to change notification settings - Fork 428
MariaDB 111 “Connection refused” #657
Copy link
Copy link
Closed
Description
i was login Error establishing a database connection in my wordpress site . so i login into ssh and try to login in mariadb with username and password from wp-config.php
It gave me Connection refused error . i restart mariadb and used same login and i was able to login it .
this happen 3 time in this week . how to fix it .
PS : SSH LOG
root@reapershop:# mysql -ureapershop_com -p# service mysql restart
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111 "Connection refused")
root@reapershop:
- Stopping MariaDB database server mysqld [ OK ]
- Starting MariaDB database server mysqld [ OK ]
- Checking for corrupt, not cleanly closed and upgrade needing tables.
root@reapershop:# mysql -ureapershop_com -ptrusty-log mariadb.org binary distribution
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 44
Server version: 10.1.8-MariaDB-1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels