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.