mysql string size limit


when i want to restore a xml backup-file in jira that use mysql ,i get an error about string size limitiotin for some custom fields , what's the problam and what does can i do ?

i can use this backup file when i using hsql , but i cant restore it when i using mysql

thanks a lot

1 answer

Hi Mehran,

Can you include the error message here so we can have a look?

Its possible you'll have to extend the column length on the database table for the restore to complete successfully.

That does look like the column length needs to be extended.

Stringvalue in that table is restricted to 255 characters, so bumping that up to 512 will hopefullly suffice :)

thanks Pelle,

how can i change it ? in wich table?

is there any way to convert all stringvalue to nvarchar or bumping all of them to 512 ?

The error looks like the table is 'customfieldvalue' and the column 'stringvalue' needs extending. For MySQL I believe the syntax would be something like:

ALTER TABLE customfieldvalue MODIFY stringvalue VARCHAR(512);

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,314 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot