首页 > 代码库 > Ubuntu & MacOS安装Mysql & connector

Ubuntu & MacOS安装Mysql & connector

Ubuntu & MacOS安装Mysql & connector

1. 安装MySql

sudo apt-get install mysql-server
apt-get install mysql-client 
sudo apt-get install libmysqlclient-dev

 

2.安装Mysql.connector

# wget http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-1.0.11.zip
# unzip mysql-connector-python-1.0.11.zip
# cd mysql-connector-python-1.0.11 
# python setup.py install

 

Ubuntu & MacOS安装Mysql & connector