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?
How to keep the column type without MySQL changing it?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Sachin SinghRank #66 · 26.2K reputationPosted Jul 8, 2021, 5:46 AM EDT