Gordana Tasic

Gordana Tasic

  • 1.6k
  • 87
  • 12k

How to keep the column type without MySQL changing it?

Jul 8 2021 9:04 AM

I have column "description" in table in MySQL database. Type for that column is longtext. However, when i want to write something in that column, MySQL changes type to varchar(255) and I have error "Data too long for column 'description' at row 1". Does anyone know how to keep type longtext without MySQL changing it?


Answers (1)