mysql数据库常用命令

1,最大连接数 show variables like'%max_connections%';
2,设置这个最大连接数值 set GLOBAL max_connections=1024;
3,清空表格数据  delete from tableName;
   truncate table tableName
 4,查询前N条数据  select * from student limit N;
 5,查看建表代码  show create table tableName;
 6,修改编码

 set character_set_database=utf8;

在doc环境下设置不起作用,需要在图形界面工具内手动设置

 7,显示数据库编码情况  show variables like'%char%';
   
   
   
   
   
   
   
   
   
   
   
   
posted @ 2020-10-26 11:55  浪里小绿叶  阅读(129)  评论(0)    收藏  举报