Can't access MySql on directadmin

cacanhmini

Verified User
Joined
May 3, 2022
Messages
45
Unable to read /usr/local/directadmin/conf/mysql.conf : Unable to open /usr/local/directadmin/conf/mysql.conf for reading.
No such file or directory

Error connecting to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)

---
This is the message after I access MySQL on directadmin.
Does anyone know this error or fix it please let me know thanks.
 
From old times there was mysql.conf than come additional my.cnf, both files with same content. So if there my.cnf - just make renamed copy there. If single file was deleted - you can create new and put there just two strings:
user=da_admin
passwd=MYSQLPASS
mysql-password you can find in /usr/local/directadmin/scripts/setup.txt
or you can change pass to NEW: https://docs.directadmin.com/other-hosting-services/mariadb-mysql/troubleshooting.html
my.cnf has three strings:
[client]
user=da_admin
passwd=MYSQLPASS
 
Back
Top