关于Mysql常用命令

Linux系统
service mysqld restart //重启
service mysqld start // 启动
service mysqld stop //关闭
systemctl start mysqld 启动 MySQL
systemctl status mysqld 查看 MySQL 运行状态:
ps -ef|grep mysqld 查看是否有mysqld进程
mysql -uroot -p 登录
MySQL

Windws系统

--  启动MySQL
net start mysql
-- 关闭MySQL
net stop mysql
posted on 2022-08-11 22:23  sandm01  阅读(22)  评论(0)    收藏  举报