Restoring a file.sql problems
Posted by: jcamposw
Posted on: 2006-04-26 17:02:00
His guys!
I'm having the following problem:
This is what I want to do, I just moved from my other hosting to DreamHost and I have a SMF forum in my old host, I already changed my DNS and I want to install and restore my forum from my old host to dreamhost but I don't know how to do this...
This is what I did:
I upload all the SMF php files to the server, and create the data base for my forum in dreamhost, after that I installed the forum and everything seems to be working ok...But right now I want to restore my backup.sql to my dreamhost data base in order for my forum to be working Ok!
I did tried to restore my backup.sql by using phpmyadmin but when I hit "import" it says:
(Warning: mb_strpos(): Unknown encoding or conversion error. in /usr/local/dh/web/phpmyadmin/libraries/string.lib.php on line 112
Warning: mb_strpos(): Unknown encoding or conversion error. in /usr/local/dh/web/phpmyadmin/libraries/string.lib.php on line 112
Warning: mb_strpos(): Unknown encoding or conversion error. in /usr/local/dh/web/phpmyadmin/libraries/string.lib.php on line 112
Código:
Error
There is a chance that you may have found a bug in the SQL parser. Please examine your query closely, and check that the quotes are correct and not mis-matched. Other possible failure causes may be that you are uploading a file with binary outside of a quoted text area. You can also try your query on the MySQL command line interface. The MySQL server error output below, if there is any, may also help you in diagnosing the problem. If you still have problems or if the parser fails where the command line interface succeeds, please reduce your SQL query input to the single query that causes problems, and submit a bug report with the data chunk in the CUT section below:)
So right now I don't know what the problem is and Im trying to restore my backup.sql byusing Putty Client SSH to connect to my SQL Server and now I have this problem when I try to restore my backup.sql using putty client SSH:
Error 1062 (23000) at line 2181: Duplicate entry '0-26' for key 1
Some people told me that the problem was the version of SQL of both servers, because DreamHost SQL is 5.x version and my other (old) server is: 4.x version...
Can somebody please help me with this? I just want to install my forum and restore my backup.sql correctly, I already have more than 24 hours trying to do this...
Thanks