L
L
lil_koi2020-05-05 13:17:29
MySQL
lil_koi, 2020-05-05 13:17:29

Why does it say using password: NO when connecting?

When querying, the error
"SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) (SQL: insert into `users` (`name`, `email`, `password`, `updated_at`, `created_at`) values ​​(testewqeweq, [email protected], $2y$10$KYqc7yZ.IPSG5H85n/HlS.YWeEWR1Xjc2VO.DVGA6y/DlE0ejCOF., 2020-05-05 10:10:26, 2020-05- 05 10:10:26))"

But at the same time I have a password for root in mysql. How to fix it? If you remove the password in .env, of course, nothing works. In tinker I wrote config('database.connections.mysql') and there is a password there

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lil_koi, 2020-05-05
@lil_koi

I accidentally restarted the server and it worked

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question