mysql的常用命令

启动mysql服务:service mysqld start  
  
停止mysql服务:service mysqld stop  
  
重新启动mysql:service mysqld restart  
  

mysql数据库命令:
mysql -uroot -proot进入数据库
use test 引用数据库
show tables;显示所有的表
insert into test(pkid)values(1);//添加
delete from test where id=1;//删除
update from test set pkid=1 where pkid=1;//修改
select * from test where pkid=1;//查询详情
select count(*) from test;//统计
原文地址:https://www.cnblogs.com/light-zhang/p/8349941.html