美文网首页
mac--mysql

mac--mysql

作者: amazing_bing | 来源:发表于2017-03-24 21:47 被阅读0次

mac install mysql get some error,maybe you can use this method as below:

brew remove mysql
brew cleanup
launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
rm ~/Library/LaunchAgents/com.mysql.mysqld.plist
sudo rm -rf /usr/local/var/mysql

then beginning to install mysql:

1.install
  brew install mysql
2.start
  brew services start mysql
set this start : launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
3.login
     mysql -u root
4.install MySQL-python
    pip install MySQL-python

5.test

vim 1.py 
  import MySQLdb

相关文章

  • mac--mysql

    mac install mysql get some error,maybe you can use this m...

  • MAC--mysql忘记密码

    忘记密码 step1: 苹果->系统偏好设置->最下边点mysql在弹出页面中 关闭mysql服务(点击stop ...

网友评论

      本文标题:mac--mysql

      本文链接:https://www.haomeiwen.com/subject/fpkqottx.html