When you’ve created a script and you want to ‘run’ it for example every 5minutes on your webserver you can create an cronjob.
But when the cronjob should launch your script, nothing happens and when you run it manually on the server it does work.
There is a simple solution for this.
Cron can only handle ‘full paths’ if for example you have in your script:
rsync ……. it wont work via cron, you have to put it in your script like this:
If you lost / forgot your MySQL password you can restore it by connecting to the host with SSH.
Next you add the following line to you /etc/rc.conf. mysql_args="--skip-grant-tables --skip-networking"
Then restart MySQL # /usr/local/etc/rc.d/mysql-server restart
Connect with MySQL # mysql -u root mysql
Then type the below command:
UPDATE mysql.user SET Password=PASSWORD(‘new password’) WHERE USER=’root’;
Now remove the line you added from rc.conf and restart mysql once again.
You will now be able to access mysql / phpmyadmin
Privacy & Cookies Policy
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.