#卸载mariadb/mysql
[root@localhost mysql-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 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:
相关推荐
centos7安装配置mysql5.7教程全
在本地虚拟机的场合,需要更换yum安装网络地址配置文件CentOS-Base.repo 从阿里云服务器下载一份CentOS-Base.repo文件存到本地
CentOS安装MySQL5.7,带部分截图
CentOS-二进制安装mysql5.7、CentOS-二进制安装mysql5.7、CentOS-二进制安装mysql5.7、CentOS-二进制安装mysql5.7、CentOS-二进制安装mysql5.7、CentOS-二进制安装mysql5.7、CentOS-二进制安装mysql5.7、CentOS-二...
CentOS7.4环境安装MySQL5.7步骤,包括环境准备,依赖包的安装等
系统环境:centos6.7 ,数据库:MySQL5.7。里面包含安装数据库所需要的依赖包,和一些基本设置,不足之处多多指教。
centos7下安装mysql5.7步骤!
安装环境:CentOS7 64位 MINI版,安装MySQL5.7 同一个主机、不同显示器、连接多个键盘鼠标、多用户、多桌面同时操作
安装依赖包,检查是否安装mysql和mariadb,卸载系统自带的 mysql和mariadb-lib,没有则跳过,下载安装包,解压到指定目录,并创建文件链接,创建mysql相关的组和用户,创建mysql相关的目录,创建mysql的配置文件,安装mysql...
CentOs7下mysql5.7的下载安装以及主从同步、双主多从配置详情
1. Centos7下MySQL5.7.30 安装步骤 2. MySQL 双主环境搭建步骤 3. md语法编写,建议使用 typora 打开
centos7下离线安装mysql5.7完美教程,可查看我的首页寻找安装资源
centos7系统安装mysql5.7所需要的rpm安装包,包括mysql-client、mysql-common、mysql-lib、mysql-server
针对在CentOS7.1编译安装mysql-5.7.7遇到各种各样的困难的人,或许有点作用
centos安装mysql5.7.docx
linux系统安装mysql详细安装方法,及下载地址,以及linux的命令
MySQL5.7版本升级操作说明_centos7 MySQL5.7版本升级操作说明_centos7 MySQL5.7版本升级操作说明_centos7
Linux_CentOS7离线安装Mysql.txt,自己搭建的环境
Centos7mysql5.7安装.docx
mysql 5.7 CentOS 7 离线安装包