远程访问linux下mysql

Linux主机下:

mysql>>create user test identified by test;

mysql>>grant all privileges on *.* to 'test'@'%' identified by 'test';


shell>>service iptables stop

shell>>chkconfig iptables off


Windows下:

C:\mysql -h210.30.12.100 -u test -p test

Enter password:


OK搞定

你可能感兴趣的:(c,linux,mysql,user)