MySQL Advanced - Backup & Restoring Databases

MySQL Advanced - Backup & Restoring Databases


http://www.killersites.com In this important video tutorial from our Advanced MySQL course, we show you how to do backups and restore your data with the help of the MySQL Dump function!

We've only made part of our content available for free. For the rest, check out our Killer Video Store or our Video Tutorial Library at Killersites.com!

http://www.killervideostore.com/
http://www.killersites.com/university/
http://www.killersites.com/community/
http://www.killerphp.com/
Closed Caption:

hi there this is John 11 sold for killer
PHP calm and this is part 8 of a
nine-part series or looks to be a 9 part
series on advanced mysql usage and today
what I'm going to be showing you is how
you can do backups and restore your data
with the help of the mysql dump function
that comes with pretty much every
distribution of mysql so let's just get
started here if I start by showing you
the tables from our last video you can
very easily see that we've got author
post and we've got post count post with
authors and published posts which are
all views that we created in the last
two videos so if I want to do any kind
of backups of my data the most effective
way of doing this is actually from the
command line now granted you can also do
this and i'm just going to show you
quickly how if I just create a new tab
here so you can see if you do have a map
configuration then it's actually very
easy for you to just use the PHP my
admin toolset that usually comes with
some kind of lamp stack whatever it may
be and from PHP my admin if you remember
it from the introductory tutorial that
defended you can see basically your
whole database schema and you can see
how many records you have and everything
else but you can also do an export of
your data so if I were to check all and
I said export and at the bottom here you
can actually save it as a file or you
can just hit go and when you hit go
you'll see that mysql will actually
generate all the necessary statements
for creating the AH the the constraints
that we looked at and even the first or
the second video to creating the views
that
he described in the last video and so on
and so forth and even all the tables and
all the the rose and everything else so
this is a great way of doing your
backups if you don't have access to this
or if you're for example using ssh to
log into a server and you don't have PHP
my admin at your disposal then fear not
there's actually a very simple way of
doing this too so if i go back to my
terminal and I just quit mysql you'll
notice that in my my particular mysql
binaries are stored in the the bin
folder here so i have MySQL client test
mysql config mysql find rose install DB
and so on and so forth mysqladmin but
there's also my SQL dump and mysql dump
is a really simple way of just dumping
out all the information in a particular
database and it's great if you want to
do that turn it into an SQL file similar
to the scripts that we've been creating
overtime accept that this is going to be
something that is automatically
generated for us so i'm just going to
create a minus I'm just gonna run mysql
dumped from here and see what happens
so you're going to notice that it's
going to give me a selection of options
now in this case my first option is
going to be that when I access my
database using route and my password for
my database is actually going to be root
not very high security and if I just
specify the database name then what's
going to happen is it's just going to
dump everything out straight to my
command line which isn't very helpful i
mean yeah you can copy and paste it but
that's not a very elegant solution with
a bit of shell scripting we can actually
easily move this into a file so if i
wanted to push all of the data that the
mysql dump function is going to return
then it would just be a matter of using
the greater than symbol which will pipe
that output into a file and then I just
need to specify a file so in this case
it's going to be
k PHP SQL and i'm going to call it back
up . sq L hit enter and nothing should
happen or seem to happen however if I go
to this particular folder using CD and
then using the tilde which takes me home
to my desktop 2k PHP SQL which is the
folder that i have this particular
backup file sitting in and i were to or
even I can just go into my finder here
so it's nice and easy for you to see if
i go to my desktop i'm going to have in
my kph psql folder a backup . SQL that
was just created so if I open this in my
editor you can see that it has all the
necessary information for defining the
the website that I or the the database
schema for my web site so it's got you
know the inserts it's got you know a
whole bunch of extra junk which might
not necessarily be super user friendly
but at least we know that it's all it's
all there
so with that in place we can also see
that there's the views and everything
else so if i just select all of this and
i were to go back here into mysql and
for the sake of argument i was going to
say okay so databases I've got a whole
bunch of databases here if I wanted to
create a new database called k PHP back
up with the collation of utf-8
underscore general underscore CI and a
encoding utf-8 I believe that's how you
would do it
ah here we go it's actually not collate
its character set
yeah so Kool Aid is fine but it's
actually character set
so if i create this k PHP backup and I
decide I want to use kph be back up then
if I go back here and I take my backup
that SQL file select all and then paste
it in then it's going to say dump
completed everything looks good if I say
show tables i'm going to get all of the
tables from mike a PHP table database
including all the views so if i say
define post with underscore authors oops
i mean described post underscore with
underscore authors i'm going to get a
description of that if i say select star
from published posts i should get a nice
description of that and everything is in
place so with that one simple mysqldump
command if you wanted to and you had to
log into mysql this would be a very
simple way of doing it another way of
doing it is actually without even
accessing mysql at all so to illustrate
this example what I'm going to do is I'm
just going to drop the database of
$OPERAND kph be underscore backup show
databases and then i'm going to recreate
the create database
k PHP underscore back up and then
collate to utf-8 underscore general
underscore CI it's very important that
you make sure that your defaults are
properly setup or else you'll end up
having like a Swedish character set for
some of your columns and then utf-8 14
other columns which if you have any kind
of funny characters or you know if
you're trying to store multiple
languages you're going to set yourself
up for a lot of trouble and we're going
to the character set set to utf-8 so
I've created this k PHP backup database
except that now if i say use k PHP
underscore backup and I show tables
it's going to be absolutely empty now if
i quit my SQL
instead of just running my legs regular
mysql query and specifying a PHP
underscore backup as my database i can
then pipe the backup SQL script back
into mysql through the client and that
means instead of using the greater than
i would put to a file i'm just going to
use the less then and then I'm going to
find that backup . SQL file so in this
case it's inkay PHP SQL backup . SQL if
i hit enter
it'll take a moment and then it'll just
pump all that information back into the
SQL server if i run the client and I say
show tables then they're going to be
back where they belong
so with a couple of very simple commands
at your disposal
it's actually not difficult to do your
backups and restores and to be able to
easily manage your database if you're
moving from a development environment
with staging environment if you need to
create a test script to show that there
are certain integrity that that is
maintained within your application you
know these little simple queries are
going to save you a ton of time i'm john
lennon sold and thanks for listening

