mysql数据库版本不同_mysql数据库版本不同所引起的问题
1.sql_mode不同所引起的問題
mysql5.7 ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'lhh.lhh.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
mysql5.8 去掉了NO_AUTO_CREATE_USER
2.表的默認值
int not null
text not null default ''
int類型無默認值 插入時未插入該項 mysql5.6成功 mysql5.7以not null卻未有默認值而報錯。
text類型不允許有默認值 mysql5.8。親測5.6允許有默認值。
3.mysql系統(tǒng)庫做的改變
mysql5.7存在mysql.event mysql.proc ... 但在mysql8中已經(jīng)存在上述兩張表了。
4.innodb_strict_mode
創(chuàng)建的表字段過多 一行的字節(jié)大于65535個字符就會報錯 需要設(shè)置innodb_strict_mode=0
5.lower_case_table_names
linux與windows操作系統(tǒng)下需要注意
6.default_authentication_plugin=mysql_native_password
這個不設(shè)置有可能會引起之前程序連接不上新版數(shù)據(jù)庫的問題
任何一個開發(fā)好的龐大系統(tǒng)再轉(zhuǎn)換數(shù)據(jù)庫時總是不容易的。
總結(jié)
以上是生活随笔為你收集整理的mysql数据库版本不同_mysql数据库版本不同所引起的问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 我家有三个路由器怎么设置如何设置三个有线
- 下一篇: 路由器刷第三方固件路由器如何刷入固件