mysql8.0.30的RPM包安裝方法
mysql8.0.30的RPM包安裝方法
1、RPM包的安裝順序如下:
rpm -ivh mysql-community-client-plugins-8.0.30-1.el7.x86_64.rpm
rpm -ivh mysql-community-common-8.0.30-1.el7.x86_64.rpm
yum remove mysql-libs
rpm -ivh mysql-community-libs-8.0.30-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-8.0.30-1.el7.x86_64.rpm
yum install openssl-libs
rpm -ivh mysql-community-icu-data-files-8.0.30-1.el7.x86_64.rpm
rpm -ivh mysql-community-server-8.0.30-1.el7.x86_64.rpm
2、啟動
systemctl start mysqld
3、檢視初始密碼
more /var/log/mysqld.log
2022-09-22T03:52:03.704142Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.30) initializing of server in progress as process 44791
2022-09-22T03:52:03.713380Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-09-22T03:52:04.736016Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2022-09-22T03:52:05.733605Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: .O/axplLr9ei
2022-09-22T03:52:07.978819Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.30) starting as process 44838
2022-09-22T03:52:07.997204Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-09-22T03:52:08.612731Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2022-09-22T03:52:09.088371Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2022-09-22T03:52:09.088421Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2022-09-22T03:52:09.122718Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.30' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server
- GPL.
2022-09-22T03:52:09.123749Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
4、登入並修改初始密碼
mysql -uroot -p'.O/axplLr9ei'
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.30
mysql> alter user root@localhost identified by 'xy_WQ123#';
Query OK, 0 rows affected (0.01 sec)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/543979/viewspace-2915753/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- centos以RPM包方式安裝redis的方法CentOSRedis
- yum如何解除安裝已安裝的rpm並安裝本地rpm包
- RPM包的安裝與升級
- rpm包安裝升級與解除安裝
- RPM包安裝與介紹
- centos(linux): rpm -V 驗證rpm包安裝程式的安全CentOSLinux
- CentOS下使用rpm包安裝MySQLCentOSMySql
- 在 Fedora 中安裝替代版本的 RPM 包
- 基於Linux的MySQL5.7RPM包安裝LinuxMySql
- Greenplum_原始碼編譯安裝和RPM包安裝原始碼編譯
- Linux RPM包安裝、解除安裝、升級命令講解Linux
- rpm:虛擬包:空白包:欺騙包:do nothing包:滿足現有rpm包安裝依賴的要求
- yum/dnf/rpm 等 檢視rpm 包安裝路徑 (fedora 中 pygtk 包內容安裝到哪裡了)
- yum安裝軟體之後如何儲存rpm安裝包
- 徹底解除安裝rpm軟體包的指令碼指令碼
- 使用CheckInstall從原始碼製作RPM安裝包原始碼
- Mysql 5.7在OL 6上以RPM包安裝MySql
- Yum命令之僅下載rpm安裝包且不安裝
- mysql安裝(rpm)MySql
- Linux rpm -e --nodeps rpm解除安裝Linux
- PostgreSQL 10.12 安裝系列 - 本地RPM安裝SQL
- 安裝R包常見的方法
- MySQL 5.7.22 rpm 安裝方式MySql
- Mysql for Linux安裝配置之—— rpm(bundle)安裝MySqlLinux
- PostgreSQL 10.12 安裝系列 - Yum+rpm 安裝SQL
- 【DB寶3】在Docker中使用rpm包的方式安裝Oracle 19cDockerOracle
- 『學了就忘』Linux服務管理 — 76、RPM包安裝的服務管理Linux
- 透過yum在centos6.6上安裝mysql5.7.21rpm包CentOSMySql
- CentOS 8 停止維護後透過 rpm 包手動安裝 dockerCentOSDocker
- rpm包的查詢
- RPM包的構建
- clickhouse-backup(RPM方式安裝)
- Oracle 19c RPM安裝Oracle
- rpm方式離線安裝ansible
- rpm方式安裝redis4.0Redis
- Linux命令之rpm安裝命令Linux
- RPM 包是如何從源 RPM 製作的
- OpenSSH9.6p1的EL7版本rpm安裝包製作