Napsty / scripts

Just a bunch of handy scripts
GNU General Public License v2.0
63 stars 44 forks source link

Using a password on the command line interface can be insecure #6

Closed oldfart101 closed 3 years ago

oldfart101 commented 4 years ago

mysql error Using a password on the command line interface can be insecure

creed205 commented 4 years ago

I also am having the same error and then it doesn't do anything. Will be looking at that error specifically to see if it can be bypassed as I assume this is a mysql issue.

Napsty commented 4 years ago

On which script do you get this?

creed205 commented 4 years ago

On which script do you get this?

this is with zoneminder-event-cleanup.sh

creed205 commented 4 years ago

I tried to pass on the password using another method which doesn't return an error but I don't get any feedback from the script. It doesn't say it's deleting anything and ends after some time (couple of minutes). Method used: MYSQL_PWD=xxxxxxxx mysql -u root -e "statement"

Brawn1 commented 4 years ago

i have changed the script to work with zoneminder 1.24+, and added feature to use Mysql Docker and normal Mysql connection.

Napsty commented 3 years ago

fixed in https://github.com/Napsty/scripts/commit/c3f0237b1dfd7428e1adb19f2fadbb8bb048516e