Video Length: 10:11
Uploaded By: Stefan Mischook
View Count: 22,170

Related Software Products
Advanced Backup
Advanced Backup

Published By:
Creabit Development

Description:
Advanced Backup is a powerful backup utility that makes your backups quick and reliable. The program sits as an icon in the Windows system tray and unobtrusively copies files in the background. The program features backup of E-mail messages and address book, database of your favorite messenger: ICQ, MSN, Yahoo!, AIM, Windows registry, Windows shell settings, and anything you wish to protect from hardware failure or accidental erasures. Advanced features include backup schedule, file masks, ...

MySQL Auto Backup
MySQL Auto Backup

Published By:
SwordSky Software

Description:
Auto Backup for MySQL Professional Edition is a powerful Windows program that makes it easy to schedule the backing up and restoring of your remote and local MySQL databases. It's easy to back up one or many MySQL databases, and restore them to the same server, or to any server. You can to customize the scheduler so that the program would automatically make the backup from the MySQL databases daily, weekly, monthly, any special date or time interval.BRBackup MySQL databases to SQL or PHP ...


Related Videos
How To Backup and Restore Your Website Files - MYSQL Database With Cpanel
How To Backup and Restore Your Website Files - MYSQL Database With Cpanel

Learn to easily backup and restore your website files and MYSQL database using your web hosting CPANEL. http://howtowebmaster.com, webmaster tutorials on SEO, web marketing, domain names, software. make money online, and more. New How To Webmaster Videos Added Regularly! hr / bClosed Caption:/b font color="#E5E5E5"this video/fontfont color="#CCCCCC" I'm going/fontfont color="#E5E5E5" to show you how you/font canfont ...
Video Length: 04:44
Uploaded By: Leon Tran
View Count: 129,976

How to backup MySQL database using PHPMyAdmin
How to backup MySQL database using PHPMyAdmin

How to backup your MySQL database using PHPMyAdmin. This will apply to anyone with a custom blog or website that uses MySQL including Wordpress blogs, Expression Engine and more. Note- if you are looking for reliable and fast hosting, please see my blog post here: http://tristantom.com/new-web-host/ Also see my blog here: http://tristantom.com/video-tutorial-... If you read this description, be sure to let me know in a comment! Did you remember to like and ...
Video Length: 04:55
Uploaded By: phototristan
View Count: 67,020

How to Backup Your Computer With Acronis True Image 2015
How to Backup Your Computer With Acronis True Image 2015

Step by step demonstration of how to backup your computer with Acronis True Image 2015. Tip! ATI 2017 is out. Check out what´s new ► http://goo.gl/gGXGTD Read my review of Acronis True Image 2017 here ► http://goo.gl/mhq1Oe You can get Acronis on Amazon also ► http://geni.us/3KNp Video index: 0:00:00 Introduction 0:00:30 Layout presentation 0:00:57 Toolbar presentation 0:02:03 Backup creation 0:05:48 Advanced backup optionsbr ...
Video Length: 16:39
Uploaded By: Office Orbiter
View Count: 61,171

