| Author |
Message |
gregw
Tail-Wagger

Joined: 25 May 2003 Posts: 2492
Location: About 2000 miles south of where I want to be.
|
Posted:
Fri Mar 07, 2008 10:00 am Post subject: MySQL "information_schema" problem |
|
I recently upgraded MySQL from 4 to 5.0.51a. All is well except for one of my user's accounts. The DB works fine, but whenever I try to back it up using Navicat, I get this error:
COLLATION 'utf8_bin' is not valid for CHARACTER SET 'latin1'
Initially I thought it might be the DB, but even if I delete it and create a blank one, I still get the error.
A closer look revealed that it was the "information_schema" DB that automatically gets created that is causing the problems. However, I can't seem to be able to change, delete or rebuild this DB.
I've tried searching Google with no results.
Any help? |
_________________ Some people are like slinkys... not really good for anything but they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
|
CMTG
Leg Humper


Joined: 23 Feb 2002 Posts: 4869
Location: On average, Cheltenham.
|
Posted:
Fri Mar 07, 2008 11:12 am Post subject: |
|
The information_schema contains a mapping of collations to applicable character sets. You need to change the character set or the collation on whatever entity it is choking on because you can't use utf8 collations on latin1 character sets and vice versa. Consult the MySQL manual on how to do this because I can't remember the alter syntax off the top of my head. |
_________________ Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.
"Have I seen you at the gym? I don't go to the gym, I'm just naturally like this..."
- Captain Hammer
|
|
|
|
|
gregw
Tail-Wagger

Joined: 25 May 2003 Posts: 2492
Location: About 2000 miles south of where I want to be.
|
Posted:
Fri Mar 07, 2008 11:16 am Post subject: |
|
CMTG wrote:You need to change the character set or the collation on whatever entity it is choking on because you can't use utf8 collations on latin1 character sets and vice versa. Consult the MySQL manual on how to do this because I can't remember the alter syntax off the top of my head.
I've tried that. I have even deleted all databases and created a brand new, empty database. Still get the same error. |
_________________ Some people are like slinkys... not really good for anything but they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
|
CMTG
Leg Humper


Joined: 23 Feb 2002 Posts: 4869
Location: On average, Cheltenham.
|
Posted:
Fri Mar 07, 2008 12:19 pm Post subject: |
|
Have you tried setting the character-set-server and collation-server parameters in the my.cnf file? |
_________________ Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.
"Have I seen you at the gym? I don't go to the gym, I'm just naturally like this..."
- Captain Hammer
|
|
|
|
|
gregw
Tail-Wagger

Joined: 25 May 2003 Posts: 2492
Location: About 2000 miles south of where I want to be.
|
Posted:
Fri Mar 07, 2008 1:39 pm Post subject: |
|
Haven't tried that. I'm pretty sure I don't have one.
Frankly I'm afraid to create a new config file as all 50 of my other accounts work just fine, except this one. |
_________________ Some people are like slinkys... not really good for anything but they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
|
CMTG
Leg Humper


Joined: 23 Feb 2002 Posts: 4869
Location: On average, Cheltenham.
|
Posted:
Fri Mar 07, 2008 1:53 pm Post subject: |
|
That's odd, are you sure you don't have one? It might not be called exactly my.cnf, but in all (both ) my MySQL installations there is a config file that tells the service where its unix socket is and what user to run as. |
_________________ Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.
"Have I seen you at the gym? I don't go to the gym, I'm just naturally like this..."
- Captain Hammer
|
|
|
|
|
gregw
Tail-Wagger

Joined: 25 May 2003 Posts: 2492
Location: About 2000 miles south of where I want to be.
|
Posted:
Fri Mar 07, 2008 2:05 pm Post subject: |
|
I'm pretty sure it's an optional file (you only use it if you want to optimize your install for specific server loads)...but I may be wrong on that one. |
_________________ Some people are like slinkys... not really good for anything but they still bring a smile to your face when you push them down a flight of stairs.
|
|
|
|
|
|
|