📌  相关文章
📜  SQLSTATE[HY000] [1698] 用户 'root'@'localhost' 的访问被拒绝(SQL: select * from information_schema.tables where table_schema = laravel and table_name = migrations and table_type = 'BASE TABLE') - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:28.779000             🧑  作者: Mango

代码示例2
There is two reasons for this , wrong root password or no root password
with this option disabled in the mysql settings , this is a workaround
for the second issue : 

sudo mysql -u root -p

Now you can alter root user password using the following cmd

ALTER USER 'root'@'localhost' IDENTIFIED BY 'password'

Remeber to change 'password' with your password 

and update it in the .env file of your application