linux 安装mysql 提示error: 依赖性检测失败:

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了linux 安装mysql 提示error: 依赖性检测失败:相关的知识,希望对你有一定的参考价值。

administrator@ubuntu:~/localhost$ rpm -ivh mysql-server-5.5.16-1.linux2.6.i386.rpm
rpm:RPM should not be used directly install RPM packages, use Alien instead!
rpm:However assuming you know what you are doing...
error: 依赖性检测失败:

rpm是redhat系的包管理器,ubuntu是debian系的,debian系的包管理器是dpkg。
需要用deb包来安装,而不是rpm包,dpkg -i 来安装。
apt是dpkg的前端,这个好用,apt-get install mysql``````追问

apt 是指的源文件那个吗?

追答

看来你需要补充下基础知识,你是在看书学习吗?教材上多用的是红帽系的,这样你可以用fedora系统,不用ubuntu

参考技术A Ubuntu的软件包格式是deb,如果要安装rpm的包,则要先用alien把rpm转换成deb。
具体参考:
http://wangdehe88.blog.163.com/blog/static/123328662009104103939232/
参考技术B 不要搞那么麻烦。
用“软件管理器”,搜索mysql,点安装,自动匹配依赖关系。

01-mysql linux安装

一、检查当前系统是否安装过mysql

rpm -qa|grep mysql
或 ps -ef|grep mysql

二、安装mysql服务端

rpm -ivh MySQL-server-5.5.48-1.linux2.6.i386.rpm   

CentOS07安装MySQL错误:依赖检测失败

CentOS安装mysql*.rpm提示conflicts with file from package的解决办法

根据安装提示设置密码

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password ‘new-password‘
/usr/bin/mysqladmin -u root -h hadoop102 password ‘123456‘  

三、安装mysql客户端

rpm -ivh MySQL-client-5.5.48-1.linux2.6.i386.rpm 

四、查看mysql安装时创建的用户和组

cat /etc/passwd|grep mysql
cat /etc/group|grep mysql
mysqladmin --version

五、mysql服务的启动、停止 

service mysql start
service mysql stop  

六、设置mysql服务开机自启动

chkconfig mysql on
chkconfig --list | grep mysql
ntsysv   --看到[*]mysql这一行,表示开机后会自动启动mysql

七、查看mysql安装路径

ps -ef|grep mysql

八、启停相关脚本

/etc/init.d/mysql    

九、修改默认配置文件

 cp /usr/share/mysql/my-huge.cnf /etc/my.cnf  

十、查看、修改字符集

show variables like ‘character%‘ ;

[client]
default-character-set=utf8

[mysqld]
character-set-server=utf8
collation-server=utf8_general_ci

[mysql]
default-character-set=utf8

  

  

 

 

new  [nju?]  详细X
基本翻译
adj. 新的,新鲜的;更新的;初见的
adv. 新近
n. (New)人名;(英)纽
网络释义
new: 新的
New Hampshire: 新罕布什尔州

以上是关于linux 安装mysql 提示error: 依赖性检测失败:的主要内容,如果未能解决你的问题,请参考以下文章

Linux启动Mysql服务Error | 持续启动...完美解决

01-mysql linux安装

linux下启动mysql提示:Timeout error occurred trying to start MySQL Daemon

Linux/UNIX上安装Mysql

linux-msyql

Linux挂载windos共享提示error