1、提示Mysql server has gone awaymysql
解决办法:sql
打开mysql安装的文件夹位置找到my.ini添加以下图:spa
max_allowed_packet = 500M
wait_timeout=288000
interactive_timeout = 288000server
重启服务或者重启电脑就好了blog
2、导入sql文件会出现表建立不成功it
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3),`US' at line 8io
缘由是字段类型timestamp设置有字段的长度,把长度去掉就能够了date
若是是datetime也能够这样处理im