MySQL connection error

Source: Internet
Author: User
Tags mysql command line

Springboot using JAP to connect MySQL database error

Access denied for user ' @ ' localhost ' (using Password:no)

Database connection password, use local database localhost, no password set, run the program to report the error above,

Database connection password parameter is not set or set to an empty string are reported above the error, helpless, set a password for the local database

Check: The process is as follows, the pro-test pipe

Windows:

Modify the My.ini file, at the end of the add Skip-grant-tables, skip the process of entering the password, otherwise it seems not to enter the MySQL command line interface,

Then restart the MySQL service

Go to cmd

Switch to the MySQL installation directory under bin

Execute the following command at once

Use MySQL;

Update user set Password=password (") where user= ' root ';

Flush privileges;

Quit

Note: Each line must be preceded by a semicolon followed by a return

Prompt for query OK to execute successfully

MySQL connection error

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.