摘要:
1.用root账户登录# mysql -u root -p2.选择mysql权限数据库# use mysql;3.插入账户# insert into user (Host,User,Password) values ('%','myuser',password('mypw'));更新权限# flush privileges;4.创建数据库# create database mytestdb;5.指定数据库的访问账户#grant all privileges on mytestdb.* to 'myuser'@'%' 阅读全文