create user 'newuser'@'localhost' identified by 'newpassword';
create database newdb default charset utf8mb4;
GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'localhost';
FLUSH PRIVILEGES;
Mysql 创建用户和数据库
2023-09-17
create user 'newuser'@'localhost' identified by 'newpassword';
create database newdb default charset utf8mb4;
GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'localhost';
FLUSH PRIVILEGES;