Some problems during mysql installation _ MySQL-mysql tutorial

Source: Internet
Author: User
Some problems during mysql installation: bitsCN.com

Some problems during mysql installation

The problem is as follows:

/Usr/bin/mysql_secure_installation

NOTE: running all parts of this script is recommended for all MySQL

Servers in production use! Please read each step carefully!

In order to log into MySQL to secure it, we'll need the current

Password for the root user. If you 've just installed MySQL, and

You haven't set the root password yet, the password will be blank,

So you shoshould just press enter here.

Enter current password for root (enter for none ):

ERROR 1820 (HY000): You must set password before executing this statement

Solution:

Log on to mysql

If you cannot log on to mysql, you can add skip-grant-tables in my. cnf; skip verification, log on to mysql, and reset the password.

Set password = password ('20140901 ');

Then run

/Usr/bin/mysql_secure_installation

Set security.

Work done

BitsCN.com

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.