Welcome to Geeklog, Anonymous Wednesday, September 16 2026 @ 12:10 am EDT
Geeklog Forums
Restore Backup
eccc
Anonymous
How does one restore the backup of the database? I get an error on LINE 2 of the backup file because of all the ---'s
I'm in a real jam and can't get SQL to take this backup back!! HELP!!!!
19
20
Quote
Status: offline
Tony
Site Admin
Admin
Registered: 12/17/01
Posts: 405
Location:Urbandale, Iowa
Use your MySQL client:
1) clear out old DB
%>mysqladmin -u<user> -p<pass> drop <db_name>
%>mysqladmin -u<user> -p<pass> create <db_name>
2) Pump in data
%>mysql -u<user> -p<pass> <db_name> < somesqlfile.sql---The reason people blame things on previous generations is that there's only one other choice.
The reason people blame things on previous generations is that there's only one other choice.
The reason people blame things on previous generations is that there's only one other choice.
20
22
Quote
Status: offline
Raddue
Forum User
Newbie
Registered: 12/21/02
Posts: 7
Or, if you have phpMyAdmin, you can have it do this all for you. I wouldn't be able to have a GL site without phpMyAdmin - I'm not savvy enough.
---"For 300 lifetimes of man have I roamed this earth, and NOW I don't have any time!" -Gandalf the White
"For 300 lifetimes of man have I roamed this earth, and NOW I don't have any time!" -Gandalf the White
"For 300 lifetimes of man have I roamed this earth, and NOW I don't have any time!" -Gandalf the White
21
25
Quote
All times are EDT. The time is now 12:10 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