当前位置:网站首页>Operating system migration practice: deploying MySQL database on openeuler
Operating system migration practice: deploying MySQL database on openeuler
2022-07-26 16:07:00 【InfoQ】
Let me write it out front
1. Brief introduction
2. Environmental Science



3. Software compatibility evaluation
3.1 obtain mysql Of RPM Package and extract to /opt/mysql Under the table of contents
wget –P /opt https://downloads.mysql.com/archives/get/p/23/file/mysql-5.7.21-1.el7.x86_64.rpm-bundle.tar
cd /opt/
mkdir mysql
tar -xf mysql-5.7.21-1.el7.x86_64.rpm-bundle.tar -C mysql
3.2 download x2openEuler Tools to /opt/mysql
Download guide :https://www.openeuler.org/zh/other/migration/
3.3 Deployment tools
cd /opt/mysql
rpm -ivh x2openEuler-2.0.0-1.x86_64.rpm
su x2openEuler
x2openEuler redis-db -init
x2openEuler init source_centos7.6-openEuler20.03-LTS-SP1.tar.gz
3.4 scanning mysql
x2openEuler scan /opt/mysql/
Note that the migration file to be analyzed needs to be able to x2openEuler Permissions that users can read
The scanning will be completed in /opt/x2openEuler/output Directory generation html Report in format
4. Analysis of evaluation results
4.1 Report analysis


4.2 The analysis results suggest
Suggest : Due to the risk of function calls , It is recommended to use it directly in openEuler Official compilation and transplantation mysql-5.7.21 Series of software packages
https://repo.openeuler.org/openEuler-20.03-LTS-SP1/everything/x86_64/Packages/mysql5-5.7.21-3.oe1.x86_64.rpm
https://repo.openeuler.org/openEuler-20.03-LTS-SP1/everything/x86_64/Packages/mariadb-common-10.3.9-9.oe1.x86_64.rpm
https://repo.openeuler.org/openEuler-20.03-LTS-SP1/everything/x86_64/Packages/mysql5-common-5.7.21-3.oe1.x86_64.rpm
https://repo.openeuler.org/openEuler-20.03-LTS-SP1/everything/x86_64/Packages/mysql5-server-5.7.21-3.oe1.x86_64.rpm
https://repo.openeuler.org/openEuler-20.03-LTS-SP1/everything/x86_64/Packages/mysql5-errmsg-5.7.21-3.oe1.x86_64.rpm
https://repo.openeuler.org/openEuler-20.03-LTS-SP1/everything/x86_64/Packages/mecab-0.996-2.oe1.x86_64.rpm
5. mount this database mysql
5.1 install mysql And configure the password
1) install mariadb And mysql Related services .
rpm -ivh mysql5-5.7.21-3.oe1.x86_64.rpm mariadb-common-10.3.9-9.oe1.x86_64.rpm mysql5-common-5.7.21-3.oe1.x86_64.rpm mysql5-server-5.7.21-3.oe1.x86_64.rpm mecab-0.996-2.oe1.x86_64.rpm mysql5-errmsg-5.7.21-3.oe1.x86_64.rpm
2) start-up mysql.
systemctl start mysqld
3)mysql State query .
[email protected] ~# systemctl status mysqld
● mysqld.service - MySQL 5.7 database server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; disabled; vendor preset: disabled)
Active: active (running) since Thu 2021-09-09 10:23:25 CST; 1 day 4h ago
Process: 103715 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, status=0/SUCCESS)
Process: 103738 ExecStartPre=/usr/libexec/mysql-prepare-db-dir mysqld.service (code=exited, sta>
Process: 103773 ExecStart=/usr/libexec/mysqld --daemonize --basedir=/usr --pid-file=/run/mysqld>
Process: 103803 ExecStartPost=/usr/libexec/mysql-check-upgrade (code=exited, status=0/SUCCESS)
Main PID: 103775 (mysqld)
Tasks: 37
Memory: 188.4M
CGroup: /system.slice/mysqld.service
└─103775 /usr/libexec/mysqld --daemonize --basedir=/usr --pid-file=/run/mysqld/mysqld.
4) Log in and change the default password .
- a. No password by default , Press enter to login .
[email protected] /# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.21 MySQL Community Server (GPL)
Copyright (c) 2000, 2018, 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>
- b. Set the password .
mysql> alter user 'root'@'localhost' identified by '123456';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql>
5) Verify password .
[email protected] /# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3Server version: 5.7.21 MySQL Community Server (GPL)
Copyright (c) 2000, 2018, 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>
6. summary
Reference material :
边栏推荐
猜你喜欢
FTP协议
![[tool sharing] automatic generation of file directory structure tool mddir](/img/bc/1071c0dfb20d16f5fdde641092c1af.png)
[tool sharing] automatic generation of file directory structure tool mddir

“核弹级” Log4j 漏洞仍普遍存在,并造成持续影响

PS + PL heterogeneous multicore case development manual for Ti C6000 tms320c6678 DSP + zynq-7045 (3)

Finally, someone explained the red blue confrontation clearly

【DSCTF2022】pwn补题记录

Google Earth Engine——MERRA-2 M2T1NXSLV:1980-至今全球压力、温度、风等数据集

13 years of senior developers share a year of learning rust experience: from the necessary bibliography to code practice

Mapwithstate of spark streaming state flow

German EMG e-anji thruster ed301/6 HS
随机推荐
初识OpenGL (4)链接着色器
Implementation of SAP ABAP daemon
13年资深开发者分享一年学习Rust经历:从必备书目到代码练习一网打尽
【ARM学习(9) arm 编译器了解学习(armcc/armclang)】
Parker pump pv140r1k1t1pmmc
【DSCTF2022】pwn补题记录
PS + PL heterogeneous multicore case development manual for Ti C6000 tms320c6678 DSP + zynq-7045 (3)
理解卷积神经网络中的权值共享
朋友圈如何测试(思维导图)
终于有人把红蓝对抗讲明白了
SAP ABAP Netweaver 容器化的一些前沿性研究工作分享
《硅谷之谜》读后感
VS2019Debug模式太卡进不去断点
Basic specification of component development, localstorage and sessionstorage, object data to basic value, prototype chain use
German EMG electric actuator eb800-60ii
Quanzhi a40i industrial core board, 100% domestic 4-core arm cortex-a7, supports "dual screen abnormal display" [display interface capability, preferred scheme for industrial HMI]
基于NoCode构建简历编辑器
PAT甲级 1044 Shopping in Mars
Alibaba cloud DMS MySQL cloud database report error, solve!!
6种方法帮你搞定SimpleDateFormat类不是线程安全的问题