LITTLEBLACKDOG.COM Forum Index LITTLEBLACKDOG.COM

 
LWD LWD   FAQ FAQ   Memberlist Memberlist   Usergroups Usergroups   Active Topics Active Topics   Register Register  
  Profile Profile   Log in to check your private messages Log in to check your private messages   Log in Log in  
  Who is Online Who is Online   Image Gallery Image Gallery   Chat Chat   Search Search  
  LWDGear       LBDGear  

View next topic
View previous topic
Post new topic     Reply to topic   LITTLEBLACKDOG.COM Forum Index » Code Warriors
Author Message
gregw
Tail-Wagger
Tail-Wagger


Joined: 25 May 2003
Posts: 2492
Location: About 2000 miles south of where I want to be.

Post Posted: Fri Mar 07, 2008 10:00 am   Post subject: MySQL "information_schema" problem Reply with quote Back to top  

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.
View user's profile Send private message
CMTG
Leg Humper
Leg Humper


Joined: 23 Feb 2002
Posts: 4869
Location: On average, Cheltenham.

Post Posted: Fri Mar 07, 2008 11:12 am   Post subject: Reply with quote Back to top  

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
View user's profile Send private message Send e-mail Visit poster's website
gregw
Tail-Wagger
Tail-Wagger


Joined: 25 May 2003
Posts: 2492
Location: About 2000 miles south of where I want to be.

Post Posted: Fri Mar 07, 2008 11:16 am   Post subject: Reply with quote Back to top  

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.
View user's profile Send private message
CMTG
Leg Humper
Leg Humper


Joined: 23 Feb 2002
Posts: 4869
Location: On average, Cheltenham.

Post Posted: Fri Mar 07, 2008 12:19 pm   Post subject: Reply with quote Back to top  

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
View user's profile Send private message Send e-mail Visit poster's website
gregw
Tail-Wagger
Tail-Wagger


Joined: 25 May 2003
Posts: 2492
Location: About 2000 miles south of where I want to be.

Post Posted: Fri Mar 07, 2008 1:39 pm   Post subject: Reply with quote Back to top  

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.
View user's profile Send private message
CMTG
Leg Humper
Leg Humper


Joined: 23 Feb 2002
Posts: 4869
Location: On average, Cheltenham.

Post Posted: Fri Mar 07, 2008 1:53 pm   Post subject: Reply with quote Back to top  

That's odd, are you sure you don't have one? It might not be called exactly my.cnf, but in all (both happy8) 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
View user's profile Send private message Send e-mail Visit poster's website
gregw
Tail-Wagger
Tail-Wagger


Joined: 25 May 2003
Posts: 2492
Location: About 2000 miles south of where I want to be.

Post Posted: Fri Mar 07, 2008 2:05 pm   Post subject: Reply with quote Back to top  

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.
View user's profile Send private message
Display posts from previous:   
Post new topic     Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
phpBB SEO
All times are GMT - 8 Hours

Help us keep advertisements off this site. Donate today!