关于配置wnmp环境,phpmyadmin数据库的版本不能高于7.34否则会报错,利用nginx配置的网站需要在vhosts.conf中重写路由添加以下 if ( !-e KaTeX parse error: Expected '}', got 'EOF' at end of input: … rewrite ^/(.*) /index.php/$1 last;
}
网站首页出现SQLSTATE[HY000] [1045] Access denied for user 'db_user'@'localhost' (using password: YES这个问题是因为连接数据库的密码不对,看配置文件的数据库密码是不是与.env的密码一致,不一致改成一致就可以了。