MYSQL

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • MySQLDump - Command line password

    0 answers - 1855 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Hi,
    For confirming that password is shown or not in ps -ef,
    just try to connect to your server using your password ,then in a new
    window just do ps -ef 400 |grep mysql
    You will find the output like below which doesn't show the password
    -uroot -px xxxxxxxxxxx
    Atleast it is not showing in my case.
    Anurag
    Message
    From: Rich Allen [mailto:traf (AT) mtaonline (DOT) net]
    Sent: Wednesday, July 20, 2005 6:20 AM
    To: Cabbar Duzayak
    Cc: mysql (AT) lists (DOT) mysql.com
    Subject: Re: MySQLDump - Command line password
    have you looked at using a my.cnf file?
    eMac:~ hcir$ mysqldump test /temp/test.sql
    eMac:~ hcir$ ls -l /temp/test.sql
    -rw-r 1 hcir staff 78893008 Jul 19 16:47 /temp/test.sql
    contents of ~/.my.cnf
    [client]
    user = username
    password= password
    # actual username and password of course are not 'username' and
    'password'
    Jul 19, 2005, at 3:40 PM, Cabbar Duzayak wrote:
    Hi,
    I have setup cronjobs to take daily backups of my db using mysqldump.
    But the problem is, mysqldump requires the password to be passed via
    command line, which means anyone on the same machine can take a peek
    at my password using "top", "ps -ef", etc.
    Is there a way of avoiding this, i.e. making it read the password from
    some file, etc? , is there any other alternative I can use?
    Confidentiality Notice
    The information contained in this electronic message and any attachments to this message are intended
    for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
    you are not the intended recipient, please notify the sender at Wipro or Mailadmin (AT) wipro (DOT) com immediately
    and destroy all copies of this message and any attachments.

Re: MySQLDump - Command line password


max 4000 letters.
Your nickname that display:
In order to stop the spam: 3 + 2 =
QUESTION ON "MYSQL"

EMSDN.COM