我已经在 openSUSE 上安装了 mysql-community-server,但在将其作为服务启动时遇到问题。
我可以毫无问题地启动它sudo mysqld --user=mysql
并正常访问数据库。
service mysql start
尝试使用或启动服务rcmysql start
不会导致错误,但服务不会保持运行状态。
systemctl status mysql.service -l
mysql.service - LSB: Start the MySQL database server
Loaded: loaded (/etc/init.d/mysql)
Active: active (exited) since Fri 2015-05-29 16:22:13 ACST; 41min ago
May 29 16:22:13 linuxbox mysql[1588]: Starting service MySQL ..done
编辑:
# rcmysql status
Checking for service MySQL: unused
mysql.service - LSB: Start the MySQL database server
Loaded: loaded (/etc/init.d/mysql)
Active: active (exited) since Fri 2015-05-29 16:22:13 ACST; 51min ago