I made this little script with Python to create a backup of a table from my database:
I would like to solve this problem if someone can help me please
Thanks ^^
import subprocess sql_cmd = 'mysql -B -uUser -p password database -e "SELECT * FROM device;" > file.csv' subprocess.run([sql_cmd], shell=True)It is working, but I got this warning message:
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 ^^