Google
Useful Links: ____ Article Search -___ Link Parters ___- Ebook Library___- Product Search

place1holder

.
New Articles
Ebook Library
Link Exchange
Advertising Space
Computer Directory
Join Our Newsletter

Name:
Email:


You will recieve a weekly email that contains new articles, useful product recommendations & more! [Privacy]



place2holder



Further
Reading ...
SEO Success - Step Two Is Attracting Search Engine Attention
Once the website has been created and published, many new website owners think that the web development project is finished. But in reality, the real work is just beginning. In order to create a money-making site, traffic must be generated and...

Cool Websites Everyone Should Bookmark
Often I find websites that offer interesting, innovative, or just plain cool stuff that doesn't quite rate a stand- alone article, but several of them together will get you jumping all over your computer to check them out. ** Copyright Thieves...

5 Ways to Speed Up Your PC
No matter how fast your processor and regardless of how much ram you carry, there comes a time when you realize your computer just doesn't run as fast as it did when you bought it. Windows loads slower, programs take longer to launch, and, in...

Has Honesty Become a Thing of the Past?
Has honesty become a thing of the past? Many people are asking themselves this question as they scour the net for what they need. As the low economy in the United States takes its toll on many, people are constantly looking for alternative ways...


 

Backing Up And Restoring Your MySQL Database




Written By:
Vinu Thomas


If you've been using MySQL database to store your important data, it is imperative that you make a backup of your data to prevent any loss of data. This article shows you how to backup and restore data in your MySQL database. This process can also be used if you have to move your data to a new server.

Backing up your database

The quickest and easiest way to backup and restore your database would be to use MySQLDump. If you've got shell or telnet access to your server, you can backup MySQL data by issuing the mysqldump command. The syntax for the command is as follows.

mysqldump -u [uname] -p [pass] [dbname] > [backupfile.sql] [uname] - this is your database username [pass]- this is the password for your database [dbname] - the name of your database [backupfile.sql] - the filename for your database backup

To backup your database 'Customers' with the username 'sadmin' and password 'pass21' to a file custback.sql, you would issue the command

mysqldump -u sadmin -p pass21 Customers > custback.sql

Issuing this command will backup the database to custback.sql. This file can be copied to a safe location or a backup media and stored. For more information on MySQLDump, you can check out : continued below ...





continued ...
href="http://www.mysql.com/doc/en/mysqldump.html" target=new>http://www.mysql.com/doc/en/mysqldump.html

Restoring your database

If you have to re-build your database from scratch, you can easily restore the mysqldump file by issuing the following command. This method will not work if the tables already exist in your database.

mysql - u sadmin -p pass21 Customers < custback.sql

If you need to restore existing databases, you'll need to use MySQLImport. The syntax for mysqlimport is

mysqlimport [options] database textfile1

To restore your previously created custback.sql dump back to your Customers Database, you'd issue

mysqlimport -u sadmin -p pass21 Customers custback.sql

For more information on MySQLImport, you can check out : http://www.mysql.com/doc/en/mysqlimport.html

Vinu Thomas is a consultant on Webdesign and Internet Technologies. His website is http://www.vinuthomas.com. You can discuss about this article or any PHP/MYSQL related issues in our Discussion Forums: http://www.vinuthomas.com/forum2.html




_Additional Resources ...









LOOKING FOR A NEW WEBHOST!?!
The first step in locating the best and most affordable web hosting company for your needs is to hit your favorite search engine and then to start collecting email addresses of hosting firms. Take a quick look around at what each company offers...

Web Package Hosting - Researching Different Alternatives
One of the best ways to find a good web host package is to listen to what others say about companies that provide web hosting. Whether you're a business owner or an individual, you are likely looking for reliable web hosting at a competitive price....

10 Easy Steps to Speed Up Your Computer - Without Upgrading
10 Easy Steps to Speed Up Your Computer - Without Upgrading By Jim Shutes Lapeer Tech Group It seems that the longer you own your computer, the slower it gets! A lot of people will keep their computer until it gets so slow that they feel they need...



This website is powered by Hostland ...