Error establishing a database connection Amazon EC2 - after moving my wordpress blog

后端 未结 13 2004
無奈伤痛
無奈伤痛 2021-02-01 09:03

I am getting the error: \"error establishing a database connection\" after moving my wordpress blog to Amazon EC2. I\'ve checked the wp-config.php file and settings are ok (loca

13条回答
  •  猫巷女王i
    2021-02-01 09:40

    The below fixed it for me:

    amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2 &&
    service httpd restart
    

提交回复
热议问题