db migration problem (mysql)
Posted: 28 June 2008 05:01 AM   [ Ignore ]  
Summer Student
Avatar
Total Posts:  17
Joined  11-26-2007

hi there,

i’ve to move an ee installation to another server and have encountered some mysql errors while migrating the db to the new mysql host…

the mysql specs are as following:

Server A
MySQL: 4.1.10a
phpMyAdmin: 2.8.2.4

Server B
MySQL: 4.0.23a
phpMyAdmin: 2.6.0-pl3

when i try to upload the .sql from Server A whithin phpMyAdmin at Server B i get these errors:

#1064 - 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=latin1 AUTO_INCREMENT=20' at line 2

if i delete all occurrences of “DEFAULT CHARSET=latin1”, i get:

#1064 - 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 'CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  
`comment` text

as you see i’m not really a mysql expert, so maybe you’ve a tip for me…i hope i can migrate the db just with the .sql file, otherwhise i’d have to install a clean copy of ee and pull all data in the db by hand!

btw: the server wizard succeeded in all criterias for Server B…

please help red face

Profile
 
 
Posted: 02 September 2008 11:33 AM   [ Ignore ]   [ # 1 ]  
Lab Assistant
RankRank
Total Posts:  131
Joined  04-02-2006

Sounds like the default CHARSET of the “new” server is different from that of the old server.
Many providers give you only one database, and they decide the default CHARSET. See
http://expressionengine.com/forums/viewthread/77825/

Profile
 
 
Posted: 02 September 2008 01:58 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Avatar
Total Posts:  17
Joined  11-26-2007

thx for your tip!

i had to solve the problem ASAP. so i copy/pasted all contents from ee on the production server into ee on the live-server.

but thx anyway!

by then,
jeremias

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64935 Total Logged-in Users: 48
Total Topics: 81900 Total Anonymous Users: 28
Total Replies: 440277 Total Guests: 264
Total Posts: 522177    
Members ( View Memberlist )