mariadb - mysqld_safe does not allow MySQL connection -
i cannot start mysqld without getting following error:
[root@alarm ~]# mysqld 140414 16:01:04 [error] fatal error: please read "security" section of manua l find out how run mysqld root! 140414 16:01:04 [error] aborting 140414 16:01:04 [note] mysqld: shutdown complete
if try start mysql, tell me cannot connect local mysql server through socket '/run/mysqld/mysqld.sock'. fixed running mysqld_safe instead of mysqld. has stopped working , following error:
error 2002 (hy000): can't connect local mysql server through socket '/run/mys qld/mysqld.sock' (2)
i use mariadb on archlinux distribution. know how fix this?
edit 1:
steve, managed start mysqld service using systemctl can seen here:
[root@alarm ~]# ps aux | grep mysql mysql 880 1.0 10.3 514276 52776 ? ssl 09:30 0:01 /usr/bin/mysqld --pid-file=/run/mysqld/mysqld.pid root 1618 0.0 0.1 4032 936 pts/0 s+ 09:31 0:00 grep mysql
when try run mysql, still error:
error 2002 (hy000): can't connect local mysql server through socket '/run/mysqld/mysqld.sock' (2)
----- original suggestion -----
try running (as root):
systemctl start mysqld
if doesn't work please post if same error returned.
----- further advice -----
great mysql starting @ least. few things check:
1) socket file exist? if not run touch /run/mysqld/mysqld.sock create , see if helps, might need change file owned/writeable mysql user;
2) have checked my.cnf file check mysql configuration correct?
3) if above don't i'd suggest trying start mysql again using --verbose flag more detailed error output
Comments
Post a Comment