S
S
Skrolea2016-07-04 16:17:52
linux
Skrolea, 2016-07-04 16:17:52

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"

I look settings - it is connected to mysqli. Good. I try to enter the database
mysql -u root -p, I get
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysqld/mysqld.sock' (2)

I collect
ps aux | grep mysql- I receive
root      15960  0.0  0.0 103340   888 pts/0    S+   13:36   0:00 grep mysql

Well, it looks like the service is there.
Trying to start mysql - no such service, oh well. Means there is mysqld. I do sudo service mysql restartand just service mysql restartget
Останавливается mysqld:                                    [  OK  ]
MySQL Daemon failed to start.
Запускается mysqld:                                        [СБОЙ ]
. In general, it does not start. Logs are empty. Sinned for disk space, but
Filesystem            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

But there seems to be a place (or what is tmpfs?) What other dances would you recommend?
39d78c11ceb54f7e93bf7b8110d8c44b.png
my.cnf
245428393b1a41a5b5895b8f1eff7682.png3ef86632dc5a4a179bdac1a8f07eb891.png
file in conf.d
b94f7daf484d45ecbfb016cd3e5c1031.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
devian3000, 2016-07-04
@devian3000

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 question

Ask a Question

731 491 924 answers to any question