Java connection to MySQL database.. Password [Yes] problem:
Problems caused by incompatibility between the MySQL database version and the version used in the project ...,
Technorati tags: Java MySQL database
Solution:
1. view the database version → view the mysql version in the installation directory;
2. Download the database driver from mysql.com;
①: Google Search Keyword: MySQL [version] connector site: mysql.com; my keyword is: MySQL 5 connector site: mysql.com
Note: The above site is a reserved word for search. It is used to specify multiple websites to be searched. Multiple websites are separated by semicolons (;).
For the latest version, go to http://dev.mysql.com/downloads/download drivers and connectors;
3. Add the package to the project lib directory and view the connection class. Modify the driver class path ();
\ (^ O ^ )/~....; O! The first write in cnblogs; Mark
If you encounter the password [No] problem, it is generally because the connection string does not write the password;