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