I made this little script with Python to create a backup of a table from a database:

Code:
import subprocess
sql_cmd = 'mysql -B -u User -pPassword  -e Database "SELECT * FROMdevice;" > file.csv'
subprocess.run([sql_cmd], shell=True)
It is working, but I got this warning message:

Code:
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 ^^