CentOS 7 Linux 卸载/安装 MySQL mysql 5.7
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了CentOS 7 Linux 卸载/安装 MySQL mysql 5.7,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含3933字,纯文字阅读大概需要6分钟。
内容图文
-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -qa | grep mariadb mariadb-5.5.52-1.el7.x86_64 mariadb-devel-5.5.52-1.el7.x86_64 mariadb-server-5.5.52-1.el7.x86_64 mariadb-libs-5.5.52-1.el7.x86_64 [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -e akonadi-mysql-1.9.2-4.el7.x86_64 [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -e mariadb-server-1:5.5.52-1.el7.x86_64 [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -e mariadb-devel-5.5.52-1.el7.x86_64 [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -e mariadb-5.5.52-1.el7.x86_64 [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -e perl-DBD-MySQL-4.023-5.el7.x86_64 [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -e qt-mysql-1:4.8.5-13.el7.x86_64#[root@localhost temp]# rpm -e --nodeps mariadb-libs-5.5.52-1.el7.x86_64 [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -e --nodeps redhat-lsb-core-4.1-27.el7.centos.1.x86_64 [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -e postfix-2:2.10.1-6.el7.x86_64 [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -e qt3-MySQL-3.3.8b-51.el7.x86_64 [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -e qt5-qtbase-mysql-5.6.1-10.el7.x86_64 [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -e MySQL-python-1.2.5-1.el7.x86_64 [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -e mariadb-libs-5.5.52-1.el7.x86_64 [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -qa | grep mariadb [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -qa | grep mysql #到此完全卸载mariadb/mysql [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -ivh mysql-community-common-5.7.18-1.el7.x86_64.rpm [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -ivh mysql-community-libs-5.7.18-1.el7.x86_64.rpm [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -ivh mysql-community-client-5.7.18-1.el7.x86_64.rpm [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# rpm -ivh mysql-community-server-5.7.18-1.el7.x86_64.rpm 警告:mysql-community-server-5.7.18-1.el7.x86_64.rpm: 头V3 DSA/SHA1 Signature, 密钥 ID 5072e1f5: NOKEY 准备中... ################################# [100%] 正在升级/安装... 1:mysql-community-server-5.7.18-1.e################################# [100%] #启动服务 [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# systemctl start mysqld @localhost init.d]# /bin/systemctl start mysqld.service [root@localhost init.d]# chkconfig mysqld on 注意:正在将请求转发到“systemctl enable mysqld.service”。 [nescafe@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]$ rpm -ivh *rpm [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# /bin/systemctl start mysqld.service [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# sudo grep ‘temporary password‘ /var/log/mysqld.log 2017-04-20T09:35:38.412872Z 1 [Note] A temporary password is generated for root@localhost: LC(7rVrhSSrw [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 19 Server version: 5.7.18 Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement. mysql> ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘MyNewPass4!‘; Query OK, 0 rows affected (0.00 sec) mysql> exit Bye [root@localhost mysql-5.7.18-1.el7.x86_64.rpm-bundle]# mysqladmin -p -u root shutdown Enter password:
CentOS 7 Linux 卸载/安装 MySQL mysql 5.7
标签:sql qt5 sha1 启动 register core ... ide state
本文系统来源:http://www.cnblogs.com/xiongjiajia/p/6786106.html
内容总结
以上是互联网集市为您收集整理的CentOS 7 Linux 卸载/安装 MySQL mysql 5.7全部内容,希望文章能够帮你解决CentOS 7 Linux 卸载/安装 MySQL mysql 5.7所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。