To open the connection tool, I use mobaxterm? Personal? 12.1 (download address: https://moba.en.softonic.com/)
Connect to ECs and remove the default MariaDB database: Yum remove mariadb-libs.x86 ʄ
Then create a directory. I usually put the software in / usr / local, and then enter the directory. Download: WGet https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
Then install
The two names in the red box need to be the same,
After entering Yum localinstall my, you can press tab to complete it automatically
This option will appear. Enter y
Install: Yum install MySQL community server
If this happens, the installation is successful:
Then start: Service mysqld start view status service mysqld status
This means that the startup is successful:
View the initial password: cat / var / log / mysqld.log | grep password
Login: MySQL – U root – P
[because the input password is not displayed, don’t worry about it. How to input it]
This means the login is successful