Hello,
I have receiving this following error messages from cpanel running hourly and daily Cronjobs :
---------------------
error massege:
PHP Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock
or
Critical Error : Could not connect to the database
or
ERROR OUTPUT:
mysqldump: Got error: 1045: Access denied for user '***_user'@'localhost' (using password: YES) when trying to connect
or ......
---------------------
Note: my script can connect to database and mysql fine and no problem there ! and when running these command on root crons haven't problem and running fine there ,
But php script command can not connect to database correctly under cpanel end user (normal account user) CronJobs, and send me that error messages,
Please help me to fix ,
Thanks to all
I have receiving this following error messages from cpanel running hourly and daily Cronjobs :
---------------------
error massege:
PHP Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock
or
Critical Error : Could not connect to the database
or
ERROR OUTPUT:
mysqldump: Got error: 1045: Access denied for user '***_user'@'localhost' (using password: YES) when trying to connect
or ......
---------------------
Note: my script can connect to database and mysql fine and no problem there ! and when running these command on root crons haven't problem and running fine there ,
But php script command can not connect to database correctly under cpanel end user (normal account user) CronJobs, and send me that error messages,
Please help me to fix ,
Thanks to all