mysql -u root -pmypassword -h 192.168.1.88 -P 3306 -D mydb
mysql>grant select,insert,update,delete,create,drop on mydb.mytable to remoteuser@192.168.1.88 identified by ‘mypassword‘;
mysqld –install MysqlService
net start MysqlService
net stop MysqlService
将data、share两个目录复制到新目录下,重启服务即可。
http://database.51cto.com/art/201005/202227.htm
create database database_name;
grant all on database_name.* to user_name@‘%‘ identified by ‘user_password‘;
flush privileges;
http://blog.csdn.net/mydeman/article/details/3847695
注释my.cnf中的bind_address = 127.0.0.1配置。
source D:\data.sql
原文:http://www.cnblogs.com/javawer/p/3528790.html