Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
431 B
5
Indexable
Never
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 
Leave a Comment