
Mysql
文章平均质量分 70
Mysql ;Mybatis;Mybatis-Plus;
java请多指教
这个作者很懒,什么都没留下…
展开
-
argument type mismatch(注解@TableId(value = “id“,type = IdType.AUTO) 和 @TableField)
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property ‘id’ of ‘class com.example.finalspringsecurity.entity.Log’ with value ‘1476725931937652738’ Cause: java.lang.IllegalArgu原创 2021-12-31 09:50:03 · 1852 阅读 · 0 评论 -
The driver has not received any packets from the server.(linux中关于mysql相关命令)
原因:呃呃、重启服务器,没有重新启动mysql;linux中关于mysql相关命令1、检查MYSQL是否已安装:yum list installed | grep mysql2、查看mysql安装目录:whereis mysql3、启动linux服务器中mysql命令:systemctl start mysqldsystemctl enable mysqldsystemctl status mysqld3、进入mysql:mysql -uroot -pthe last packet s原创 2021-12-27 19:11:50 · 2527 阅读 · 0 评论 -
Mysql默认配置导致Mybatis-plus批处理性能受限
结论:1、默认情况下,Mysql驱动在在默认情况下会无视executeBatch()语句;把我们期望批量执行的一组sql语句拆散,一条一条地发给MySQL数据库,批量插入实际上是单条插入,直接造成较低的性能。2、MySQL的JDBC连接的url中要加&rewriteBatchedStatements=true参数,并保证5.1.13以上版本的驱动,才能实现高性能的批量插入,另外这个选项对INSERT/UPDATE/DELETE都有效。url: jdbc:mysql://ip地址:3306/em原创 2021-12-02 21:57:04 · 1653 阅读 · 0 评论