mysql 添加用户 赋权
作者:互联网
mysql添加用户
insert into user(Host,User,Password) values("%","wulian",password("wulian")); CREATE USER 'wulian'@'localhost' IDENTIFIED BY 'wulian'; # 创建用户 CREATE DATABASE wulian DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; # 创建表 grant all privileges on wulian.* to 'wulian'@'%'; # 赋权 source /root/wulian.sql;
标签:赋权,utf8mb4,wulian,用户,添加,mysql,CREATE 来源: https://www.cnblogs.com/yoyo1216/p/14769135.html