mysql 允许远程连接
今天试了试mysql的远程连接:----进入mysql服务器-------------------------------
@ X:\mysql\bin\> mysql -h localhost -u root -proot
----赋予任何主机访问数据库的权限------------------
@ mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION
----修改生效-------------
@ mysql> FLUSH PRIVILEGES
----退出mysql服务器------
@ mysql>exit
测试成功....