2019/12/20 学习笔记
Resource is out of sync with the file system
当你在eclipse的文件夹下复制或者新建某个文件时,可能会出现这个错误,出现这个错误的原因是因为你在文件资源管理器下更改了某些文件,而eclipse检测到了,但你又没有刷新,所以需要按f5刷新,或者右键刷新。
error code [1449]; The user specified as a definer (‘root’@’%’) does not exist; nested exception is java.sql.SQLException: The user specified as a definer (‘root’@’%’) does not exist xxx
这个错误是说,sql的root没有存在或者没有权限,需要加一句sql
mysql> grant all privileges on . to root@"%" identified by “.”;
随便在你的sql连接视图工具上的数据库上加上这句话,
具体做法 新建查询,黏贴,运行。
Incorrect datetime value: ‘0000-00-00 00:00:00’ for column ‘user_birthday’ a
先运行sql , show variables like ‘sql_mode’;
会出现一条查询记录,把查询的记录中的NO_ZERO_IN_DATE,NO_ZERO_DATE这两个删掉即可:
不是说在记录里面删除。
具体做法 复制记录结果
新建查询
粘贴
运行
如我的sql:
set global sql_mode=‘ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION’;