I am trying to use a bash script for reading some data out of an Table but every time i start this script:
#!/bin/bash
user=test
passwort=test1234
output=$(mysql --user='$user' --password='$passwort' --database='$minetest_passwörter' --execute='SELECT * FROM temp_keys;')
#database=minetest_passwörter
mysql --user='$user' --password='$passwort' --database='$minetest_passwörter' --execute='SELECT * FROM temp_keys;'
echo output
it gives me an error like this:
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user '$user'@'localhost' (using password: YES)
I hope that some one of you can help me fix this problem.