wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum install mysql-community-server

 错误信息:

Resolving Dependencies
--> Running transaction check
---> Package mysql-community-server.x86_64 0:8.0.23-1.el6 will be installed
--> Processing Dependency: mysql-community-common(x86-64) = 8.0.23-1.el6 for package: mysql-community-server-8.0.23-1.el6.x86_64
--> Processing Dependency: mysql-community-client(x86-64) >= 8.0.11 for package: mysql-community-server-8.0.23-1.el6.x86_64
--> Running transaction check
---> Package mysql-community-client.x86_64 0:8.0.23-1.el6 will be installed
--> Processing Dependency: mysql-community-client-plugins = 8.0.23-1.el6 for package: mysql-community-client-8.0.23-1.el6.x86_64
--> Processing Dependency: mysql-community-libs(x86-64) >= 8.0.11 for package: mysql-community-client-8.0.23-1.el6.x86_64
---> Package mysql-community-common.x86_64 0:8.0.23-1.el6 will be installed
--> Running transaction check
---> Package mysql-community-client-plugins.x86_64 0:8.0.23-1.el6 will be installed
--> Processing Dependency: libsasl2.so.2()(64bit) for package: mysql-community-client-plugins-8.0.23-1.el6.x86_64
---> Package mysql-community-libs.x86_64 0:8.0.23-1.el6 will be installed
--> Finished Dependency Resolution
Error: Package: mysql-community-client-plugins-8.0.23-1.el6.x86_64 (mysql)
Requires: libsasl2.so.2()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

  

报错原因 :软件包依赖 mariadb组件

解决方案:

删除依赖包:yum -y remove mariadb-libs

重新再安装:yum install mysql-community-server

配置mysql:
service mysqld restart
mysql -u root
mysql> set password for 'root'@'localhost' =password('your password');


最新文章

  1. install intel c/c++ compiler
  2. 【学习】一本案例驱动的jQuery Mobile入门书
  3. 【温故而知新-Javascript】使用 DOM 元素
  4. FastDFS在.Net平台上的使用
  5. 我的第一个chrome扩展(2)——基本知识
  6. Using Pre-Form Trigger In Oracle Forms
  7. login shell 和 non-login shell 的区别
  8. Flex 教程(1)-------------控件拖动
  9. [视频监控]用状态机图展示Layout切换关系
  10. C#2.0至4.0 的一些特性
  11. HttpClient调用api
  12. 最近提交一个mysql5.7的bug,提醒自己以后注意写SQL要规范
  13. 《共享库PATH与ld.so.conf简析》
  14. kolla-ansible快速入门
  15. 五 Struts 配置文件
  16. 消除导入MNIST数据集发出的警告信息
  17. Django表单字段汇总
  18. 单列模式,装饰器、new方法、类/静态方法实现单列模式
  19. vue--一些预设属性
  20. C语言练手游戏-控制台输出一个会移动的坦克

热门文章

  1. 模拟dom结构
  2. Android图表库hellocharts详解
  3. vue中mapGetters和...mapGetters
  4. java篇之JDBC原理和使用方法
  5. Mybatis foreach的用法
  6. Struts2跟SpringMVC的区别
  7. postman中环境变量的设置方法、使用方法和实际中常见使用场景
  8. 【前端开发日记 】VSCODE被初始化之后重新设置的这些事
  9. Java在算法题中的输入问题
  10. JAVA8学习——Stream底层的实现四(学习过程)