•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 375,214 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,275 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser:
Views: 796 | Replies: 19
![]() |
I am helping a website owner to transfer a site to new servers. All site files have been uploaded onto the new server, only thing left is the database.
In phpmyadmin, when I try to export the DATABASE to my local PC, using zip or gzip to compress, as this is a large database, the file doesn't want to uncompress on my local pc, I get an error message that it may be corrupt?
Then I exported the database without compressing it, and it downloaded without any problems.
As I am realy very novice in this, and only have a basic knowledge how to import this database from my local PC to the new server, using phpmyadmin, the first problem was that phpmyadmin only allows 51 mb to import this way, and this database is about 90 mb. I am very unlitterate in doing command line queries to do this import, so I contacted the support of the new host to help out, and they said I can upload the database via ftp to the server, and they wil install it from there.
I then uploaded the uncompressed .sql text file to a folder, via ftp, using binary mode.
When the host tried to install it, they got an error message in the syntax at a certain line, and asked me to correct it. I have no idea how to, as this database is just what came from the old server, nothing changed to it.
Is there any help or hope for me on this one?
Edit:
The full error message the host got was:
[root@cayenne /home/kletsker/mysqldump]# mysql kletsker_kletskerk < localhost.sql ERROR 1064 (42000) at line 89499: 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 ''[quote="Barend":3v' at line 1
In phpmyadmin, when I try to export the DATABASE to my local PC, using zip or gzip to compress, as this is a large database, the file doesn't want to uncompress on my local pc, I get an error message that it may be corrupt?
Then I exported the database without compressing it, and it downloaded without any problems.
As I am realy very novice in this, and only have a basic knowledge how to import this database from my local PC to the new server, using phpmyadmin, the first problem was that phpmyadmin only allows 51 mb to import this way, and this database is about 90 mb. I am very unlitterate in doing command line queries to do this import, so I contacted the support of the new host to help out, and they said I can upload the database via ftp to the server, and they wil install it from there.
I then uploaded the uncompressed .sql text file to a folder, via ftp, using binary mode.
When the host tried to install it, they got an error message in the syntax at a certain line, and asked me to correct it. I have no idea how to, as this database is just what came from the old server, nothing changed to it.
Is there any help or hope for me on this one?
Edit:
The full error message the host got was:
[root@cayenne /home/kletsker/mysqldump]# mysql kletsker_kletskerk < localhost.sql ERROR 1064 (42000) at line 89499: 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 ''[quote="Barend":3v' at line 1
Last edited by Kraai : May 15th, 2008 at 4:20 am. Reason: adding information
I left my hotdog somewhere, If you find it, feed it please, or better feed yourself!!
Webhostig and ISP Solutions in ZA
Webhostig and ISP Solutions in ZA
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,924
Reputation:
Rep Power: 9
Solved Threads: 221
Thanks peter_budo, I just edited my original post including the error message.
I left my hotdog somewhere, If you find it, feed it please, or better feed yourself!!
Webhostig and ISP Solutions in ZA
Webhostig and ISP Solutions in ZA
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,924
Reputation:
Rep Power: 9
Solved Threads: 221
That nice, but you see what it says
So can you kindly provide that part of SQL and few lines above and bellow will not hurt anyone as long you not have some sensitive data such as contacts, acoount details etc.
•
•
•
•
at line 89499: You have an error in your SQL syntax
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Is there a shortcut to find line 89499? When I look at the file on my local pc, it is not displaying anything in "line order" or "line number"
I'm sorry for my total stupidity, thats why my avater looks like me.
I'm sorry for my total stupidity, thats why my avater looks like me.
I left my hotdog somewhere, If you find it, feed it please, or better feed yourself!!
Webhostig and ISP Solutions in ZA
Webhostig and ISP Solutions in ZA
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,924
Reputation:
Rep Power: 9
Solved Threads: 221
Ehmm that is good question...
I dont think you will be able to do so in phpMyAdmin (I'm not aware of such option), but I was able to open sql file (that what you get it after dumping isn't it?) with Dreamweaver, Microsoft SQL Server Managment Studio Express (is free) and I believe you should be able to it with MySQL Query Browser (for free part of MySQL tool package). Do not forget change setitng of chosen application to show line numbers
I dont think you will be able to do so in phpMyAdmin (I'm not aware of such option), but I was able to open sql file (that what you get it after dumping isn't it?) with Dreamweaver, Microsoft SQL Server Managment Studio Express (is free) and I believe you should be able to it with MySQL Query Browser (for free part of MySQL tool package). Do not forget change setitng of chosen application to show line numbers
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
I now tried the MySQL Query browser, but it is not giving me the option to search on my local pc c drive for loading the dumpfile. It only allows to connect to a server to browse the file.
The database is sitting now on my pc, and I need to find this line number there, I am viewing the file in notepad. If I do a search document, it returns many markers with that words in it, so how wil I know which one is the queried line?
I will pay someone to export/import this database for me, as I feel my knowledge is far too short now.
The database is sitting now on my pc, and I need to find this line number there, I am viewing the file in notepad. If I do a search document, it returns many markers with that words in it, so how wil I know which one is the queried line?
I will pay someone to export/import this database for me, as I feel my knowledge is far too short now.
I left my hotdog somewhere, If you find it, feed it please, or better feed yourself!!
Webhostig and ISP Solutions in ZA
Webhostig and ISP Solutions in ZA
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,924
Reputation:
Rep Power: 9
Solved Threads: 221
Right click on the sql file Open With >> Choose Program. Navigate to the location of MySQL Query Browser ( in my case also default location is
C:\Program Files\MySQL\MySQL Tools for 5.0\MySQLQueryBrowser.exe ) and the file is open... Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Geewizzzzzz, thanks for reminding me the basics here.
Line 89499 happens to be the very last line of the file.
The line just above it starts with:
[quote="sonia c":1niozzjk]
And then this users forum post follows.
Then the troubled line only looks like this:
[quote="Barend":3v
Nothing else.
If I look at this, should the "[" at the start not also close "]" somewhere?
I am learning, thanks for your trouble.
Line 89499 happens to be the very last line of the file.
The line just above it starts with:
[quote="sonia c":1niozzjk]
And then this users forum post follows.
Then the troubled line only looks like this:
[quote="Barend":3v
Nothing else.
If I look at this, should the "[" at the start not also close "]" somewhere?
I am learning, thanks for your trouble.
I left my hotdog somewhere, If you find it, feed it please, or better feed yourself!!
Webhostig and ISP Solutions in ZA
Webhostig and ISP Solutions in ZA
•
•
Join Date: Dec 2004
Location: London or Slovakia
Posts: 1,924
Reputation:
Rep Power: 9
Solved Threads: 221
I have distinct feeling that you main not pull all data from original database. What I mean is that you maybe just missing closing bracklet, but in worst scenario reminder of the post or other data entries. It is very difficult to advice on this as I do not know structure of database you trying to export/import. You need to closely examine previous data entries and work out appropriate structure. Also you should compare it with old database if still available what this data entry contained and if there are any data entries after it.
I will make exclusion in this case and if you wish you may send me personal message with some data examples (last 100 lines should do it). It is up to you to decide if you can handle also if you can pass such data on 3rd person
I will make exclusion in this case and if you wish you may send me personal message with some data examples (last 100 lines should do it). It is up to you to decide if you can handle also if you can pass such data on 3rd person
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
Publilius Syrus
(~100 BC)
If we helped you to solve your problem, answered your question please mark your post as SOLVED.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
•
•
•
•
age amd avatar backup blue gene breach business chips coding compilers daniweb data data protection database development dos economy energy enterprise errors europe government hardware hp ibm ibm. news intel ibm it languages linux medicine memory microsoft news open source openoffice pc programming ps3 recession red hat security server sun supercomputer supercomputing technology trends ubuntu x86
- Previous Thread: How do you use output from linked server query?
- Next Thread: Stupid Error!!!



Linear Mode