Skip to main content

User Access to Database

Comments

3 comments

  • dalem
    located in your /home/usename and its .my.cnf (its hidden)
    0
  • feldon27
    I'm curious why you need a my.cnf file to do a bash script. Have you tried something like: #!/bin/sh fdb=feldon30_testforum fuser=feldon30 fpw=U$fkds0431 fdate=`eval date +%Y-%m-%d` mysql -u $fuser -p$fpw -D $fdb -e "UPDATE tracking SET lastupdate=$fdate;"
    0
  • cPanelMichael
    I am trying ensure the user I am running a bash script with has full access to my database via a my.conf file that specifies a valid username and password

    Hello :) Have you considered authenticating with a MySQL username/password directly in the script as referenced in the previous post? Thank you.
    0

Please sign in to leave a comment.