1
Good personal day, lately I’ve been receiving warnings related to a cron I created on 1 site to update certain data from a mysql database table.
The error is as follows:
Warning: Using a password on the command line interface can be insecure.
How do I fix this issue since I need to access the bd to update it?
mysql --user=usuario --password='senha' --database=bancodados --execute="UPDATE protocolos P INNER JOIN reclamacao R SET P.status = 'Em atraso' WHERE P.id = R.id_protocolo AND P.status='Em aberto' AND DATEDIFF(NOW(),R.data_registro) >= 20
Someone would know how to do the same action without having to put the password in charge?
Thank you
thanks for the answer, it seems that it can solve my problem, the question now is: How to configure the access via mysql_config_editor inside cPanel?
– Frederico Moreira
you can use the
mysql-config-editorto save the settings to a file, and can pass the file path with the settings to thecronusing the parameter--defaults-extra-file– Ricardo Pontual