centos7 64 rpm 安装 mysql 5.7.10
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos7 64 rpm 安装 mysql 5.7.10相关的知识,希望对你有一定的参考价值。
安装开发包,卸载系统自带数据库 1. mysql-5.7.10-1.el7.x86_64.rpm-bundle.tar 2. tar -xvf mysql-5.7.10-1.el7.x86_64.rpm-bundle.tar 3. rpm -e --nodeps mariadb-libs-1:5.5.35-3.el7.x86_64 4. rpm -ivh mysql-community-common-5.7.10-1.el7.x86_64.rpm 5. rpm -ivh mysql-community-libs-5.7.10-1.el7.x86_64.rpm 6. rpm -ivh mysql-community-embedded-5.7.10-1.el7.x86_64.rpm 7. rpm -ivh mysql-community-devel-5.7.10-1.el7.x86_64.rpm 8. rpm -ivh mysql-community-embedded-devel-5.7.10-1.el7.x86_64.rpm 9. rpm -ivh mysql-community-client-5.7.10-1.el7.x86_64.rpm 10. rpm -ivh mysql-community-server-5.7.10-1.el7.x86_64.rpm 11. mysql_install_db --datadir=/var/lib/mysql 12. mysqld --initialize 13. chown -R mysql:mysql /var/lib/mysql 14. service mysqld start 15. service mysqld status 16. vi /root/.mysql_secret 17. mysql -uroot -p 18. set password=password(‘111111‘); 19. use mysql; 20. update user set host = ‘%‘ where user =‘root‘; 21. flush privileges;
本文出自 “为梦想奋斗” 博客,转载请与作者联系!
以上是关于centos7 64 rpm 安装 mysql 5.7.10的主要内容,如果未能解决你的问题,请参考以下文章
用rpm包在centos7.4上安装mysql-5.7.24-1.el7.x86_64
centos7 下手动安装MySQL-5.6.32-1.linux_glibc2.5.x86_64.rpm-bundle