mysql服务启动失败
操作系统详细信息
Linux parrot 4.14.0-parrot2-amd64 #1 SMP Parrot 4.14.2-1parrot2 (2017-12-05) x86_64 GNU/Linux
我最近删除了mysql和mariadb,但是当我用这个命令重新安装它时
$sudo apt-get install default-mysql-server-core
$sudo apt-get install default-mysql-server-corebut
现在当我用命令启动mysql服务时
$service mysql start
我犯了这个错误
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
当我在终端输入mysql时,我得到了这个
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111 "Connection refused"
$systemctl status mysql.service
● mysql.service - LSB: Start and stop the mysql database server daemon
Loaded: loaded (/etc/init.d/mysql; generated; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-01-03 23:23:21 IST; 3min 4s ago
Docs: man:systemd-sysv-generator(8)
Process: 27325 ExecStart=/etc/init.d/mysql start (code=exited, status=1/FAILURE)
Jan 03 23:22:51 parrot mysqld[27496]:
Jan 03 23:23:21 parrot /etc/init.d/mysql[27828]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Jan 03 23:23:21 parrot /etc/init.d/mysql[27828]: [61B blob data]
Jan 03 23:23:21 parrot /etc/init.d/mysql[27828]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111 "Connection refused")'
Jan 03 23:23:21 parrot /etc/init.d/mysql[27828]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Jan 03 23:23:21 parrot /etc/init.d/mysql[27828]:
Jan 03 23:23:21 parrot mysql[27325]: Starting MariaDB database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
Jan 03 23:23:21 parrot systemd[1]: mysql.service: Control process exited, code=exited status=1
Jan 03 23:23:21 parrot systemd[1]: mysql.service: Failed with result 'exit-code'.
Jan 03 23:23:21 parrot systemd[1]: Failed to start LSB: Start and stop the mysql database server daemon.
$journalctl -xe
Jan 03 23:23:03 parrot dbus-daemon[827]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jan 03 23:23:03 parrot systemd[1]: Started Hostname Service.
-- Subject: Unit systemd-hostnamed.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit systemd-hostnamed.service has finished starting up.
--
-- The start-up result is RESULT.
Jan 03 23:23:11 parrot brisk-menu[1473]: Theme directory devices/scalable of theme maia has no size field
Jan 03 23:23:11 parrot brisk-menu[1473]: gdk_window_get_origin: assertion 'GDK_IS_WINDOW (window)' failed
Jan 03 23:23:12 parrot brisk-menu[1473]: gdk_window_get_origin: assertion 'GDK_IS_WINDOW (window)' failed
Jan 03 23:23:12 parrot brisk-menu[1473]: gdk_window_get_origin: assertion 'GDK_IS_WINDOW (window)' failed
Jan 03 23:23:18 parrot wnck-applet[1475]: Theme directory devices/scalable of theme maia has no size field
Jan 03 23:23:19 parrot mate-screenshot[27787]: Theme directory devices/scalable of theme maia has no size field
Jan 03 23:23:19 parrot mate-screenshot[27787]: GtkDialog mapped without a transient parent. This is discouraged.
Jan 03 23:23:21 parrot /etc/init.d/mysql[27828]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Jan 03 23:23:21 parrot /etc/init.d/mysql[27828]: [61B blob data]
Jan 03 23:23:21 parrot /etc/init.d/mysql[27828]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111 "Connection refused")'
Jan 03 23:23:21 parrot /etc/init.d/mysql[27828]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
Jan 03 23:23:21 parrot /etc/init.d/mysql[27828]:
Jan 03 23:23:21 parrot mysql[27325]: Starting MariaDB database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
Jan 03 23:23:21 parrot systemd[1]: mysql.service: Control process exited, code=exited status=1
Jan 03 23:23:21 parrot systemd[1]: mysql.service: Failed with result 'exit-code'.
Jan 03 23:23:21 parrot systemd[1]: Failed to start LSB: Start and stop the mysql database server daemon.
-- Subject: Unit mysql.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit mysql.service has failed.
--
-- The result is RESULT.
Jan 03 23:23:21 parrot sudo[27296]: pam_unix(sudo:session): session closed for user root
Jan 03 23:23:32 parrot mate-screenshot[27787]: GtkDialog mapped without a transient parent. This is discouraged.
Jan 03 23:25:01 parrot CRON[27936]: pam_unix(cron:session): session opened for user root by (uid=0)
Jan 03 23:25:01 parrot CRON[27937]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Jan 03 23:25:01 parrot CRON[27936]: pam_unix(cron:session): session closed for user root
Jan 03 23:26:25 parrot sudo[27954]: novacore : TTY=pts/1 ; PWD=/home/novacore ; USER=root ; COMMAND=/bin/systemctl status mysql.service
Jan 03 23:26:25 parrot sudo[27954]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jan 03 23:26:35 parrot sudo[27954]: pam_unix(sudo:session): session closed for user root
Jan 03 23:34:39 parrot sudo[28227]: novacore : TTY=pts/1 ; PWD=/home/novacore ; USER=root ; COMMAND=/bin/journalctl -xe
Jan 03 23:34:39 parrot sudo[28227]: pam_unix(sudo:session): session opened for user root by (uid=0)
我也做了谷歌,得到了一些答案,这是因为存储不足,但这似乎不是一个存储问题。
$df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.7G 0 1.7G 0% /dev
tmpfs 342M 19M 323M 6% /run
/dev/sda6 46G 19G 26G 42% /
tmpfs 1.7G 46M 1.7G 3% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.7G 0 1.7G 0% /sys/fs/cgroup
/dev/sda2 95M 26M 70M 28% /boot/efi
tmpfs 342M 52K 342M 1% /run/user/1000
/dev/sda4 101G 97G 3.6G 97% /media/novacore/movies_tools_others
暂无答案!
目前还没有任何答案,快来回答吧!