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?


All times are GMT. The time now is 04:30 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.01619 seconds
  • Memory Usage 1,731KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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