首页 > 数据库技术 > 详细

ubuntu mysql 使用

时间:2016-07-06 14:34:17      阅读:280      评论:0      收藏:0      [点我收藏+]
环境:ubuntu 12.04.5    mysql-server-5.5
安装:sudo apt-get install mysql-server-5.5 (服务端 第一台虚拟机)
sudo apt-get install mysql-client-5.5  (客户端 第二台虚拟机)
客户端访问服务端遇到的问题:
(1)ERROR 2003 can‘t  content to mysql server
解决: sudo vi /etc/mysql/my.cnf    注释掉 #bind-address          = 127.0.0.1
(2)ubuntu下mysql服务的重启和关闭
解决:sudo service mysql   start|stop|restart      sudo /etc/init.d/mysql  start|stop|restart
(3)重启之后还有问题,ERROR 1130 host is not allowed to content this mysql server
解决:GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘123456‘ WITH GRANT OPTION;

 

ubuntu mysql 使用

原文:http://www.cnblogs.com/pengcz/p/5646659.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!