Paragon Backup and Recovery of your Operating System.
Paragon Backup and Recovery of your Operating System.

Paragon Backup and Recovery 2011 Advanced FREE www.paragon-software.com/home/db-express/ This is showing how to create a Backup of your operating system And then shows how to Restore your operating system. Most video's on youtube showing this method, only show the Backup This is the only one (As far as I know) that shows both in one video. Thank You Wayne Barron Carrz-Fox-Fire Promotions http://www.enterview.org/Carrz-Fox-Fi...br ...
Video Length: 07:59
Uploaded By: darkeffectstv
View Count: 33,516

Windows 8 Activation Backup Solution [Advanced Tokens Manager By Josh Cell]
Windows 8 Activation Backup Solution [Advanced Tokens Manager By Josh Cell]

Advanced Tokens Manager is a safer application that helps you with the Windows and Office Activation Backup and Restore. Microsoft imposes one limit of activation's online and by phone for all licenses on your products. This application is able to make the full backup of all activation data stored on the computer for a trusted restore without damage or modify the activation system. You must have the correct SLIC (Software Licensing Description Table) for OEM activations.br ...
Video Length: 02:04
Uploaded By: november_ra1n
View Count: 30,443

How to Backup and Restore Activation In All Windows Incl Windows 8.1
How to Backup and Restore Activation In All Windows Incl Windows 8.1

Download:-http://sh.st/b5co4 About: Advanced Tokens Manager is a safer application that help you with the Windows and Office Activation Backup and Restore. Microsoft imposes one limit of activations online and by phone for all licenses on your products. This application is able to make the full backup of all activation data stored on the computer for an trusted restore without damage or modify the activation system. Features: Activation ...
Video Length: 02:36
Uploaded By: Techbly
View Count: 20,792

Best Backup #6- illusiveModzHD v6 | 1.14 Mod Menu + Advanced Aimbots! | [Mw2/1.14/.ff]
Best Backup #6- illusiveModzHD v6 | 1.14 Mod Menu + Advanced Aimbots! | [Mw2/1.14/.ff]

●▬▬▬▬▬▬PassiveModding▬▬▬▬▬▬● ▄▄▄▄▄▄▄▄DOWNLOADS▄▄▄▄▄▄▄▄ Downloads: patch_mp.ff (Comes With All Regions): http://adf.ly/1RpDGW Backups (Comes With All Regions): http://adf.ly/1RrwIM Backup BLUS30377 FIX: http://adf.ly/1RsNPS Thumbnail (Free To Use If You Upload My Video): https://www.mediafire.com/?qax30jp31n... ▶︎Download More Backups: http://passivemodding.weebly.com/pass... ▌►Please Like, Comment, And Subscribe◄ ▌ br ...
Video Length: 04:22
Uploaded By: PassiveModding
View Count: 19,343

How To Backup and Restore MySQL databases using Workbench
How To Backup and Restore MySQL databases using Workbench

How To Backup and restore MySQL databases using MySQL Workbench
Video Length: 09:09
Uploaded By: Saju M
View Count: 14,925

How To Manually Backup WordPress MySQL Database, Files and Folders | WP Learning Lab
How To Manually Backup WordPress MySQL Database, Files and Folders | WP Learning Lab

Grab Your Free 17-Point WordPress Pre-Launch PDF Checklist: http://vid.io/xqRL How To Manually Backup WordPress MySQL Database, Files and Folders | WP Learning Lab In this WordPress tutorial I'm going to show you how to manually backup WordPress MySQL database, files and folders. Being able to backup your website is important because you will want to do this before you install any updates to WordPress themes, plugins and core files. Also, if you have a WordPress ...
Video Length: 04:49
Uploaded By: WP Learning Lab
View Count: 14,070

MySQL - Backup Database - Linux
MySQL - Backup Database - Linux

http://filmsbykris.com/wordpress/?p=320 Got Questions? visit http://FilmsByKris.com/forum Chat with us and learn more http://FilmsByKris.com/irc hr / bClosed Caption:/b okay we've created a database for the table and some entries and fill in the fields so now you want to occasionally backup your data base just in case something ever happens to your server and this is very simple to do with a tool called my SQL dump my ...
Video Length: 02:35
Uploaded By: Kris Occhipinti
View Count: 12,983

Copyright © 2025, Ivertech. All rights reserved.