S
S
SeoNk2017-03-27 08:27:06
MySQL
SeoNk, 2017-03-27 08:27:06

How to use MySQL 5.7.17 password in bash script?

I enter in the console:
echo "SHOW DATABASES;" | mysql -uroot -p$PASS
I get the answer:
mysql: [Warning] Using a password on the command line interface can be insecure.
Please use --connect-expired-password option or invoke mysql in interactive mode.
Can you tell me how to disable this security feature so that you can use the password directly in the request?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2017-03-27
@SeoNk

Please use --connect-expired-password option or invoke mysql in interactive mode.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question