页次: 1
系统里的mariadb应该是随着akonadi的依赖一起装的
我现在系统刚装好要用mysql却无法启动,具体信息是这样的
现在通过systemd启动数据时提示:
Job for mysqld.service failed because a timeout was exceeded. See "systemctl status mysqld.service" and "journalctl -xe" for details.
通过systemctl status查看是如下信息:
● mysqld.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; disabled; vendor preset: disabled)
Active: activating (start-post) (Result: exit-code) since 四 2015-10-15 10:43:04 CST; 56s ago
Process: 18326 ExecStart=/usr/bin/mysqld --pid-file=/run/mysqld/mysqld.pid (code=exited, status=1/FAILURE)
Main PID: 18326 (code=exited, status=1/FAILURE); : 18327 (mysqld-post)
CGroup: /system.slice/mysqld.service
└─control
├─18327 /bin/sh /usr/bin/mysqld-post
└─18723 sleep 1
连接的话提示是:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 "No such file or directory")
之前我用的时候直接mysql_install_db一下然后mysql_secure_installation就可以了,现在执行mysql_install_db提示:
FATAL ERROR: Could not find ./bin/my_print_defaults
执行mysql_secure_installation提示:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2 "No such file or directory")
不知道怎么的这次重装完系统就不知道要怎么用了……
离线
cat /usr/lib/tmpfiles.d/mysql.conf
看看?
是不是安装的时候安装脚本执行失败了呀。你卸载然后重装试试?
离线
我也遇到同样的问题了,题主解决了么
离线
页次: 1