如何确认linux安装mysql成功

如题所述

启动 MySQL: [确定]
你可以看看你的服务是否已经添加到linux上
[root@localhost ~]# chkconfig --list mysqld
mysqld 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:启用 6:关闭
[root@localhost ~]#
如果没有,先添加,用chkconfig --add mysqld
然后在3 5级别上设定服务为on
chkconfig --level 35 mysqld on
然后service start一下;
一旦你启动了服务,可以这样检查服务器是否在运行
[root@localhost ~]# ps -el | grep mysqld
[root@localhost ~]#
温馨提示:答案为网友推荐,仅供参考
相似回答