Ads were blocked by your webbrowser.

This is not a problem, but keep in mind that developing HeidiSQL, user support and hosting takes time and money.

You may want to send a donation instead.

Error 1146 displays wrong message

Natty Roots's profile image Natty Roots posted 2 years ago in Running SQL scripts

Minor bug, but it got me stuck for a bit. When I run a query and make a mistake on the table name (i.e. 'table_names' instead of 'table_name') the error 1146 (wich is the right one to be called) says : "SQL Error (1146) : on GRANT is too long". This might be only a translation error though (in this case it should be : "Erreur SQL (1146) : La table n'existe pas").

1 attachment(s):
  • errorMessageHEIDISQL
ansgar's profile image ansgar posted 2 years ago

HeidiSQL does not translate error messages. This is done by a server variable, namely lc-messages. The data behind that French translation may be wrong. I would test that by temporarily setting it to english messages:

SET @@session.lc_messages = 'en_US';

After doing that, you should get messages in English. Watch out for the same error, I guess it's the right one then.

However, I don't know where and how the server holds the translated messages. But probably this is a text file somewhere.

Probably the wrong translation was already fixed in a newer MySQL release.

Natty Roots's profile image Natty Roots posted 2 years ago

Thanks for your answer, lc_messages was already set to en_US (I guess it is by default) but changing it to my language did the trick for me (in my case fr_FR).

1 attachment(s):
  • errorMessageFixed_HEIDISQL

Please login to leave a reply, or register at first.