How can I get the following script to be more secure? I am getting a mysqldump warning.
mysqldump: [Warning] Using a password on the command line interface can be insecure.
Thanks!
mysqldump: [Warning] Using a password on the command line interface can be insecure.
Code:
# Dump MySQL in staging area
echo "------------------------------------------------"
echo "Dumping MySQL..."
mysqldump -h "$host" -u "$username" -p"$password" "$dbName" > ~/tmp/"$projectName"/database.sql
echo "Done!"
Thanks!