*September 09, 2010, 07:05:35 AM
Welcome, Guest. Please login or register.
September 09, 2010, 07:05:35 AM

Login with username, password and session length
508 Posts in 100 Topics by 81 Members - Latest Member: lakme
Search:     Advanced search
StrongAuth, Inc. Forums
* Home Help Search Login Register
« previous next »
Pages: [1] Print
Author Topic: mysql create.txt - row size too large error and fix  (Read 3219 times)
mayo
Jr. Member
**
Posts: 76


View Profile
« on: January 30, 2009, 07:11:54 AM »

Just in case anyone else has the problem, I wanted to post an error I came across that I wasted some time on and had a simple reason/fix.

Upon running in MySQL the command "source create.txt" I would get 5 or 6 errors that read

"ERROR 1118 (42000): Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. You have to chang
some columns to TEXT or BLOBs"


I'm installing a test strongkey environment on windows with a previous installation of MySQL.  Contrary to the instructions I didn't use the my.cnf config file given because I didn't know how at first, but I used the MySQL admin tools to configure the mysql windows service to match the config.


FIX
I lack DB knowledge and eventually found the DB Characterset being used caused the error. For some reason mine was set to UTF-8. Make sure the symkey database is using latin1 as its characterset.  Type "status" at mysql command line to see what the DB characterset is.  In MySQL admin tools, you can find the characterset setting under Startup Variables and the Advanced tab.  There's a way to set it via MySQL command line.  You should be able to find all other information via Google pretty easily.
Logged
shuaige
Newbie
*
Posts: 1


View Profile
« Reply #1 on: October 22, 2009, 01:41:21 PM »

Not to necro-post, but I found this posting on Google when searching for the exact same MySQL problem.
And it worked! I changed my database's CHARSET to latin1 from utf8, and my CREATE TABLE statement went through without that stupid error.

Just for anyone running into the same problem and randomly coming across this, this solution is valid.

Thanks!
Logged
mayo
Jr. Member
**
Posts: 76


View Profile
« Reply #2 on: October 27, 2009, 01:01:16 PM »

glad i could contribute!
Logged
noxym.com
Guest
« Reply #3 on: July 09, 2010, 12:53:22 PM »

glad i could contribute!
i think this is difrent then other query of php
Logged
Pages: [1] Print
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.1 | SMF © 2006, Simple Machines LLC
Themis design by Bloc
Valid XHTML 1.0! Valid CSS!