一.常用mysql命令行命令
①.,启动mysql服务 net start mysql.
停止mysql服务 net stop mysql
describe 表名; 或者 desc 表名; .
二 mysql 常用的sql语句:
①.,创建数据库 Create database 数据库名称:
例:replace into mytable ?(username) select username from user ;
查看用户权限先决条件:该用户需要有mysql数据库的select 权限;
查看用户权限:show grants for user;?user有两种格式,其第一段:直接是用户名;其二,用户名@主机名.第一种情况,是用户名@%的简写. 例:show grants for root;
查看当前用户的权限: show grants for current_user();
以上就是土嘎嘎小编为大家整理的MySql 基础知识-常用命令及sql语句相关主题介绍,如果您觉得小编更新的文章只要能对粉丝们有用,就是我们最大的鼓励和动力,不要忘记讲本站分享给您身边的朋友哦!!