We have a PHP command-line script to version a database. We run this script whenever a developer has added a new database patch.
The script runs the patch with the MySQL command-line:
system('mysql --user=xxx --password=xxx < patch.sql');
However, MySQL 5.6 now issues the following warning:
Warning: Using a password on the command line interface can be insecure
Which is obviously true, but might or might not be a problem for the user.
- What's the secure alternative then?
- Alternatively, is it possible to disable this warning?
Please note that I don't want to have to rely on an external password file.