How to Backup and Restore a MySQL/MariaDB Database

  Рет қаралды 42,049

tutoriaLinux

tutoriaLinux

Күн бұрын

Пікірлер: 30
@HallucinVIII
@HallucinVIII 6 жыл бұрын
Thank you for your great videos. Every time I see the term drop tables all I can think of is little Bobby Tables from xkcd. I imagine that I'm not the only one.
@acidrazor
@acidrazor 7 жыл бұрын
I would love more tutorials for production/real world scenarios for n00b DBAs or someone setting out to build their own cluster etc.
@tutoriaLinux
@tutoriaLinux 7 жыл бұрын
Jeff, the guy who does the kernel panic podcast with me, REALLY knows MySQL...maybe I can convince him to do a few videos with me, setting up a highly available production cluster and talking about all the stuff that's important, all the gotchas, and all the hard-earned lessons. And how to get replication working again after your slave_exec_log_position gets all screwed up and you have evil parts of the binlog that have to be skipped before MySQL will work again. In production. ermagerd flashbacks
@mattsnow7803
@mattsnow7803 4 жыл бұрын
Really enjoy watching your videos. It's really informative and easy to follow. Keep it coming!
@xavierl3367
@xavierl3367 7 жыл бұрын
Great guide, and excuse me if this has been mentioned before but how about a guide on tuning mysql. Oh and tuning mysql to run along side apache.
@runnerwannabe90
@runnerwannabe90 7 жыл бұрын
Thanks for you videos. But in this instance I disagree with this approach (i.e. the use of mysqldump), I would like to propose the use of Percona's Xtrabckup or the tool Mylvmbackup. These should be the de facto standard, tools for MySQL backups backups and restoring. Sure for your example, the a small database and my proposal is overkill, but if one of viewers is on the road to managing larger databases, least they can hit the ground running or learning and doing proper DBA tools / methodologies. HTH
@tutoriaLinux
@tutoriaLinux 7 жыл бұрын
Thanks, that's a valuable tip. I actually wasn't familiar with Xtrabackup -- the mechanism I saw used for large-ish databases (2-5TB) was streaming replication to other database nodes (hot standby, business intelligence, a 'backup' node where we actually run mysqldump, etc.). We also had frequent disk snapshots on the DB instances, but of course that's primarily useful as a last resort. Thanks again for the tip; it helps to hear from someone who's a better DBA than me!
@TahmidAzad-v1n
@TahmidAzad-v1n 7 ай бұрын
Very helpful. Thank you.
@uchitesting
@uchitesting 5 жыл бұрын
What about crontab -e Didn't have to deal with that for a while but if I'm correct this is how crontab should be edited. Anyway thanks for the video. It showed very useful. I'm working in a project where many people are involved and shit happened so here I am to quickly know how to backup my stuff.
@rogernevez5187
@rogernevez5187 5 жыл бұрын
This method is also very fast for large databases (10Mi rows)?
@ko95
@ko95 5 жыл бұрын
how do you keep database and web app files in sync? dump the sql to a version controlled git folder?
@sammygun84
@sammygun84 5 жыл бұрын
What your best games on linux?
@Дмитрий-с3п4ы
@Дмитрий-с3п4ы 2 жыл бұрын
9:34 I got BAGUETTE from this one xD
@s.nikolic497
@s.nikolic497 7 жыл бұрын
great video ... thank you
@Dipesh155
@Dipesh155 3 жыл бұрын
How to migrate mysql user, host and password from old to new server?
@Linuxbabeofficial
@Linuxbabeofficial 5 жыл бұрын
--add-drop-table is on by default. You don't need to type it :)
@uchitesting
@uchitesting 5 жыл бұрын
just to be sure and on the safe side. Tomorrow they decide it is no more the default. Your script is still behaving as expected. Let me wonder why would there be an option then.
@JohnSmith-zl8rz
@JohnSmith-zl8rz 3 жыл бұрын
why not just this? mysqldump -u username -p database_name > source_dump.sql why the --add-drop-table , I think by default drop table is add it.
@jordannash4420
@jordannash4420 5 жыл бұрын
Hi I'm stuck at 6:47 and get a permission denied statement when I execute the mysqldump. I'm doing this on Ubuntu 18.04.2 LTS. Anybody run into the same problem whilst following all the steps? Were you able to solve it?
@jordannash4420
@jordannash4420 5 жыл бұрын
Ok I solved it. Answer in this link. askubuntu.com/questions/1146220/permission-denied-after-trying-to-create-mysqldump-even-after-creating-my-cnf?noredirect=1#comment1905374_1146220
@baniputri96
@baniputri96 4 жыл бұрын
Hi Jordan, /home//backups/db
@southbayphotos
@southbayphotos 5 жыл бұрын
Thanks for the information on backups and restores. But seriously, it's called "My-S-Q-L", not "My-Seequil": en.wikipedia.org/wiki/MySQL
@ankitaaarya
@ankitaaarya 7 жыл бұрын
hey
@flyingzeppo
@flyingzeppo 7 жыл бұрын
Very helpful. Thank you.
MySQL/MariaDB Basics (RHCE Certification Study)
19:08
tutoriaLinux
Рет қаралды 72 М.
Archiving and Compression on Linux - Basic tar Commands
16:11
tutoriaLinux
Рет қаралды 64 М.
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 122 МЛН
Как не носить с собой вещи
00:31
Miracle
Рет қаралды 1,6 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 15 МЛН
Human vs Jet Engine
00:19
MrBeast
Рет қаралды 137 МЛН
8 Basic lsof Commands Every Sysadmin Needs to Know
15:21
tutoriaLinux
Рет қаралды 168 М.
Linux Shell Aliases: What You Need to Know
10:17
tutoriaLinux
Рет қаралды 37 М.
Linux Basics -- Scheduling Tasks with Cron
12:06
tutoriaLinux
Рет қаралды 131 М.
Basic tmux Tutorial - Windows, Panes, and Sessions over SSH
11:24
tutoriaLinux
Рет қаралды 505 М.
The Linux 'script' Command: Record Your Shell Sessions
7:50
tutoriaLinux
Рет қаралды 52 М.
Introduction to systemd timers
13:08
tutoriaLinux
Рет қаралды 19 М.
Linux Sysadmin Basics -- 7.1 Filesystem Layout
14:46
tutoriaLinux
Рет қаралды 91 М.
Basic tmux Tutorial, Part 2 -- Shared Sessions
6:15
tutoriaLinux
Рет қаралды 96 М.
Linux Documentation In 2017
20:35
tutoriaLinux
Рет қаралды 20 М.
Bash Scripting 6 -- 'If' and Testing Explained
20:04
tutoriaLinux
Рет қаралды 58 М.
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 122 МЛН