I made this little script with Python to create a backup of a table from my database:
It is working, but I got this warning message:
I would like to solve this problem if someone can help me please
Thanks ^^
1 2 3 |
import subprocess sql_cmd = 'mysql -B -uUser -p password database -e "SELECT * FROM device;" > file.csv' subprocess.run([sql_cmd], shell = True ) |
mysql: [Warning] Using a password on the command line interface can be insecure.
I would like to solve this problem if someone can help me please

Thanks ^^