linux 实现MYSQL启动与访问的方法

前端之家收集整理的这篇文章主要介绍了linux 实现MYSQL启动与访问的方法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
启动与停止   

1、启动

MysqL安装完成后启动文件MysqL在/etc/init.d目录下,在需要启动时运行下面命令即可。  

[root@test1 init.d]# /etc/init.d/MysqL start 

或者:

service MysqL start

2、停止 

service MysqL stop   

3、自动启动  

1)察看MysqL是否在自动启动列表中  

[root@test1 local]# /sbin/chkconfig –list  

2)把MysqL添加到你系统的启动服务组里面去  

[root@test1 local]# /sbin/chkconfig – add MysqL  

3)把MysqL从启动服务组里面删除。  

[root@test1 local]# /sbin/chkconfig – del MysqL
原文链接:https://www.f2er.com/mysql/530294.html

猜你在找的MySQL相关文章