M
M
MoyMirok2021-07-06 09:30:20
MySQL
MoyMirok, 2021-07-06 09:30:20

How to fix MySQL data too long error?

Hello. how to fix error MYSQL: MySQL RealTime: Failed to update database: Data too long for column?
On the previous version of Asterisk (1.8) everything worked, but here it does not accept after moving to a new server

Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2021-07-06
@MoyMirok

See in which table and which column gives an error and increase its length or change its type to TEXT.

G
Gansterito, 2021-07-06
@Gansterito

Most likely this is some user who has a long User Agent or Contact. Developers like to insert any garbage there. Try increasing the fullcontact and useragent fields.
My default is like this:

`fullcontact` varchar(35) DEFAULT NULL,

`useragent` varchar(20) DEFAULT NULL,

Put Varchar (100) on both, enough for all cases.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question