MySQL Green edition installation encountered problems

Source: Internet
Author: User

1.mysql failed to initialize:

Mysqld-initialize is a failure because it was previously installed, removed later, and is now reinstalled.

Workaround:

1) command line execution: mysqld--initialize--user=mysql--console

2) Execute the above command first to generate the library. Note that there is a temporary password to write down.

3) then start the service.

4) then the command line: mysql-uroot-p

5) Enter temporary password login

6) Modify Login password

2. Forgot login Password:

Unable to remember the temporary password, have been unable to login. (The last discovery is actually missing a symbol, Khan.) )

Workaround:

1) in MySQL root directory, there is a my-default.ini, copy one, rename to My.ini

2) Open My.ini Edit, in [mysqld] next line, add: skip-grant-tables

Note: This is the beginning without password login, after changing the password, comment out.

3) Restart the MySQL server. (cmd:net stop MySQL, then, net start MySQL)

      Note: The above steps can simplify the command, Cmd:mysqld_safe--skip-grant-tables

However, you must close MySQL before executing.

4) Cmd:mysql-uroot-p

5) Enter without entering the password directly

6) Cmd:set password for ' root ' @ ' localhost ' = password (' root '); (the last root is the password you want to change)

6.2) can also go into db modification, cmd:update mysql.user set authentication_string = password (' root ') where user = ' root ';

      Note: It is important to note that there is no password field in the user table in the new MySQL database.

        Instead, the encrypted user password is stored in the Authentication_string field

7) Refresh data: Cmd:flush privileges;

MySQL Green edition installation encountered problems

Related Article

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.