forums › forums › SQLyog › Using SQLyog › Copy table to different host – syntax error
- This topic is empty.
-
AuthorPosts
-
-
June 30, 2005 at 11:05 pm #9078seventreeMember
I am trying to copy tables between my localhost DB and the one at my web host. It gets a syntax error on the generated CREATE TABLE statement, apparently caused by the “DEFAULT CHARSET=latin1” clause. If I remove that part and execute the statement manually it works, but I don't know how to get the Copy Table function to not use it.
The local MySQL version is 4.1.12-nt and the remote is 4.0.23-nt.
I have database experience but am new to MySQL. Am I doing something wrong, or is it a problem with the web host server?
thanks
Rick
-
June 30, 2005 at 11:14 pm #18445peterlaursenParticipantQuote:The local MySQL version is 4.1.12-nt and the remote is 4.0.23-nt.
That''s the crux of the problem. With MySQL 4.1 a much more sophisticated handling of localisation issues (among them new charset's and collations) was introduced. You can study the 4.1.x changelogs here http://dev.mysql.com/doc/mysql/en/news-4-1-x.html
Quote:“DEFAULT CHARSET=latin1” clause. If I remove that part and execute the statement manually it worksThere is no other way I believe … I use both 4.0.24 and and 5.0.7 and edit my SQL the same way when importing a DUMP from 5.x to 4.x
-
June 30, 2005 at 11:37 pm #18446peterlaursenParticipant
this link probably is more relevant:
-
July 1, 2005 at 12:15 am #18447seventreeMember
Ok, thanks. When you say there is no other way, do you mean I have to manually execute the steps that the Copy Tables function generates automatically?
My problem is I don't know what these are. I can modify and execute the CREATE TABLE part but don't know what comes next.
Probably I should also be bugging my web host provider to upgrade to 4.1.
Rick
-
July 1, 2005 at 12:30 am #18448peterlaursenParticipant
Instead of “copy table to another host” I export table to a text-file, edit the text-file and and import it using SQLyog export/import-function.
Thsi incompability between MySQL-version affect several functions in SQLyog. Also the DB-syncronization feature. And here there is is no easy workaround! Actually I have 3 MySQL versions installed on my local machine (4.0.24, 4.1.12 and 5.0.7), and switch between them as needed (that's quite easy using “MySQL Administrator” “Service Control” and “Startup Variables” options – you only need to change 4 strings values, stop and restart the server. It can be done in less than 15 seconds. And exporting/importing even big files on localhost is very fast too). That's my workaround.
I know that the Webyog people would like to code some workaround into the program. But I don't know if they found a safe way to do it yet!
Quote:Probably I should also be bugging my web host provider to upgrade to 4.1.I would like mine to have 5.0.x since I make extensive use of VIEWs. But ISP are very conservative with that. And they have good reasons since that would involve also PHP and ASP configuration. Some users' .php and .asp code might need to be changed for it to work with new versions …
So most ISP's are still running Apache 1.3, php4 and MySQL 4.0, although newer version af all of them are available.
But I do believe that very soon we will se a change with the best (and most expensive!) ISPs and hosting providers.
-
July 1, 2005 at 4:21 am #18449seventreeMember
Thanks once again for the information. Since my database needs are simple and I am just getting started, probably my best option is to uninstall 4.1 locally and replace it with 4.0. That way I can stay with the same ISP and still use all the features of Webyog which looks to be a terrific time saver.
-
July 1, 2005 at 4:24 am #18450peterlaursenParticipant
You won't have to uninstall 4.1 to install 4.0.
But there is more “fun stuff” in 5.0 than in 4.1 …
-
-
AuthorPosts
- You must be logged in to reply to this topic.