MySQL数据库基本命令十六

 时间:2026-04-21 20:52:39

1、导入数据库:source D:\数据库.sql

MySQL数据库基本命令十六

2、授权:grant all on *(数据库).*(表) to 用户名@localhost identified by ‘密码’;

MySQL数据库基本命令十六

3、进入授权用户:mysql -h localhost -u 用户名 -p

MySQL数据库基本命令十六

4、其他用户授权:grant all on *.* to 用户名@localhost identified by ‘密码’with grant option;

MySQL数据库基本命令十六

5、撤销用户权限:revoke all on *.* from 用户名@localhost;

MySQL数据库基本命令十六

6、删除用户:droop user 用户名@localhost;

MySQL数据库基本命令十六

  • MySQL数据库基本命令八
  • MySQL数据库基本命令九
  • Dos命令怎么连接mysql数据库
  • 数据库索引如何使用
  • 数据库获取当前时间
  • 热门搜索
    海尔电脑怎么样 开户支行怎么查 鞋子小了挤脚怎么办 学生头怎么扎好看 女性阴道干涩怎么办 文玩核桃怎么玩 脸上出油长痘怎么办 犬瘟热怎么治 亲爱的你怎么不在我身边歌词 怎么去痤疮