广州网站建设熊掌号,购物网站开发的意义,淘宝在哪个网站做推广,东莞横沥中学csdn有一个#xff0c;要收费#xff0c;研究后原因如下#xff0c;是 mysql不支持 SQL catalogs and schema#xff0c; 解决方式就是去掉 这两个字段#xff0c;同时在jdbcConnection中设置nullCatalogMeansCurrent属性为true。 手册如下
MySql does not properly supp…csdn有一个要收费研究后原因如下是 mysql不支持 SQL catalogs and schema 解决方式就是去掉 这两个字段同时在jdbcConnection中设置nullCatalogMeansCurrent属性为true。 手册如下
MySql does not properly support SQL catalogs and schema. If you run the create schema command in MySql, it actually creates a database - and the JDBC driver reports it back as a catalog. But MySql syntax does not support the standard catalog..table SQL syntax.
For this reason, it is best to not specify either catalog or schema in generator configurations. Just specify table names and specify the database in the JDBC URL.
If you are using version 8.x of Connector/J you may notice that the generator attempts to generate code for tables in the MySql information schemas (sys, information_schema, performance_schema, etc.) This is probably not what you want! To disable this behavior, add the property nullCatalogMeansCurrenttrue to your JDBC URL.
For example: jdbcConnection driverClasscom.mysql.jdbc.Driver connectionURLjdbc:mysql://localhost/my_schemauserIdmy_user passwordmy_passwordproperty namenullCatalogMeansCurrent valuetrue //jdbcConnection