CentOS7 installing MySQL

Source: Internet
Author: User

Installing a standalone version of MySQL5.6.23 in a CentOS7 environment
Since MySQL needs to rely on Perl's package, install Perl using the following command first
1. Yum Install perl*
Installing Mysql-client
2. RPM-IVH mysql-client.rpm
Since Mysql-server needs to rely on Net-tools, install the net-tools using the following command first
3. Yum Install Net-tools
Because mysql-server conflicts with MARIADB, uninstall MARIADB using the following command:
4. Yum Erase mariadb*
Installing mysql-server.rpm
5. RPM-IVH mysql-server.rpm
See if MySQL is started
6./etc/init.d/mysql Status
If MySQL does not start, then use the following command to start
7./etc/init.d/mysql Start
View MySQL started those processes
8. Ps-a | grep MySQL
Since there is no new group MySQL with the user MySQL, so MySQL installation directly using the system's root user, during the installation process for the data
The root user of the library generates a default password that is saved in the. mysql_secure file
9. Cat. Mysql_secret

[Email protected]2catfor one: $  time): Dlzqfs4r9_ilyvue


Log in to MySQL
Ten. Mysql-u root-p
The password for the first login to MySQL is the password in the. mysql_secret file, and the password must be reset after successful login
One. Set password = password (' password ')
After setting the password, re-refresh the privileges for the password modification to take effect.
Flush Privileges

CentOS7 installing MySQL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.