Monthly Archives: January 2019

WordPress Automatic Updates

Many users are asking us how to enable automatic updates in WordPress. For the moment, there is no option in the WordPress admin panel. You must enable this option by editing the configuration file – wp-config.php.

wordpress autoupdate

The line that needs to be added to the bottom of the wp-config.php file to enable automatic minor and major updates is:

define( 'WP_AUTO_UPDATE_CORE', true );

More info on the WP_AUTO_UPDATE_CORE option from the WordPress site:

WP_AUTO_UPDATE_CORE can be defined with one of three values, each producing a different behavior:

Value of true – Development, minor, and major updates are all enabled
Value of false – Development, minor, and major updates are all disabled
Value of ‘minor’ – Minor updates are enabled, development, and major updates are disabled

Notice: The WordPress will update itself to a development release ONLY if you already are using such a release.

The video tutorial for this article:

References:
https://codex.wordpress.org/Configuring_Automatic_Background_Updates

Share this post:

The mysql_upgrade command [MySQL/MariaDB]

It is recommended to run this command every time to update your MySQL/MariaDB from one major release to another. For example when upgrading from MySQL 5.7 to MySQL 8; MariaDB 10 to MariaDB 11. It checks all the databases(with all the tables) for any incompatibilities. It also updates the system tables with new privileges or options that might have been added in the new version.

The command with options is:

mysql_upgrade [--force] [--user=# --password
--host=hostname --port=# --socket=#
--protocol=tcp|socket|pipe|memory
--verbose] OTHER_OPTIONS]

Simply run the command in shell:

root@www [/home]# mysql_upgrade

References:

https://mariadb.com/kb/en/library/mysql_upgrade/

https://dev.mysql.com/doc/refman/8.0/en/mysql-upgrade.html

Share this post: