• 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;

  • 相关阅读:
    poj3481
    查找湖南问题
    tyvj1033
    tyvj1088
    oil倒油
    加分二叉树
    模拟题2
    模拟题3
    Free pascal中的random函数
    Spring MVC入门配置
  • 原文地址:https://www.cnblogs.com/MrWho/p/4000790.html
Copyright © 2020-2023  润新知