MySQL常用命令:

标签: mysql 常用命令
244人阅读 评论(0) 收藏 举报
分类:
CREATE USER 'dbs'@'localhost' IDENTIFIED BY '123456'; 

SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query,Password FROM mysql.user;

GRANT ALL PRIVILEGES ON *.* TO 'dbs'@'%' IDENTIFIED BY PASSWORD '$Password' ;

GRANT ALL PRIVILEGES ON `dbs`.* TO 'dbs'@'%' WITH GRANT OPTION  ;


show grants for dbs;
查看评论
    个人资料
    专栏达人
    等级:
    访问量: 73万+
    积分: 9864
    排名: 2226
    最新评论