我的系统是Debian 7.9,因为面板的添加数据库后数据库无法写入到mysql,只能通过phpmyadmin登录后在里面创建一个,然后对应起来。为了解决这个问题,查了下论坛内的相关帖子,通过命令- curl http://download.bt.cn/lib/rep_mysql.sh|bash
复制代码
修复了下面板。但是修复后会导致需要安装mysql-python,执行
出现错误
- Downloading/unpacking mysql-python
- Cannot fetch index base URL http://pypi.python.org/simple/
- Could not find any downloads that satisfy the requirement mysql-python
- No distributions at all found for mysql-python
- Storing complete log in /.pip/pip.log
复制代码 然后我通过下面的命令执行修复
- pip install mysql-python -i https://pypi.douban.com/simple
复制代码 这个时候又可以添加数据库了,但是添加后还是无反应。。
尝试了下安装libmysqlclient-dev python3-dev
- apt-get install libmysqlclient-dev python3-dev
复制代码 执行后再执行提示如下
- Downloading/unpacking mysqlclient
- Cannot fetch index base URL http://pypi.python.org/simple/
- Could not find any downloads that satisfy the requirement mysqlclient
- No distributions at all found for mysqlclient
- Storing complete log in /.pip/pip.log
复制代码 再次执行- pip install mysqlclient -i https://pypi.douban.com/simple
复制代码 安装好后好像也就提示MYSQL可以运行了。但是还是不能添加数据库。
有知道的大神吗?
|
|