I have a number of large BASH scripts which execute queries against a MySQL database. When running these scripts on MYSQL version 5.7.17, I get the following error'
[Warning] Using a password on the command line interface can be insecure.
I have tried suppressing all warnings globally by adding LOG_WARNINGS = 0 under [mysqld] in the /etc/my.cnf file. Unfortunately MYSQL doesn't restart after making that change.
I have also tried run the command SET GLOBAL LOG_WARNINGS=0 from the command line. Aftre MYSQL restarts the warning is still displayed.
Any ideas?