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

Source: Internet
Author: User

The following problems were encountered during development today,

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

However, my MySQL does not have administrator users ah, read the Windows system users, what happened.

By looking through the data, learned: ${username} in Windows defaults to take the computer account number, so can not write ${username}


Modify Scenario: Change the Username= "root" in the Jdbc.properties configuration file to jdbc.username= ' root ' .


Reference:

Http://bbs.csdn.net/topics/391079485?page=1

${username} under Windows default value for the computer account, the general computer account for the administrator, if your computer account is set up by yourself that set up the account, Database connection when the database does not have administrator users or users with the same name as your computer account, you will report an error, generally in order to avoid and Windows basic configuration conflicts, database connection names often write longer such as ${hibernate.jdbc.username} This allows you to uniquely identify the user name without conflict with Windows.

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.