Answer the question
In order to leave comments, you need to log in
How to run mySql(mysqld)?
Good afternoon. This is probably not the first question here with such a title. In general, the site (foreign server) says:
Mysql connect error [localhost]: (2002) No such file or directory (400)
"/home/bitrix/ext_www/site.com/bitrix/modules/main/lib/db/mysqliconnection.php"
mysql -u root -p
, I getERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysqld/mysqld.sock' (2)
ps aux | grep mysql
- I receiveroot 15960 0.0 0.0 103340 888 pts/0 S+ 13:36 0:00 grep mysql
sudo service mysql restart
and just service mysql restart
getОстанавливается mysqld: [ OK ]
MySQL Daemon failed to start.
Запускается mysqld: [СБОЙ ]
. In general, it does not start. Logs are empty. Sinned for disk space, butFilesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_web-lv_root
51475068 33136508 15717120 68% /
tmpfs 8017704 72 8017632 1% /dev/shm
/dev/sdd1 487652 103479 358573 23% /boot
/dev/mapper/vg_web-lv_home
1862656752 1160589676 607442924 66% /home
Answer the question
In order to leave comments, you need to log in
Need my.cnf Trouble most likely in it.
1. Find my.cnf and see where the log is written.
2. We go into the log and see what's going on there.
3. We correct those errors that are.
If the errors are not corrected. clear the log reboot the service - log here.
If there are no errors in the log, we throw my.cnf here.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question