陈永鹏的csdn博客地址:http://blog.csdn.net/chenyoper
陈永鹏的博客园地址:http://www.cnblogs.com/Yoperchen/
1.首先要创建一个数据库
create database test_db;
2.授权某个用户拥有某个数据库的所有权限
grant all privileges on test_db.* to user_name@'%'identified by 'password';
粗体是要替换成自己的数据库、数据库用户名、数据库密码
flush privileges;
作者:陈永鹏
邮箱:chen.yong.peng@foxmail.com
转载请注明作者陈永鹏CSDN博客地址:http://blog.csdn.net/chenyoper