搬家少了数据库配置文件。
之前的tipask根目录有一个 .env配置文件里面有数据库的相关配置信息,复制到新站的tipask根目录即可。
Illuminate \ Database \ QueryException (1045)
SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) (SQL: select `id` from `ask_tags`)
Previous exceptions
SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) (1045)
SQLSTATE[HY000] [1045] Access denied for user 'forge'@'localhost' (using password: NO) (1045)
.env内容如下