Тема: Не можу встановити MySQL на Fedor-у 18 XFCE
Вітаю, форумчани!
Декілька разів я пробував встановити mysql з бінарних пакетів.
І кожного разу отримував в результаті одне й теж:
[code][yaroslav@archiso ~]$ /usr/bin/mysqladmin version
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
[/code]
Потім я звісно спробував створити mysql.sock
[code]touch /var/lib/mysql/mysql.sock[/code]
І виконав команду:
[code=[root@archiso yaroslav]# /usr/bin/mysqladmin version
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)'
Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
[/code]
Іще таке є:
[code][root@archiso yaroslav]# service mysqld stop
Redirecting to /bin/systemctl stop mysqld.service
[root@archiso yaroslav]# service mysqld start
Redirecting to /bin/systemctl start mysqld.service
Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -n' for details.
[/code]
Лог:
[code][root@archiso yaroslav]# journalctl -n
-- Logs begin at Tue, 2013-04-16 22:53:17 EDT, end at Wed, 2013-04-17 02:45:14 EDT. --
Apr 17 02:45:03 archiso systemd[1]: Stopped MySQL database server.
Apr 17 02:45:13 archiso systemd[1]: Starting MySQL database server...
Apr 17 02:45:13 archiso systemd[1]: SELinux Got Sender :1.64
Apr 17 02:45:13 archiso systemd[1]: SELinux Got Sender :1.65
Apr 17 02:45:13 archiso mysqld_safe[2353]: 130417 02:45:13 mysqld_safe Logging to '/var/log/mysqld.log'.
Apr 17 02:45:13 archiso mysqld_safe[2353]: 130417 02:45:13 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Apr 17 02:45:14 archiso mysqld_safe[2353]: 130417 02:45:14 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
Apr 17 02:45:14 archiso systemd[1]: mysqld.service: control process exited, code=exited status=1
Apr 17 02:45:14 archiso systemd[1]: Failed to start MySQL database server.
Apr 17 02:45:14 archiso systemd[1]: Unit mysqld.service entered failed state
[/code]
Іще отаке пробував:
[code][root@archiso yaroslav]# systemctl enable mysqld.service
ln -s '/usr/lib/systemd/system/mysqld.service' '/etc/systemd/system/multi-user.target.wants/mysqld.service'
[root@archiso yaroslav]# systemctl start mysqld.service
Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -n' for details.
[root@archiso yaroslav]# systemctl status mysqld.service
mysqld.service - MySQL database server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)
Active: failed (Result: exit-code) since Wed, 2013-04-17 02:52:18 EDT; 20s ago
Process: 2718 ExecStartPost=/usr/libexec/mysqld-wait-ready $MAINPID (code=exited, status=1/FAILURE)
Process: 2717 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS)
Process: 2695 ExecStartPre=/usr/libexec/mysqld-prepare-db-dir %n (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/mysqld.service
Apr 17 02:52:17 archiso mysqld_safe[2717]: 130417 02:52:17 mysqld_safe Logging to '/var/log/mysqld.log'.
Apr 17 02:52:17 archiso mysqld_safe[2717]: 130417 02:52:17 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Apr 17 02:52:17 archiso mysqld_safe[2717]: 130417 02:52:17 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
Apr 17 02:52:18 archiso systemd[1]: Failed to start MySQL database server.
Apr 17 02:52:18 archiso systemd[1]: Unit mysqld.service entered failed state
[/code]