vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Programming Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=188)
-   -   Tutorial: How to make a reliable database backup (https://vborg.vbsupport.ru/showthread.php?t=39558)

raxafarian 09-21-2003 12:50 AM

compress the backup as it's made:

mysqldump --opt -u_____ -p database | gzip -9 > /var/backups/blablabla.sql.gz

note: I have a small database (80mb or so), don't know if this will work on large databases or not

sabret00the 10-16-2003 02:41 PM

is there anywya to grab half or even quarter of the database at a time?

daFish 10-17-2003 06:14 AM

Quote:

Originally Posted by raxafarian
compress the backup as it's made:

mysqldump --opt -u_____ -p database | gzip -9 > /var/backups/blablabla.sql.gz


note: I have a small database (80mb or so), don't know if this will work on large databases or not

This is a very good syntax. Thanks for this. It's working very nice and quickly. :)

-Fish

alexi 10-20-2003 02:49 AM

I have been using:
/usr/local/mysql/bin/mysqldump --opt -u____ -p____ forums | gzip > /home/mysqldumps/backup/forums.sql
for a while now and it seems to work fine although I haven't had to restore from it.
What does the -9 switch do?

gldtn 12-12-2003 04:55 AM

How do I expand my max_allowed_packet for mysql? I'm trying to restore my backup.sql on my local machine but I got an error saying that a line #: Got a packet bigger than 'max_allowed_packet'.

Thanks in advance!

o0stephane0o 11-03-2004 06:11 PM

mysqldump: Got error: 1044: Access denied for user: 'o0oKARo0X@localhost' to database 'o0oKARo0X' when using LOCK TABLES

What´s that error?

alexi 11-03-2004 09:04 PM

looks like a permissions problem. Make sure 'o0oKARo0X@localhost' is in your grant table

o0stephane0o 12-01-2004 03:53 PM

Yes it is but I can?t solve it, it?s getting very annoying :(

Brad 12-02-2004 10:11 PM

Quote:

Originally Posted by o0stephane0o
Yes it is but I can?t solve it, it?s getting very annoying :(

You may not have permission to use certain SQL commands with that username, give it access to everything (ALL) if you are unsure on what commands you need.

thamyeuvn 01-08-2005 04:48 PM

237: Got a packet bigger than 'max_allowed_packet'
How can I fix it?

noppid 01-12-2005 02:13 PM

Quote:

Originally Posted by thamyeuvn
237: Got a packet bigger than 'max_allowed_packet'
How can I fix it?

Your host has to tweak the mysql settings in my.cnf to fix that. Make them do it, do not accept no for an answer.

thamyeuvn 01-16-2005 07:38 PM

I used Secure SSR and I find this file on my server:
*my.cnf (the name is crazy:(=
How can I replace "max_allowed_packet" to correct value? and how can I find the file my.cnf on my server .`? My server is using cpanel

Q-v-n-s-Q 03-21-2005 09:33 PM

i setup everything, when i type in my password

and click connect

Shell access is not enabled on your account!
If you need shell access please contact support.

Marco van Herwaarden 03-21-2005 10:10 PM

Then that is just what you need to do. Most hosts will give you access on request without a problem.

Q-v-n-s-Q 03-22-2005 04:26 AM

well my old host http://elite-forumz.net i wana restore database to http://elite-forumx.net but the databse is 8 MB, any other way??

Trigunflame 03-22-2005 07:20 AM

< advertise >

https://vborg.vbsupport.ru/showthread.php?t=78486

Is your easy answer to a reliable backup :)

< / advertise >

:)

deathemperor 06-26-2005 05:39 PM

This is cool when your server have SSH access, mine now has !

note that if your host isn't localhost by default you must use:

mysqldump --opt -u USERNAME -p -h SERVER DATABASENAME
mysql -u USERNAME -p -h SERVER DATABASENAME

you must then change SERVER, USERNAME and DATABASENAME to your values.

Thanks Teck for this !


All times are GMT. The time now is 04:48 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03929 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete