MySQL Forums
Forum List  »  Newbie

Re: Error Code: 2027 Malformed packet
Posted by: Rick James
Date: June 26, 2014 06:08PM

> I just changed each individual table's charset but haven't changed the charset for the database itself

If you are referring to
CREATE TABLE ( ... ) DEFAULT CHARACTER SET utf8
then that is mostly irrelevant -- it just changes the charset for any _new_ fields you add without an explicit charset.

> is it best practice to have the same charset for tables and the overall db or doesn't it matter?

Again, the DATABASE has a DEFAULT that propagates down to the tables.

Do a SHOW CREATE TABLE -- each column will state explicitly what CHARACTER SET and COLLATION that applies to that column. You may find that your columns are still latin1.

Study
http://mysql.rjweb.org/doc.php/charcoll

Options: ReplyQuote


Subject
Written By
Posted
Re: Error Code: 2027 Malformed packet
June 26, 2014 06:08PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.