The following error is reported when using jdbc to connect to a database in IDEA:
Solution:
1. In IDEA, select Run -> Edit Configurations;
2. In the pop-up interface, enter -Duser.name=user in VM option and restart.
****If VM options are not found
* * * * restart operation
File-> Invalidate Caches-> Just restart
Read More:
- [Solved] mybatis Error querying database. Cause: java.sql.SQLException: The server time zone value
- [Solved] Error updating database. Cause: java.sql.SQLException: Incorrect integer value: ‘**‘ for column
- [Solved] Error updating database. Cause: java.sql.SQLException: Unknown initial character set index ‘255‘ re
- Error querying database.Cause: java.sql.SQLException: Error setting driver on UnpooledDataSource.
- API Failed to Connect phoenix Error: java.sql.SQLException: ERROR 726 (43M10): Inconsistent namespace mapping properties
- [Solved] Mybatis insert Error: Cause: java.sql.SQLException: SQL String cannot be empty
- [Solved] java.sql.SQLException: Unsupported character encoding ‘utf-8
- [Solved] java.sql.SQLException: Unknown system variable cache query size
- Java.sql.sqlexception: unable to read more data from socket
- [Solved] java.sql.SQLException: Table ‘xxx.hibernate_sequence’ doesn’t exist
- [Solved] JAVA Operate Database Error: You have an error in your SQL syntax; Dao layer SQL statement error
- Error querying database. Cause: java.sql.SQLSyntaxErrorException: Expression #2 of SELECT list is no
- [Solved] java.sql.SQLRecoverableException: IO Error: Undefined Error
- Java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver [How to Solve]
- [How to Fix]java.sql.SQLException: Incorrect string value: ‘\xF0\x9F\x98\x82\xF0\x9F…’
- [Solved] com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure error
- [Solved] init datasource error, url: xxxjava.sql.SQLRecoverableException: IO ERROR: Undefined Error
- Extracting JDBC tool class: JDBC utils
- [Solved] Tomcat Server Error: java.lang.NullPointerException Csonsole Error ClassNotFoundException: com.mysql.jdbc.Driver
- [Solved] IDEA springboot Startup Error: java.lang.UnsatisfiedLinkError: no tcnative-1 in java.library.path