Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 28-09-06
Northern Monkey's Avatar
Member
 
Join Date: Jan 2004
Location: UK
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts
Northern Monkey is an unknown quantity at this point
  Exclamation Urgent Sql Help!

All,

Have just exported data from my live system and selected to EXPORT as UPDATE and not INSERT (I know now this was the wrong idea). Problem is I accidentally dropped all my live tables! Anyone know any decent way to reimport the tables with my UPDATE sql backups?

NM.
__________________
Holiday Villa In<br>
<font size=2>If it moves, kick it. If it doesn't move, kick it till it moves and hen kick it because it moved</font>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-09-06
CompareStore's Avatar
CompareStorePrices.co.uk
 
Join Date: Aug 2003
Location: Sussex
Posts: 566
Thanks: 0
Thanked 0 Times in 0 Posts
CompareStore is an unknown quantity at this point
  MySQL?

Is it a mySQL database?
How did you do the backup? If you dumped out the data as sql statements you can easily import the data back in. I can tell how to do this if you have access to a command line on your server.
__________________
Chris Young

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 28-09-06
Northern Monkey's Avatar
Member
 
Join Date: Jan 2004
Location: UK
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts
Northern Monkey is an unknown quantity at this point
Yep it's mysql. I've got the dumped file from my ISP but when inserting it back in I just keep getting 1064 errors? But the structure etc looks fine.

NM.
__________________
Holiday Villa In<br>
<font size=2>If it moves, kick it. If it doesn't move, kick it till it moves and hen kick it because it moved</font>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 28-09-06
Northern Monkey's Avatar
Member
 
Join Date: Jan 2004
Location: UK
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts
Northern Monkey is an unknown quantity at this point
Arrrgh my brain hurts!

Just trying to import 1 record (see code below) but I get #1064 - error with no details. It can't be a version mismatch as I'm importing into a db it was exported from. If I import with auto select character set I get error #1115 "SET NAMES" error. Any ideas?

NM.




INSERT INTO `villas` (`code`, `name`, `image`, `currency`, `low`, `high`, `address`, `description`, `user_id`, `country_id`, `town_id`, `datecreated`, `lastupdate`, `sleeplow`, `sleephigh`, `votes`, `score`, `website`, `pwpn`, `emailsent`, `image1`, `image2`, `image3`, `image4`, `image5`, `image6`, `status`, `advertiser`, `type`, `calendar`, `advertiser_id`, `reciprocallink`, `notes`) VALUES (1,'36RueDeBlois - Cottage','1.jpg','GBP','200.00','350.00','36 Rue De Blois, Montrichard, Loire Et Cher, France','A beautiful cottage set in the romantic village of Montrichard in the Loire Valley area of France. This quiet property has many attraction\'s and things to do including wine tasting, chateaux visiting etc.<**>The property comprises of an open plan sitting room with feature \'Godin\' solid fuel stove. Small archway to the kitchen and door to the terrace. Fully fitted English style kitchen stone spiral staircase to upper floor.\r\n\r\nUpstairs: 1 Double bedroom, 1 Bathroom comprising bath, shower, toilet.<**> <**> <**> ',78,1,1,'2005-04-02 15:04:28','2006-07-06 22:48:45','2','2',0,0,'http://www.36ruedeblois.com','pw',3,'1_1.jpg',NULL,'1_3.j pg','1_4.jpg','1_5.jpg','1_6.jpg',0,'0','cottage', 0,0,'http://www.webbuyeruk.co.uk',NULL);
__________________
Holiday Villa In<br>
<font size=2>If it moves, kick it. If it doesn't move, kick it till it moves and hen kick it because it moved</font>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #5 (permalink)  
Old 28-09-06
Northern Monkey's Avatar
Member
 
Join Date: Jan 2004
Location: UK
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts
Northern Monkey is an unknown quantity at this point
Even weirder, If I just enter the line as an sql statement in the website it runs fine but I obviously can't paste over 5000 records through the website.

NM.
__________________
Holiday Villa In<br>
<font size=2>If it moves, kick it. If it doesn't move, kick it till it moves and hen kick it because it moved</font>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 28-09-06
CompareStore's Avatar
CompareStorePrices.co.uk
 
Join Date: Aug 2003
Location: Sussex
Posts: 566
Thanks: 0
Thanked 0 Times in 0 Posts
CompareStore is an unknown quantity at this point
Quote:
I obviously can't paste over 5000 records through the website
You could upload the backup to the server then open the file in a script and loop through running the SQL statments as if they were being entered.
__________________
Chris Young

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 29-09-06
Northern Monkey's Avatar
Member
 
Join Date: Jan 2004
Location: UK
Posts: 142
Thanks: 0
Thanked 0 Times in 0 Posts
Northern Monkey is an unknown quantity at this point
Yep, sounds like what I'll have to do in the end. I had to enter them in batches of 800 but it took awhile so am now writing a script that will do what you said.

If anyone has any light to shed on my issues let me know.

Regards,

Chris.
__________________
Holiday Villa In<br>
<font size=2>If it moves, kick it. If it doesn't move, kick it till it moves and hen kick it because it moved</font>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Question Northern Monkey Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 14 06-02-06 06:57 PM
SQL Help!!! uklejon Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 12 06-12-05 11:41 AM
SQL Databases bapages Web Hosting & Security 3 30-12-04 12:22 PM
SQL Injection !! SpendaPenny The Affiliate Marketing Lounge 0 18-11-04 10:13 PM
Jackpotjoy - Urgent Maintenance PitBoss TradeDoubler 1 04-02-04 03:20 PM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7