Untitled

 avatar
unknown
plain_text
a year ago
431 B
7
Indexable
Current code
dbname1 = "auroraperf"
        dbpassword1 = "rdsbmsperf"
        dbuser1 = "rdsbmsperf"

cmds.append(
            f"engine_public_version=$(/rdsdbbin/oscar/bin/mysql -u{dbuser1} -p{dbname1} -e \"SELECT aurora_version();\" -p{dbpassword1} | grep -oP '[\\d.]+' | tr -d '\\n')"
        )

I want to revise the code such that I can have more meaningful command by using --username, --dbName and --password in the command 
Editor is loading...
Leave a Comment