docker wordpress 提示:Error establishing a database connection
从docker PUll的WordPress 和 mariadb
启动后,提示Error establishing a database connection,网上查找原因,放到基本配置,但没有解决,查看日志有以后错误:
mysqli::__construct(): (HY000/2002): No route to host in Standard input code on line 22
MySQL Connection Error: (2002) No route to host
MySQL Connection Error: (2002) No route to host
MySQL Connection Error: (2002) No route to host
MySQL Connection Error: (2002) No route to host
MySQL Connection Error: (2002) No route to host
MySQL Connection Error: (2002) No route to host
MySQL Connection Error: (2002) No route to host
MySQL Connection Error: (2002) No route to host
MySQL Connection Error: (2002) No route to host
MySQL Connection Error: (2002) No route to host
WARNING: unable to establish a database connection to '*******'
continuing anyways (which might have unexpected results)
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
试着解决AH00558错误 ,无果,又解决2002错误 ,搞定。
nmcli connection modify docker0 connection.zone trusted
systemctl stop NetworkManager.service
firewall-cmd --permanent --zone=trusted --change-interface=docker0
systemctl start NetworkManager.service
nmcli connection modify docker0 connection.zone trusted
systemctl restart docker.service
也可以使用下面的命令:
firewall-cmd --permanent --zone=public --add-rich-rule=‘rule family=ipv4 source address=172.17.0.0/16 accept’ && firewall-cmd --reload
firewall-cmd --zone=trusted --change-interface=docker0 --permanent
firewall-cmd --zone=trusted --change-interface=brxxxxx --permanent
firewall-cmd --zone=trusted --change-interface=bryyyyy --permanent
docker wordpress 提示:Error establishing a database connection相关推荐
- WORDPRESS 网站打不开 error establishing a database connection 、is marked as crashed and should be repa
今天打开 gudianxiaoshuo.com 网时,显示 error establishing a database connection 网站又打不开了 这让人很生气,这个是阿里云服务器,经常出 ...
- WordPress网站出现Error establishing a database connection原因及解决方法
WordPress网站出现Error establishing a database connection(建立数据库连接时出错),重启服务器或者用service mysqld restart命令(M ...
- 解决网站出现“Error establishing a database connection“的方法
最近刚刚写好的一篇文章,准备同步到我的网站上去,但是打开之后却出现了"Error establishing a database connection"的字样. 如下图 可能出现的 ...
- 宝塔建站403 Forbidden报错、WordPress网站出现Error establishing a database connection
1.改服务器root和密码 2.安全组8888端口开放(看宝塔面板设置端口) 3.看自己购买的服务器系统 CentOS服务器用Nginx Cloud Linux服务器用Apache (这两只能选一个 ...
- Error establishing a database connection!
后来发现在 wp-config.php 有个 debug 的参数,打开这个参数,修改为: define('WP_DEBUG','true'); 修改这个后,非常不错,报了很多错,一堆.... 使用修复 ...
- docker 错误:Error response from daemon: cannot stop container: connect: connection refused: unknown...
docker 错误:Error response from daemon: cannot stop container: 795e4102b2de: Cannot kill container 795 ...
- CDH5之Unexpected error.Unable to verify database connection
在部署好CDH5(HDFS+MapReduce+Zookeeper)后,某一天想要通过web界面来添加Hive或者Oozie服务. 添加Hive组件服务: 1.报错:Unexpected error ...
- CDH安装hue报Unexpected error. Unable to verify database connection
文章目录 问题描述 解决方案 问题描述 CDH安装hue时,测试数据库连接报错 Unexpected error. Unable to verify database connection 解决方案 ...
- 解决KETTLE9 连接MYSQL 8 Error connecting to database: (using class org.gjt.mm.mysql.Driver)
1.KETTEL连接My SQL 使用KETTLE 连接MYSQL 数据库,一般步骤很简单,只需要准备好My SQL 的JDBC连接驱动:驱动下载官网地址:MySQL :: Download MySQ ...
- ERROR manager.SqlManager: Error reading from database: java.sql.SQLException: Streaming result set
问题 在使用sqoop导入数据时,报如下错误: ERROR manager.SqlManager: Error reading from database: java.sql.SQLException ...
最新文章
- shell批量创建和删除10个系统帐号密码(密码为随机10位字符串)
- Protues 8.6 详细安装步骤
- jQuery 的常用选择器,筛选器
- 傅里叶变换音频可视化_HTML5如何实现音频可视化频谱跳动
- vue的边距怎么设置_vue 拖动调整左右两侧div的宽度
- Deploy Office Communications Server 2007R2 Group Chat Server(一)
- 区块链测试工具 Caliper性能测试工具是什么
- SpringCloud OpenFeign调用第三方服务
- 6步讲解应对ESD基本方法
- ASP.NET2.0 ReportingServices,报表灵魂的收割者(一)【月儿原创】
- html图片自动切换的幻灯片效果的,JS实现可切换图片的幻灯切换效果示例
- JVM调优实践:记录初次JVM调优经历
- Python学习[4]:urllib库-爬虫的第三步之代理IP
- Ubuntu14.04安装GNOME3桌面
- 蔡学镛[散文随笔]:从A到E+ (转)
- 再劫面包店(村上春树)
- 【重要】 性能测试设计能力解决方案
- 【Java类和对象】
- 基于智慧路灯杆的老旧小区改造方案
- 网站SEO的技巧都有哪些?快速增加权重靠谱吗?