Header Banner
gadgethacks.mark.png
Gadget Hacks Shop Apple Guides Android Guides iPhone Guides Mac Guides Pixel Guides Samsung Guides Tweaks & Hacks Privacy & Security Productivity Hacks Movies & TV Smartphone Gaming Music & Audio Travel Tips Videography Tips Chat Apps
Home
Internet

How to Restore a Backup of a MySQL Database Server

May 26, 2011 03:25 AM

In this article, i will show you how to backup/restore mysql from remote server, steps are very simple. You can just copy & paste to do your jobs. This help is on linux system with command line how to. You can do it by navicat tool or MySQL GUI, but i still like terminal command line.

You can read the dump file back into the server like this:

mysql db-name < backup-file.sql

To restore database called sales, first create the database sales:

$ mysql -u root -p

You will be asked root password of your mysql on server. Please enter root password mysql to access SQL statement.

Now create database called sales using SQL statement:

mysql> CREATE DATABASE sales;

mysql> quit;

Now restore database by using the following command:

$ mysql -u root -p sales < /path/to/sales-backup-file.sql

You will be prompted for password databases to execute the command.

That's all.

The next big software update for iPhone is coming sometime in April and will include a Food section in Apple News+, an easy-to-miss new Ambient Music app, Priority Notifications thanks to Apple Intelligence, and updates to apps like Mail, Photos, Podcasts, and Safari. See what else is coming to your iPhone with the iOS 18.4 update.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!