您好,欢迎访问一九零五行业门户网

centos和ubuntu下安装mysql for django出现的问题

命令为easy_install mysql-python 首先是“error: setup script exited with error: command 'gcc' failed with exit status 1” 具体原因是没有安装python-dev 但是在centos下python-dev的名字为python-devel 安装后即可成功安装 django setting.py文件中数
命令为easy_install mysql-python
首先是“error: setup script exited with error: command 'gcc' failed with exit status 1”
具体原因是没有安装python-dev
但是在centos下python-dev的名字为python-devel
安装后即可成功安装
django setting.py文件中数据库配置为
databases = { 'default': { 'engine': 'django.db.backends.mysql', 'name': 'db_name', 'user' : 'root', 'password':'password', 'host' :'localhost', }}
其它类似信息

推荐信息