mysql 创建用户配置权限

来源:互联网 发布:烟台美工招聘 编辑:程序博客网 时间:2024/04/29 02:40

mysql -u root -p

password

use mysql;

insert into user(host,user,password) values('localhost','admin',password('123456'));

flush privileges;

create database weixin;

grant all privileges on weixin.* to admin@localhost identified by '123456';

flush privileges;

0 0