首页 > 代码库 > Connect mysql on Linux from Windows
Connect mysql on Linux from Windows
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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。