crontab -e
*/5 * * * * service mysql status > /dev/null || service mysql start
OR
/home/scripts/mysqlmon.sh
#!/bin/bash
crontab -e
*/5 * * * * service mysql status > /dev/null || service mysql start
OR
/home/scripts/mysqlmon.sh
#!/bin/bash
If you absolutely need to set it to zeros and are aware of the implications and potential issues that might arise, then you can temporarily disable strict mode for your session, run the update statement, and then re-enable strict mode. Here's how you can do it:
Disable Strict Mode Temporarily:
SET @@session.sql_mode = REPLACE(@@session.sql_mode, 'NO_ZERO_DATE', '');
SET @@session.sql_mode = REPLACE(@@session.sql_mode, 'STRICT_TRANS_TABLES', '');
Run Your Update:
sudo systemctl edit elasticsearch.service
/etc/systemd/system/elasticsearch.service.d/override.conf
$ sudo ufw status
$ sudo ufw status verbose
$ sudo ufw disable
LEMP – Linux, Nginx (pronounced EngineX), MariaDB and PHP.
If you looking for a LAMP setup for your Ubuntu 20.04, then you should read our LAMP setup guide on Ubuntu 20.04.
NGINX is also commonly used as a load balancer and web content cache. It supports Name-based and IP-based virtual servers (analogous to virtual hosts in Apache).
You can install Nginx on your Ubuntu 20.04 desktop or server by running the following command.
UFW is installed by default on Ubuntu. If it has been uninstalled for some reason, you can install it with sudo apt install ufw.
This tutorial is written with IPv4 in mind, but will work for IPv6 as well as long as you enable it. If your Ubuntu server has IPv6 enabled, ensure that UFW is configured to support IPv6 so that it will manage firewall rules for IPv6 in addition to IPv4. To do this, open the UFW configuration with nano:
sudo nano /etc/default/ufw
IPV6=yes
Now, when UFW is enabled, it will be configured to write both IPv4 and IPv6 firewall rules.
Sometimes you may need to extend a method that is currently set to be private. Unfortunately, it is not possible to extend private variables or methods in PHP.
This is a design issue. Core modules were written long before the introduction of module overrides. Difference is that private scope “locks down” class features, while protected scope is less strict and allows overrides by a child class.
If you come across a core module method that is private, the best thing to do is change it to protected.
Bypass “Your connection is not private” Message
Click a blank section of the denial page. Using your keyboard, type thisisunsafe. This will add the website to a safe list, where you should not be prompted again.
OR
In the Chrome address bar, type “chrome://flags/#allow-insecure-localhost“ Select the “Enable” link.