# 创建数据库
create database db_example;
# 创建用户 (用户名@连接ip by 密码)
create user 'springuser'@'localhost' identified by 'password'
# 授权
grant all on db_example.* to 'springuser'@'localhost';
mysql 创建用户并授权语句# 创建数据库create database db_example;# 创建用户 (用户名@连接ip by 密码)create user 'springuser'@'localhost' identified by 'password'# 授权grant all on db_example.* to 'springuser'@'localhost';...