安装的时候遇到“One or more database tables are unavailable”

技术流评论3,352阅读模式

安装的时候遇到“One or more database tables are unavailable. The database may need to be repaired.”

一般来说,遇到这个问题,在wp-config.php里面加入如下代码,即可修复。文章源自原紫番博客-https://www.yuanzifan.com/55433.html

define('WP_ALLOW_REPAIR', true);

但是我这是安装的时候遇到的,安装的时候,还没有wp-config.php。文章源自原紫番博客-https://www.yuanzifan.com/55433.html

于是我自己弄了个wp-config.php。发现可以到安装这步,但是安装时候跳过了数据库配置页,且报数据库连接错误。文章源自原紫番博客-https://www.yuanzifan.com/55433.html

研究了半天,发现这台主机居然是IIS10.0的!文章源自原紫番博客-https://www.yuanzifan.com/55433.html

五仁月饼滚出月饼界,所以IIS是不是也该滚出PHP服务器界。文章源自原紫番博客-https://www.yuanzifan.com/55433.html

我当然不能换服务器,最后发现这个问题其实就是IIS带来的。文章源自原紫番博客-https://www.yuanzifan.com/55433.html

复制了一份wp-config.php,生成了wp官网秘钥,填写了正确的数据库名、用户名和密码,重新安装一遍,结果跳过安装页面,直接成功了。文章源自原紫番博客-https://www.yuanzifan.com/55433.html

最后总结:还是玩自行车比较简单。自行车又不需要服务器。文章源自原紫番博客-https://www.yuanzifan.com/55433.html

文章源自原紫番博客-https://www.yuanzifan.com/55433.html

补充:近日发现,Wordpress官网的5.5.2版本,也会报这个错误,即安装时候报上述错误。后来发现,居然是官网的5.5.2的那个安装包有问题???文章源自原紫番博客-https://www.yuanzifan.com/55433.html

解决方案:换成5.5.3,又好用了。

站长微信
扫码添加(注明来意)
weinxin
Yuanzifan99
原梓番博客公众号
博客内容精选
weinxin
原梓番博客
 最后更新:2020-12-3

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定

拖动滑块以完成验证