当前位置:Gxlcms > 数据库问题 > mysql数据库错误解决方法

mysql数据库错误解决方法

时间:2021-07-01 10:21:17 帮助过:4人阅读

----解决:打开数据库:use 数据库名

 

 

ERROR 1050 (42S01): Table ‘tb_name‘ already exists

错误解释:表“tb_name”已经存在    

----原因:重复创建相同名字的数据表

----解决:修改数据表的名字或已存在的表不重复创建

 

ERROR 1406 (22001): Data too long for column ‘std_name‘ at row 1

错误解释:字段“std_name”长度过长

----原因:插入中文发生乱码

----解决:设置字符集 set names gbk;


mysql数据库错误解决方法

标签:

人气教程排行