In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article shares the detailed steps of installing mysql5.7 under centOS for your reference. The details are as follows
Step one:
The first sentence checks whether the system has its own installation mysql, and if it executes the second sentence to delete the system's own mysql and its dependencies.
Yum list installed | grep mysqlyum-y remove mysql-libs.x86_64
Step 2:
To add a rpm source to CentOS and select a newer source, the following code executes step by step
Wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpmyum localinstall mysql-community-release-el6-5.noarch.rpmyum repolist all | grep mysqlyum-config-manager-- disable mysql55-communityyum-config-manager-- disable mysql56-communityyum-config-manager-- enable mysql57-community-dmryum repolist enabled | grep mysql
Step 3:
Install the mysql server
Yum install mysql-community-server
Step 4:
Service mysqld start
Step 5:
Check whether mysql is self-starting, and set to enable self-startup.
Chkconfig-- list | grep mysqldchkconfig mysqld on
Step 6:
This step is very important!
Do not know from which version of mysql, the mysql root default password is not empty, during the installation process, the default password is saved in the installation log. We need to find the default password through the installation log. Logging in to mysql with the default password will force you to change the password. The modified password has to be complex enough (the default password policy for compound mysql) to change successfully, usually with uppercase and lowercase letters, special characters and numbers that exceed 8 characters.
First find the installation log
Find /-name mysqld.log
Then the path to the log file is found in / var/log/mysqld.log. Then open it with the following command and press the'i' key to scroll up
Vim / var/log/mysqld.log
The red spot above is where the root password is located.
Step 7:
Mysql Security Settings
Mysql_secure_installation
Enter the above command to perform the following steps
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!In order to log into MySQL to secure it, we'll need the currentpassword for the root user. If you've just installed MySQL, andyou haven't set the root password yet, the password will be blank,so you should just press enter here.Enter current password for root (enter for none):
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.