标签:
直接到terminal 中敲入
/usr/local/mysql/bin/mysql
$ /usr/local/mysql/bin/mysql -u root -p Enter password:
这个命令 可防止 mysql 只能通过localhost访问不能通过ip访问
grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘root‘;
参考 http://www.tuicool.com/articles/ZfMfYz
标签:
原文地址:http://www.cnblogs.com/yaoyao66123/p/5922276.html