Ubuntu Server下启动/停止/重启MySQL数据库
当我们需要修改MySQL的配置文件my.cnf(windows 下为 my.ini)来进行一些设置的时候,修改完之后我们需要重启MySQL
操作方法
- 01my.cnf文件位置为:/ect/mysql/my.cnf Waring:如果该文件配置错误,MySQL将无法启动。 
- 02启动mysql: 方式一:sudo /etc/init.d/mysql start 方式二:sudo start mysql 方式三:sudo service mysql start 
- 03停止mysql: 方式一:sudo /etc/init.d/mysql stop 方式二:sudo stop mysql 方式san:sudo service mysql stop 
- 04重启mysql: 方式一:sudo/etc/init.d/mysql restart 方式二:sudo restart mysql 方式三:sudo service mysql restart 
 赞 (0)
                        