Mysql crash – “Cannot connect to database” with WordPress

You setup that AWS EC2 and many days later you find that mysql crashed.  Why  Look in /var/log/messages  ( more /var/log/messages and search for mysql  See this… Jan 18 04:23:07 ip-my-host-ip kernel: [7803276.802432] Out of memory: Kill pro cess 28710 (mysqld) score 192 or sacrifice child Jan 18 04:23:07 ip-my-host-ip kernel: [7803276.808288] Killed process 28710 (m ysqld) total-vm:1149068kB, anon-rss:193628kB, file-rss:0kB, […]

How to display Docker Images

root@core ~# docker images REPOSITORY TAG IMAGE ID CREATED SIZE bitnami/mysql 5.7 35a3535a56a8 3 days ago 297MB bitnami/mariadb latest f3115f49667f 3 days ago 331MB ubuntu latest f643c72bc252 7 weeks ag o 72.9MB turnkeylinux/wordpress latest d1b2a2797ac5 8 months a go 885MB centos/mysql-57-centos7 latest f83a2938370c 15 months ago 452MB mysql latest 8d99edb9fd40 2 years ag o 445MB ubuntu 14.04 d85c70d7c800 2 years […]

Docker – how to list containers.

root@core ~# docker –version Docker version 18.03.1-ce, build 9ee9f40 root@core ~# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 1a48971e9052 bitnami/mysql:5.7 “/opt/bitnami/script…” 42 hours ago Up 41 hours 3306/tcp mysql 51e4a4e0f2fc turnkeylinux/wordpress “/usr/sbin/start.sh” 44 hours ago Up 44 hours 22/tcp, 443/tcp, 12320-12322/tcp, 0.0.0.0:80->80/tcp jolly_mestorf root@core ~# docker ps -aq 1a48971e9052 51e4a4e0f2fc root@core ~#