MySQL charset error?
CB
Ƹ̵̡Ӝ̵̨̄ƷDer Millionendorf- Icrontian
I'm trying to install media wiki on my server, and I get this message during install:
MySQL 4.1/5.0 charset mode enabled, but older version detected; will likely fail.
then, two steps later, it fails out of the installation with this message:
Here's the entire dialog if it helps:
MySQL 4.1/5.0 charset mode enabled, but older version detected; will likely fail.
then, two steps later, it fails out of the installation with this message:
CREATE TABLE `user` ( user_id int unsigned NOT NULL auto_increment, user_name varchar(255) binary NOT NULL default '', user_real_name varchar(255) binary NOT NULL default '', user_password tinyblob NOT NULL, user_newpassword tinyblob NOT NULL, user_newpass_time binary(14), user_email tinytext NOT NULL, user_options blob NOT NULL, user_touched binary(14) NOT NULL default '', user_token binary(32) NOT NULL default '', user_email_authenticated binary(14), user_email_token binary(32), user_email_token_expires binary(14), user_registration binary(14), user_editcount int, PRIMARY KEY user_id (user_id), UNIQUE INDEX user_name (user_name), INDEX (user_email_token) ) ENGINE=InnoDB, DEFAULT CHARSET=binary " failed with error code "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' DEFAULT CHARSET=binary' at line 20 (db1851.perfora.net)".Is this error caused by the charset mode? Anyone know what I can do about it.
Here's the entire dialog if it helps:
[LIST] [*]PHP 5.2.8 installed [*]Found database drivers for: MySQL SQLite [*]PHP server API is cgi; using ugly URLs (<tt>index.php5?title=Page_Title</tt>) [*]Have XML / Latin1-UTF-8 conversion support. [*]Session save path (<tt>/tmp</tt>) appears to be valid. [*]PHP's <tt>memory_limit</tt> is 40M. [*]Couldn't find [URL="http://turck-mmcache.sourceforge.net/"]Turck MMCache[/URL], [URL="http://eaccelerator.sourceforge.net/"]eAccelerator[/URL], [URL="http://www.php.net/apc"]APC[/URL] or [URL="http://trac.lighttpd.net/xcache/"]XCache[/URL]; cannot use these for object caching. [*]Found GNU diff3: <tt>/usr/bin/diff3</tt>. [*]Found ImageMagick: <tt>/usr/bin/convert</tt>; image thumbnailing will be enabled if you enable uploads. [*]Found GD graphics library built-in. [*]Installation directory: <tt>/homepages/12/d208215605/htdocs/isles/wiki</tt> [*]Script URI path: <tt>/wiki</tt> [*]Installing MediaWiki with <tt>php5</tt> file extensions [*]Environment checked. You can install MediaWiki. [B]Notice[/B]: Undefined variable: wikiLang in [B]/homepages/12/d208215605/htdocs/isles/wiki/config/index.php[/B] on line [B]1999[/B] [*] [B]Generating configuration file...[/B] [*]Database type: MySQL [*]Loading class: DatabaseMysql [*]Attempting to connect to database server as dbo274114825...success. [*]Connected to 4.0.27-max-log; [B]MySQL 4.1/5.0 charset mode enabled, but older version detected; will likely fail.[/B] [*]Database <tt>db274114825</tt> exists [*]Creating tables...Query "CREATE TABLE `user` ( user_id int unsigned NOT NULL auto_increment, user_name varchar(255) binary NOT NULL default '', user_real_name varchar(255) binary NOT NULL default '', user_password tinyblob NOT NULL, user_newpassword tinyblob NOT NULL, user_newpass_time binary(14), user_email tinytext NOT NULL, user_options blob NOT NULL, user_touched binary(14) NOT NULL default '', user_token binary(32) NOT NULL default '', user_email_authenticated binary(14), user_email_token binary(32), user_email_token_expires binary(14), user_registration binary(14), user_editcount int, PRIMARY KEY user_id (user_id), UNIQUE INDEX user_name (user_name), INDEX (user_email_token) ) ENGINE=InnoDB, DEFAULT CHARSET=binary " failed with error code "You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ' DEFAULT CHARSET=binary' at line 20 (db1851.perfora.net)". [/LIST]
0
Comments
edit: tried UTF-8, and I get the same error.
These are the only MySQL specific options the installer gives me. Does that help?
It seems that your character sets may not have been compiled with the MySQL binaries or the character set definitions / character array definitions are invalid. There is a whole host of messy documentation on the subject that I found in the ref. manual. I have not read any of it myself aside from skimming the linked article.
Are you installing a compiled release that you downloaded, or did you compile it yourself on your server?
Was there something else I should have done first?
BTW: I don't know much about MySQL (if you didn't notice yet). I went into this thinking it would be just like installing a program on my PC.
The installer specifically recommends against the 4.0 charset, but I guess I'll try the install with that option.
edit: That seems to have done it. Thanks guys.
But glad that fixed it for you.
Hey, I have found the same issue you found. So how do you install with the 4.0 charset option?
Thanks in advance!
Todd
All I did was check the box for 4.0 (the one it recommends against clicking), and then it installed just fine.
Hey, I think you may have been referring to the SQLite option versus the MySQL option. When I left the MySQL option I kept getting the error. When I finally selected the SQLite option everything installed.
I too am on 1and1.com and enjoy their service though I do not do much with it. Hopefully, that will change as I intend to roll out a lexicon of LEGO Bricks and elements at BrickLexicon.com. Check it out, in a few weeks.
Todd