给一个数据库创建一个用户
CREATE USER ‘name’@‘localhost’ IDENTIFIED BY ‘password’;
CREATE DATABASE dbname;
GRANT ALL ON dbname.* TO 'name'@'localhost';
FLUSH PRIVILEGES;
给一个数据库创建一个用户
CREATE USER ‘name’@‘localhost’ IDENTIFIED BY ‘password’;
CREATE DATABASE dbname;
GRANT ALL ON dbname.* TO 'name'@'localhost';
FLUSH PRIVILEGES;