MySQL backup converting all data to lowercase

Reply

Join Date: Dec 2008
Posts: 1
Reputation: Rushyo is an unknown quantity at this point 
Solved Threads: 0
Rushyo Rushyo is offline Offline
Newbie Poster

MySQL backup converting all data to lowercase

 
0
  #1
Dec 22nd, 2008
I took a backup of a database a while ago and I'm having trouble with running it on a new (Windows 2003) server through phpmyadmin 3.

Whenever I execute it the resulting tables, fields and data are all converted to lowercase!

If I use phpmyadmin to create them it works as intended, but there's 30 or so tables populated with tons of data.

I am running a close-to-stock install of MySQL 5.0.51a and a highly modified Apache 2.0.63 setup.

Any help will be greatly appreciated. Snippet below:

  1. --
  2. -- Table structure for table `Agendas`
  3. --
  4.  
  5. CREATE TABLE IF NOT EXISTS `Agendas` (
  6. `AgendaID` INT(11) NOT NULL AUTO_INCREMENT,
  7. `Name` VARCHAR(255) NOT NULL DEFAULT '',
  8. PRIMARY KEY (`AgendaID`)
  9. ) AUTO_INCREMENT=11 ;
  10.  
  11. --
  12. -- Dumping data for table `Agendas`
  13. --
  14.  
  15. INSERT INTO `Agendas` (`AgendaID`, `Name`) VALUES
  16. (1, 'Isolationist'),
  17. (2, 'Nationalist'),
  18. (3, 'Liberal'),
  19. (4, 'Conservative'),
  20. (5, 'Moderate'),
  21. (6, 'Socialist'),
  22. (7, 'Fascist'),
  23. (8, 'Tribal'),
  24. (9, 'Mercantile'),
  25. (10, 'Theocratic');
  26.  
  27. -- etc, etc...
Reply With Quote Quick reply to this message  
Join Date: Jul 2006
Posts: 883
Reputation: pritaeas will become famous soon enough pritaeas will become famous soon enough 
Solved Threads: 142
Sponsor
pritaeas's Avatar
pritaeas pritaeas is offline Offline
Practically a Posting Shark

Re: MySQL backup converting all data to lowercase

 
0
  #2
Dec 30th, 2008
How are you importing the backup ? Are you using phpmyadmin for this or mysql (command-line) ?

The following is from the phpmyadmin documentation:
  1. 1.23 I'm running MySQL on a Win32 machine. Each time I create a new table the table and field names are changed to lowercase!
  2.  
  3. This happens because the MySQL directive lower_case_table_names defaults to 1 (ON) in the Win32 version of MySQL. You can change this behavior by simply changing the directive to 0 (OFF):
  4. Just edit your my.ini file that should be located in your Windows directory and add the following line to the group [mysqld]:
  5. set-variable = lower_case_table_names=0Next, save the file and restart the MySQL service. You can always check the value of this directive using the query
  6. SHOW VARIABLES LIKE 'lower_case_table_names';
  7.  
Last edited by pritaeas; Dec 30th, 2008 at 11:02 am.
"If it is NOT source, it is NOT software."
-- NASA
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the MySQL Forum
Thread Tools Search this Thread



Tag cloud for MySQL
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC