解决1406 - Data too long for column ‘introduction‘ at row 4

Start writing course design for virtual cloud computing today

It could be something like this:

1. Install MySQL+Navicat with a link attached, this blog is really nanny level: MySQL+Navicat installation configuration tutorial (super detailed, nanny level)_navicat installation tutorial_Guarjia Minmin's blog-CSDN blog 2. Crawl data

3. Import data into the newly created database:

Encountered a problem^_^: An error was reported when importing data:

1406 - Data too long for column 'introduction' at row 4

After reading this blog, I said to go to MySQL to modify it:

mysql error: 1406, Data too long for column

However, baa did not solve my problem

So I re-established a database, the character set of the database was changed to gb2312, and it was solved!

 Summary: I think it is because of Chinese. Set gbk, gb18030 should also be able to solve.

 

Guess you like

Origin blog.csdn.net/fangqi100/article/details/130352460