If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Importation of SQL text file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-06, 13:55
brentshreve brentshreve is offline
Registered User
 
Join Date: Jan 2006
Posts: 3
Exclamation Importation of SQL text file

Hey all,

I backed up a SQL database from a previous site and am now trying to upload it to my new site. I receive this error when I try to upload the file:

PHP Code:
Error

SQL query
:

DATABASE onsitepcgeek running ON mysql99.secureserver.net# phpMyAdmin SQL Dump
# version 2.5.6
# http://www.phpmyadmin.net
#
# Host: mysql99.secureserver.net
# Generation Time: Aug 08, 2004 at 04:13 AM
# Server version: 4.0.20
# PHP Version: 4.2.3
#
# Database : `onsitepcgeek`
#
# --------------------------------------------------------
#
# Table structure for table `_dummy`
#
DROP TABLE IF EXISTS `_dummy` ;

MySQL saidDocumentation
#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 'Database onsitepcgeek running on mysql99.secureserver.net 
The rest of my SQL file can be located at the following address:
http://www.onsitepcgeek.com/onsitepcgeek.sql

If you need anymore informaion from me in order to shed some light on this problem please let me know. Thanks!
Reply With Quote
  #2 (permalink)  
Old 01-27-06, 14:48
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
What version of MySQL is the destination site running? I'd bet that it is earlier (probably pre-4.0) than the source site was running.

-PatP
Reply With Quote
  #3 (permalink)  
Old 01-27-06, 20:25
brentshreve brentshreve is offline
Registered User
 
Join Date: Jan 2006
Posts: 3
Unhappy Version Info

I have the site hosted by GoDaddy. They are currently running the following versions on their shared linux/php servers:

mySQL - 4.0.24
php - 4.3.11

The database name on my site is 'onsitepcgeek'
and it is running on 'localhost'

Is there something I'm missing? Why will this not import?
Reply With Quote
  #4 (permalink)  
Old 01-27-06, 20:47
jfulton jfulton is offline
Registered User
 
Join Date: Apr 2005
Location: Baltimore, MD
Posts: 297
Shouldn't that first line be commented out?
Quote:
DATABASE onsitepcgeek running ON mysql99.secureserver.net
Reply With Quote
  #5 (permalink)  
Old 01-27-06, 21:02
brentshreve brentshreve is offline
Registered User
 
Join Date: Jan 2006
Posts: 3
Talking Thanks a bunch!

That worked. Don't know how that became uncommented in the first place. Many thanks.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On