To login and backup a database in one line:
Code:
mysqldump --password=[password] -h [hostname] -u [username] [databasename] > [backupfile.sql] Code:
mysql --password=[password] -h [hostname] -u [username] [database_to_restore] < [backupfile] |
I followed step by step the tutorial, SOmehow I might be doing something wrong.
When I imported my very small testing database onto a new server it said it succeeded. When I go into the forum page I expect to see the old members and old threads. Right? After all if I want to transfer my forum onto a new server, then what's the scope of backup. But in my case NOT. I only see the freshly installed vbulletin on my new server but not the treads and users. What am I doing wrong? In just a few words: I want to export my data and transfer it on a new database/server so I won't lose anything from my old forum |
That's very useful tutorial .. thanks Snake ...
I'm running a big forum ( DB =~ 2 GB ) and for security I need to know the SSH command that enables me to save a redundant copy of the database their .. could anyone tell us about their experience in that field ? And if by chance anyone made a SSH or Linux script or maybe Cron that's automate that process , I hope that I know about it .. Regards , |
Quote:
Quote:
|
Hello, please any other split tool DB a part BigDumb? That I tried some month a go
For some reason it dont works good for me, I need to remove some queries from my DB that block the importing process. |
Quote:
mysql -u MyUserName -p MyDBName -h mysql.myhost.com < /full/path/to/sqldump.sql |
thanks for post
|
for those with SSH access its very easy to backup and to compress (gzip took my DB from 1.4GB to 327MB - Took about 3 minutes
mysqldump --opt -Q -u <username> -p <database name> | gzip > database.sql.gz to restore.... gunzip < database.sql.gz | mysql -u <username> -p <database name> hope this is clear and helps someone out |
Yeah, but I don't think most of the hosts out there provide SSH access especially when they're running a small forum. That's why the either way to backup and/or restore is by phpMyAdmin or some other SQL tool. Shell is pretty much useful for a very large forum.
You're quite welcome, letsjoy. |
Quote:
|
All times are GMT. The time now is 12:57 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|