Linux configuration MySQL Database detailed

Source: Internet
Author: User
Tags new set mysql login

How to configure the MySQL database under Linux system, the distribution used below is Centos5.8.

1. Yum installation yum install mysql* in order to ensure that the process is not a problem, we use the mysql* of the relevant are loaded

2. The advantage of Linux system is that it can automatically install MySQL for us Unlike Windows to manually configure their own, after the installation of the following prompts:

3. Restart the MySQL service after installation, may reboot failed. An error occurred

Linux system boot MySQL error: Neither host ' localhost.localdomain ' nor ' localhost ' could be looked

Solutions

To see what files cat/etc/hosts found, edit the content-related configuration.

Vim/etc/hosts Enter the following: 127.0.0.1localhost.localdomain localhost

Then restart MySQL

4. After reboot, you can run normally, and then modify the initial password. Just finished installed is not a password, we can directly enter the MySQL login:

5. After the normal operation of the test, we quit to modify the initial password, after the change, and then directly enter the MySQL test:

6. Use the new set of password 123456 to log on normally:

The above is the Linux system to configure the installation of MySQL some simple steps!

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.