Results 1 to 5 of 5

Thread: mysqldump in MySQL database

  1. #1
    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.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    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.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    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.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    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.

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    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

Similar Threads

  1. How to speed up the MySQL database
    By Kalanidhi in forum Software Development
    Replies: 5
    Last Post: 27-02-2010, 01:33 AM
  2. Database Replication in MySQL
    By Muhammad Waqar in forum Software Development
    Replies: 5
    Last Post: 21-12-2009, 12:34 PM
  3. Replies: 3
    Last Post: 07-11-2009, 09:36 PM
  4. Backup mysql database
    By jean-paul martell in forum Software Development
    Replies: 3
    Last Post: 31-10-2009, 01:10 PM
  5. How to Connect MySQL database from PHP
    By Booth in forum Software Development
    Replies: 3
    Last Post: 21-01-2009, 09:12 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,403,809.83227 seconds with 17 queries