赞
踩
mysql 创建用户并授权语句
# 创建数据库
create database db_example;
# 创建用户 (用户名@连接ip by 密码)
create user 'springuser'@'localhost' identified by 'password'
# 授权
grant all on db_example.* to 'springuser'@'localhost';
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。