Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , ,

Sponsored Links



mysqldump in MySQL database

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 04-03-2010
Member
 
Join Date: Oct 2009
Posts: 61
mysqldump in MySQL database

Hello sir,

I am working running with Linux operating system (RHEL) and I am from developer track for oracle database.I am also interested in MySQL database and need to learn some administrative operation on MySQL database,but I got the mysqldump file in book but there is no any more description about this file in the book.

So please tell me something about this file.
Reply With Quote
  #2  
Old 04-03-2010
Praetor's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,937
mysqldump in MySQL database

mysqldump in MySQL database

The mysqldump file is used to manage the internal process during the backup of mysql database.

Code:
mysqldump --opt mydatabase > sql.dump
The --opt parameter indicates during backing up our database should theoretically give us the fastest needed dump for reading back into MySQL server.The meaning of the "opt" is optimize.
Reply With Quote
  #3  
Old 04-03-2010
Member
 
Join Date: May 2008
Posts: 1,990
Internal effect of taking backup

Internal effect of taking backup :

when you execute the command to take the backup of the database,there are so many processes which and executions are made in the background.

It's a sample of the sql.dump file which was generated when I backed up the same database with the –-opt parameter-

Code:
#

# Table structure for table 'tbl_contactemails'

#

DROP TABLE IF EXISTS tbl_contactemails;

CREATE TABLE tbl_contactemails (

pk_ceId int(11) NOT NULL auto_increment,

ceEmail varchar(250) NOT NULL default '',

ceType int(11) default NULL,

PRIMARY KEY (pk_ceId),

UNIQUE KEY id (pk_ceId)

) TYPE=MyISAM;

#

# Dumping data for table 'tbl_contactemails'

#

LOCK TABLES tbl_contactemails WRITE;

INSERT INTO tbl_contactemails VALUES (18,'mitchell@devarticles.com',1),(17,'mitchell_harper@hotmail.com',1),(16,'mytch@dingoblue.net.au',1);

UNLOCK TABLES;
These are the procedures which internally happens with the dump file.
Reply With Quote
  #4  
Old 04-03-2010
kelfro's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,976
Backup of MySQL database

Backup of MySQL database

If you want to take the backup of MySQL database then you have to perform some guidelines -

1- Go to the backups
2- Select the database which you need to take the backup.
NOTE : If you need to take it through the export method then
3- Log into cpanel.
4- Move to the MySql Databases section.
5- At the bottom of the page, go into phpmyadmin.
6- Select the desired database palced on the left hand side.
7- Select the Export method and choose the format you require.
Reply With Quote
  #5  
Old 04-03-2010
Zecho's Avatar
Member
 
Join Date: May 2008
Posts: 2,267
Backup of database using mysqldump

Backup of database using mysqldump

If you need to take the backup of database using mysqldump file then you have to be aware about the command and related arguments which would be passed with the mysqldump file.

The commad to take the backup would be as follows-

Code:
mysqldump -udbusername -pdbpassword dbname > mybackup.sql
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "mysqldump in MySQL database"
Thread Thread Starter Forum Replies Last Post
Connecting C# with MySQL database Quattro Software Development 5 05-03-2010 10:13 PM
Postgresql vs Mysql database Xmen Software Development 4 04-03-2010 10:11 PM
Need MySQL database directory Osman84 Software Development 4 27-02-2010 05:18 AM
How to speed up the MySQL database Kalanidhi Software Development 5 27-02-2010 01:33 AM
Mysql Error : Can't connect to local mysql server through socket ' var lib mysql mysql.sock' 2 roshan45 Software Development 3 07-11-2009 09:36 PM


All times are GMT +5.5. The time now is 03:36 AM.