简体   繁体   中英

Error establishing a database connection. While installing wordpress on Wamp Localhost

I am installing wordpress on Wamp Localhost. I have even created new user with all priveleges.

I am installing it on MySQL and I have removed MariaDB.

Still the same error coming.

在此处输入图片说明

Try checking to see if the PHP MySQL extension module is being loaded:

<?php
    phpinfo();
?>

If it's not there, add the following to the php.ini file:

extension=php_mysql.dll

if it is there make sure its uncommented like below

if you see

;extension=php_mysql.dll

make it

extension=php_mysql.dll

Or another possibility to make sure if MySQL is installed you may check on the result of phpinfo(); by searching mysql

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM