有了这个laravel sql特权,任何好的解决方案? [关闭]

问题描述 投票:0回答:1

我在laravel尝试访问mysql时遇到错误,就像这样说

   ` enter code here
SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' (SQL: sele  
          ct * from information_schema.tables where table_schema = blog and table_nam  
          e = migrations) 
In Connector.php line 67:

          SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' `enter code here`
`
php mysql laravel
1个回答
1
投票

这不是与laravel本身有关的问题。检查与DB相关的.env设置。通常类似于:

DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=default
DB_USERNAME=root
DB_PASSWORD=secret
© www.soinside.com 2019 - 2024. All rights reserved.