| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) | ||||
| NamePros Regular Join Date: Jul 2005 Location: Vancouver
Posts: 533
![]() ![]() ![]() | SQL version incompatibility, having trouble when importing SQL file I have a SQL file from my previous hosting. But now I use a new host, and want to export my SQL file into it. But I got syntax errors. Nothing wrong with the SQL file, because it works well on my old host. then I ask my server provider from my old host. He gave me this: ????: NamePros.com http://www.namepros.com/programming/169681-sql-version-incompatibility-having-trouble-when.html
and my old host uses MySQL version 4.1.14 Is there a way to import my SQL file succefully into my new host? | ||||
| |
| | #2 (permalink) | ||||||||
| Senior Member Join Date: Dec 2004
Posts: 1,304
![]() ![]() ![]() ![]() ![]() | Yeah, but it will take you some time. Every line, actually only at the end of a table, looks like this in 4.1.xx:
So it looks like this:
__________________ You got no time for the messenger, got no regard for the thing that you don't understand, you got no fear of the underdog, that's why you will not survive!
Last edited by OulZac; 02-21-2006 at 12:20 AM.
| ||||||||
| |
| | #3 (permalink) |
| NamePros Member Join Date: Feb 2006 Location: Chicago IL
Posts: 73
![]() | Yes. Copy the file into notepad and do a 'find-replace' replacing "DEFAULT CHARSET=latin1" with "" Also, some hosts, if they own their own servers, will upgrade the version of software on request.
__________________ Hassle Free Computing and Web Solutions for Personal and Business! Rochelle Network Communications! |
| |
| | THREAD STARTER #4 (permalink) | ||||
| NamePros Regular Join Date: Jul 2005 Location: Vancouver
Posts: 533
![]() ![]() ![]() | thanks for your help. I have replaced "DEFAULT CHARSET=latin1" with "". ????: NamePros.com http://www.namepros.com/showthread.php?t=169681 but I still got error
Please help. | ||||
| |
| | #5 (permalink) | ||||||||
| NamePros Member Join Date: Feb 2006 Location: Chicago IL
Posts: 73
![]() | take out
????: NamePros.com http://www.namepros.com/showthread.php?t=169681 oops. didn't notice this
So.. Replace "CHARACTER SET latin1 COLLATE latin1_bin" with "" and replace " )ENGINE = MYISAM;" with "ENGINE = MYISAM);" BAH! I need to read the SQL more carefully. You should not have ANY double quotes " in your sql so... when I said do a find-replace, and replace with "" I meant leave the field blank, not replace with " XD Sorry, should have been more clear.Just leave the replace field blank when you're trying to delete stuff.
__________________ Hassle Free Computing and Web Solutions for Personal and Business! Rochelle Network Communications!
Last edited by AllValley; 02-21-2006 at 10:30 AM.
| ||||||||
| |
| | #7 (permalink) |
| Senior Member Join Date: Aug 2004 Location: Washington
Posts: 4,327
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Thanks ...
__________________ Download youtube videos at www.HugYouTube.com -NO LINKS TO PARKED PAGES- Anonymous access at www.Banned.net |
| |
| | #8 (permalink) |
| NamePros Member Join Date: Feb 2006 Location: Chicago IL
Posts: 73
![]() | No problem.
__________________ Hassle Free Computing and Web Solutions for Personal and Business! Rochelle Network Communications! |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ****HUGE List of FREE File/Image/Video Hosts!**** | thetzfreak | Free Resources | 31 | 02-12-2006 07:06 AM |
| Connecting to your SQL Database using Enterprise Manager | priyanka[imported] | Webmaster Tutorials | 0 | 12-06-2004 09:58 PM |
| 2 Huge Name Forsale | Vegas Entertainment | Domains For Sale - Make Offer | 9 | 09-21-2004 03:37 PM |