![]() |
|
Article Options |
#46
|
|||
|
|||
Originally Posted by Rhoads
I noticed someone asked this question, but it doesn't look like it got answered. Anyway, the MySQL command could be more complete. In some cases the server might not be localhost. Therefore, the command should look like this:![]()
mysql -u MyUserName -p MyDBName -h mysql.myhost.com < /full/path/to/sqldump.sql No members have liked this post.
|
#47
|
||||
|
||||
thanks for post
No members have liked this post.
|
#48
|
|||
|
|||
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 No members have liked this post.
|
#49
|
||||
|
||||
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. No members have liked this post.
|
#50
|
||||
|
||||
Originally Posted by Snake
How does bash/command line. look like or what is it???
![]()
No members have liked this post.
|
#51
|
|||
|
|||
my host has 2mb of limited to upload sql, and my database is worth 22mb, how could i go about this now? I am noob for restoring
![]() No members have liked this post.
|
#53
|
||||||||
|
||||||||
Originally Posted by Coders Shack
I use This Command But Server Says Me ![]()
No members have liked this post.
|
#54
|
|||
|
|||
I've created a backup zipped file in (MYI, MYD, FRM) formats. Its size was about 120 MB. Then I created a backup of the same database through phpMyAdmin in a .sql format, with a size of 16 MB only! Does that mean that my backup with phpMyAdmin was incomplete? Or it's normal to have a .sql file with a size much less than the actual size of direct database files?
No members have liked this post.
|
#55
|
||||
|
||||
guys i want to move to another host, i already backup the mysql using ssh and get the .sql file, downloading to computer, and i want to uploading to new host using ftp and restore it there using ssh too
my question is in uploading to new host using ftp part, do i need using ASCII mode or binary mode when uploading the .sql file?
__________________
I am SEO specialist and forum coordinator No members have liked this post.
Last edited by basketmen; 21 Sep 2010 at 11:02. |
#56
|
|||
|
|||
my be use scrip like bigdump.php
No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 21:48.