1 手动

如何开启以及关闭mysql服务

如何开启以及关闭mysql服务

如何开启以及关闭mysql服务

点击m

如何开启以及关闭mysql服务

2.自动

cmd->services.msc 打开服务的窗口

然后也是上面的步骤

3.自动化

使用管理员打开cmd

net start mysql : 启动mysql的服务

net stop mysql:关闭mysql服务

如何开启以及关闭mysql服务

如何开启以及关闭mysql服务

4.MySQL登录

  1. mysql -uroot -p密码
  2. mysql -hip -uroot -p连接目标的密码
  3. mysql --host=ip --user=root --password=连接目标的密码

5.退出

exit
quit

相关文章: