service mysql start 启动mysql服务器时,提示如下错误:
Redirecting to /bin/systemctl start mysql.service
原因推测:service mysql start
是重定向到/bin/systemctl restart mysql.service. mysql
与mysqld是不同的,前者交互式命令(客户端),mysqld才是后端服务进程,应该是启错了
使用service mysqld start
或者systemctl start mysqld
启动
附:其他操作mysql命令
使用如下命令操作mysql:
查看状态:systemctl statusmysqld.service重启:systemctl restart mysqld.service启动:systemctl start mysqld.service停止:systemctl stop mysqld.service查看状态:service mysqld status重启:service mysqld restart启动:service mysqld start停止:service mysqld stop
来源地址:https://blog.csdn.net/hsuehgw/article/details/128933862