码迷,mamicode.com
首页 > 数据库 > 详细

Connect mysql on Linux from Windows

时间:2014-09-29 21:08:31      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:style   color   os   strong   sp   c   on   linux   r   

ON LINUX:

1 sudo apt-get install mysql-server

2 sudo apt-get install python-dev

3 sudo apt-get install libmysqld-dev

4 pip install MySQL-python

 

sudo vim /etc/init.d/mysql/my.cnf

#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 10.10.10.133 # or bind-address = 127.0.0.1

mysql -u root -p

use mysql;create user ‘dev‘@‘%‘ identified by ‘root‘;  # created the user dev by the password root

grant all privileges on * . * to ‘dev‘@‘%‘ identified by ‘root‘;  # so that dev can used out of the local
flush privileges; # let it work
quit;

 

Connect mysql on Linux from Windows

标签:style   color   os   strong   sp   c   on   linux   r   

原文地址:http://www.cnblogs.com/MrWho/p/4000790.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!