首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在Debian Wheezy上安装mysql-服务器5.6

在Debian Wheezy上安装mysql-服务器5.6
EN

Unix & Linux用户
提问于 2016-06-16 14:51:15
回答 1查看 3.3K关注 0票数 0

我在Debian服务器上安装了一个混乱的mysql。我在我能找到的任何mysql包(mysql-公共,mysql-服务器,mysql-客户机,phpmyadmin,等等)上使用了dpkg --force all --purge packet

现在,我认为重新安装很容易,但是我仍然会遇到以下错误消息:

代码语言:javascript
运行
复制
sudo apt-get install mysql-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mysql-server : Depends: mysql-server-5.6 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

困扰我的是,我似乎没有拿过包裹,dpkg --get-selections | grep hold什么也不回。

我也很有天赋地尝试过:

代码语言:javascript
运行
复制
sudo aptitude install mysql-server
The following NEW packages will be installed:
  libaio1{a} libdbd-mysql-perl{ab} libdbi-perl{ab} libmysqlclient18{a} mysql-client-5.6{a} mysql-client-core-5.6{a} mysql-common{a} mysql-common-5.6{a} mysql-server 
  mysql-server-5.6{a} mysql-server-core-5.6{a} 
0 packages upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 40,6 MB/47,5 MB of archives. After unpacking 155 MB will be used.
The following packages have unmet dependencies:
 libdbd-mysql-perl : Depends: perlapi-5.14.2 which is a virtual package.
 libdbi-perl : Depends: perlapi-5.14.2 which is a virtual package.
The following actions will resolve these dependencies:

     Keep the following packages at their current version:
1)     libdbd-mysql-perl [Not Installed]                  
2)     libdbi-perl [Not Installed]                        
3)     mysql-client-5.6 [Not Installed]                   
4)     mysql-server [Not Installed]                       
5)     mysql-server-5.6 [Not Installed]  

但是,正如你所看到的那样,没有安装任何东西。

我现在卡住了,找不到如何得到一个工作的MySQL服务器。任何帮助都非常感谢。

EN

回答 1

Unix & Linux用户

回答已采纳

发布于 2016-06-16 15:08:15

第一轮:

代码语言:javascript
运行
复制
aptitude -f install

然后创建mysql.list文件:

代码语言:javascript
运行
复制
 nano /etc/apt/sources.list.d/mysql.list

增加以下几行:

代码语言:javascript
运行
复制
deb http://repo.mysql.com/apt/debian/ wheezy mysql-5.6
deb-src http://repo.mysql.com/apt/debian/ wheezy mysql-5.6

更新和安装mysql 5.6:

代码语言:javascript
运行
复制
apt-get update
apt-get install mysql-server-5.6
票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/290167

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档