#卸载mariadb/MySQL [[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# Rpm-qa |grepmariadbmariadb-5.5. the-1. EL7.X86_64MARIADB-devel-5.5. the-1. EL7.X86_64MARIADB-server-5.5. the-1. EL7.X86_64MARIADB-libs-5.5. the-1. El7.x86_64[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# Rpm-e akonadi-mysql-1.9.2-4. El7.x86_64[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# Rpm-e mariadb-server-1:5.5. the-1. El7.x86_64[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# Rpm-e mariadb-devel-5.5. the-1. El7.x86_64[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# Rpm-e mariadb-5.5. the-1. El7.x86_64[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# RPM-EPerl-dbd-mysql-4.023-5. El7.x86_64[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# Rpm-e qt-mysql-1:4.8.5- -. el7.x86_64
#[[email protected] temp]# rpm-e--nodeps mariadb-libs-5.5.52-1.el7.x86_64 [[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# rpm-e--nodeps redhat-lsb-core-4.1- -. El7.centos.1. X86_64[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# Rpm-e postfix-2:2.10.1-6. El7.x86_64[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# Rpm-e qt3-mysql-3.3.8b-Wuyi. El7.x86_64[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# Rpm-e qt5-qtbase-mysql-5.6.1-Ten. El7.x86_64[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# Rpm-e mysql-python-1.2.5-1. El7.x86_64[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# Rpm-e mariadb-libs-5.5. the-1. El7.x86_64[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# Rpm-qa |grepmariadb[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# Rpm-qa |grepmysql# to this completely uninstall MARIADB/mysql[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# RPM-IVH mysql-community-common-5.7. --1. El7.x86_64.rpm[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# RPM-IVH mysql-community-libs-5.7. --1. El7.x86_64.rpm[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# RPM-IVH mysql-community-client-5.7. --1. el7.x86_64.rpm [[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# RPM-IVH mysql-community-server-5.7. --1. el7.x86_64.rpm warning: MySQL-community-server-5.7. --1. el7.x86_64.rpm: Head V3 dsa/SHA1 Signature, key ID 5072e1f5:nokey in preparation ... ################################# [ -%] is upgrading/Install ...1: mysql-community-server-5.7. --1. e################################# [ -%] #启动服务 [[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# systemctl start mysqld@localhost init.d]#/bin/systemctl start Mysqld.service[[email protected] init.d]# chkconfig mysqld on Note: The request is being forwarded to the Systemctl enable Mysqld.service ". [[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]$ RPM-IVH *rpm[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]#/bin/systemctl start mysqld.service[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]#sudo grep 'Temporary password'/var/log/Mysqld.log .-Geneva-20t09: *: -.412872Z1[Note] A temporary password is generated for[email protected]: LC (7rvrhssrw[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# Mysql-uroot-Penter Password:welcome to the MySQL Monitor. Commands End With; or \g.your MySQL connectionIDIs +Server Version:5.7. -Copyright (c) -, ., Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or Itsaffiliates. Other names trademarks of their respectiveowners. Type'Help ;'Or'\h' forHelp. Type'\c'ToClearThe current input statement. mysql> ALTER USER'Root'@'localhost'Identified by'mynewpass4!'; Query OK,0Rows Affected (0.00sec) MySQL>exitbye[[email protected] MySQL-5.7. --1. el7.x86_64.rpm-bundle]# Mysqladmin-p-u root shutdownenter Password:
CentOS 7 Linux Uninstall/install MySQL MySQL 5.7