Linux system installation Mysql5.7.18 Tutorial collection sharing

Source: Internet
Author: User
Tags mysql in

I recently started server novice, need to build a server on the Linux virtual machine

First day reload virtual machine, choose the Linux system CentOS, all smooth.

The next day, to install the virtual machine MySQL, but need to use the command line for installation/operation, etc., I am a face between force (PS: Since graduation has been on the windows to do Android development, never touched the Linux system).

So only the Internet to find installation tutorials, indeed there are a lot of network resources can be used, but each has its own pits, coupled with the unfamiliar Linux, the whole morning are stepping on the pit. By the end of the day, only to find that MySQL in the 5.7 version of the installation and the previous version of the installation process is very far from ~

After lunch break attitude, start again, in the search installation method when the version indicated, finally found a relatively concise tutorial, the following release to share with you server Novice ~

Links: http://www.jb51.net/article/112248.htm

However, the above tutorial also has a pit, that is, the default password modification-The new version of MySQL when installed will give a root user's default password, and this password is random. This password will appear on the last line when the installation is complete, please note ~

To modify this default password, it is not possible to follow the link provided above. Here's a list of really viable methods ():

Refer to the official document, see http://dev.mysql.com/doc/refman/5.6/en/alter-user.html. OK after doing the following:

mysql> CREATE DATABASE Yan1;
ERROR 1820 (HY000): Must SET PASSWORD before executing this statement
mysql> SET PASSWORD = PASSWORD (' 123456 ');
Query OK, 0 rows affected (0.03 sec)

mysql> CREATE DATABASE Yan1;
Query OK, 1 row Affected (0.00 sec)

That is, with mysql> set PASSWORD = PASSWORD (' 123456 '), this sentence reset the password again!

The above change password method is from http://blog.csdn.net/yanzi1225627/article/details/8694358.

At this point, MySQL installation is successful, I also loose a mouthful of atmosphere. Finally, thank you very much for the author of the article in the link quoted above ~ ~

Linux system installation Mysql5.7.18 Tutorial collection sharing

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.