admin管理员组文章数量:1122832
I have MySQL 8.0.12
, PHP v7.3.2 64Bit
and Apache 2.4.38 64Bit
installed. In theory I have everything that is needed to run WordPress locally.
Through MySQL Workbench, I have tried the Host, Port, User and Password I have set up in wp-config.php
and I am able to connect without any problems.
For some reason however, when I navigate to my site's wp-admin/install.php
I get the following:
In my hosts
file, I have dev.nativeleaf.co.uk
set up to point at 127.0.0.1
, along with localhost
.
In my php.ini
file I have uncommented extension=mysqli
and extension_dir = "ext"
I also have done the steps necessary to get Apache dealing with PHP files, e.g. loading the php7_module
and the AddType
in httpd.conf
I also disabled all Firewalls on Windows, but still nothing! I'm so confused, I don't know why this isn't working.
Any help would be greatly appreciated.
I have MySQL 8.0.12
, PHP v7.3.2 64Bit
and Apache 2.4.38 64Bit
installed. In theory I have everything that is needed to run WordPress locally.
Through MySQL Workbench, I have tried the Host, Port, User and Password I have set up in wp-config.php
and I am able to connect without any problems.
For some reason however, when I navigate to my site's wp-admin/install.php
I get the following:
In my hosts
file, I have dev.nativeleaf.co.uk
set up to point at 127.0.0.1
, along with localhost
.
In my php.ini
file I have uncommented extension=mysqli
and extension_dir = "ext"
I also have done the steps necessary to get Apache dealing with PHP files, e.g. loading the php7_module
and the AddType
in httpd.conf
I also disabled all Firewalls on Windows, but still nothing! I'm so confused, I don't know why this isn't working.
Any help would be greatly appreciated.
Share Improve this question edited Mar 2, 2019 at 15:16 J86 asked Mar 2, 2019 at 15:09 J86J86 1359 bronze badges 3 |1 Answer
Reset to default 0It seems your wp is not connecting with database. There can be some reasons. 1. username, password and host from database are not correct. 2. Check mysql connection in PHP by some small php script for mysql connection.
As you told you have followed #1. Then try to check mysql connection in PHP. There should be mysql mod install in your PHP setup.
In windows try with Xampp.
本文标签: phpWindows Setup Error establishing a database connection
版权声明:本文标题:php - Windows Setup: Error establishing a database connection 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736284696a1927304.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
3307
, so I have the host aslocalhost:3307
. – J86 Commented Mar 3, 2019 at 22:04