今天我遇到了mysql服务器错误...这种情况实际上发生了两次。之前是上周..。
[29-Jan-2018 01:51:11 UTC] PHP Warning: mysqli_query(): Error reading result set's header in /opt/lampp/htdocs/wordpress/wp-includes/wp-db.php on line 1924
[29-Jan-2018 01:51:10 UTC] PHP Warning: mysqli_query(): MySQL server has gone away in /opt/lampp/
我在Kubernetes集群上部署WordPress + MySQL应用程序时遇到了问题。
当使用HorizontalPodAutoscaler自动扩展我的wordpress和wordpress-mysql部署时,它可以很好地工作于wordpress one,而不是wordpress-mysql one。
实际上,当创建多个MySQL荚时,有些会进入CrashLoopBackOff状态:
$ kubectl get all -n wordpress
NAME READY STATUS RESTART
我正在尝试建立一个停靠-撰写应用程序,运行多个wordpress站点,共享一个单个mysql容器。
配置
下面是对应的docker-compose.yml
version: '3.3'
services:
##################
# Gateway Server #
##################
#
# NOTE: nginx is included for completenes, but (a priori) not
# relevant to the issue at hand.
nginx:
如何在WordPress中覆盖缩略图的默认“自然”大小?我的functions.php和CSS不起作用。这会使图像变得模糊。
Functions.php
// Enable support for Post Thumbnails on posts and pages.
add_theme_support('post-thumbnails');
set_post_thumbnail_size( 450, 250, true );
Style.css:
/* Featured image thumbnail */
.attachment-post-thumbnail,