Welcome to Geeklog Monday, October 14 2019 @ 01:30 am EDT

Geeklog Forums

Restoring a backup!


Anonymous

Anonymous
I wish to restore a backup created by the geeklog admin. I dropped all of my geeklog tables then loaded the output file created by the backup, but all I get is the following error message: Error SQL-query : * - * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * - * - * - CREATE TABLE banned_ips( host_ip varchar( 255 ) default NULL ) TYPE = MyISAM MySQL said: You have an error in your SQL syntax near '--------------------------------------------------------- -- -- CREATE TABL' at line 2

Status: offline

Dirk

Site Admin
Admin
Registered: 12/01/02
Posts: 13073
Location:Stuttgart, Germany

Try it from the command line:

mysql -uusername -ppassword -Ddatabase_name < your_backup.sql

bye, Dirk


eccc

Anonymous
So what do you do if you don't have command line access? That's the boat I'm in. I think the DB Backup needs to be REDONE so that it works from the command line AND through phpMyAdmin. The "---" throws phpMyAdmin off every time!

Status: offline

twohawks

Forum User
Junior
Registered: 17/12/01
Posts: 33
Open your sql file in an text editor and remove the "---" by hand. It's the only way I was able to do it too. It's tedious but it works.

Status: offline

Blaine

Forum User
Full Member
Registered: 16/07/02
Posts: 1233
Location:Canada
Try using your editor and replacing all -- with // to indicate a comment.
Geeklog components by PortalParts -- www.portalparts.com

Status: offline

DTrumbower

Forum User
Moderator
Registered: 08/01/03
Posts: 507
Quote by eccc: . The \"---\" throws phpMyAdmin off every time!
That would be a problem with phpMyAdmin. The backup is down with mysqldump, no intervetion from geeklog code.

All times are EDT. The time is now 01:30 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content