Export

Discussion in 'Databases' started by HuaMin, Jan 21, 2010.

  1. #1
    Hi,
    Is it OK by this? I expect that the export file will be backup.sql
    mysqldump --tables -u db_user_name -p db_name >> backup.sql

    Furthermore, is there any example for that we insert one record with one image file (from the local disk), to the DB table?

    Many Thanks & Best Regards,
    HuaMin Chen
     
    HuaMin, Jan 21, 2010 IP
  2. Rudolf Bodocsi

    Rudolf Bodocsi Peon

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    Should be all right your command for backup.
    I'm using this command for backup my sql server:

    mysqldump --flush-logs -h %mysql_hostname% --lock-all-tables --databases --add-drop-database --user=%mysql_user_name% --password=%mysql_password% --log-error="%log_dir%\mysql_ldap.log" --dump-date mysql >"%mysql_backup_dir%\db\mysql.sql"


    For future information read the mysqldump documentation on mysql web site:
    http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html

    Rudolf
     
    Rudolf Bodocsi, Jan 21, 2010 IP