Easiest way to fix SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost' error in MySQ

Alphayo Wakarindi
Alphayo Wakarindi
4.7 هزار بار بازدید - 4 سال پیش - This video shows how to
This video shows how to fix SQLSTATE[HY000] [1698] Access denied for user 'root'@'localhost'' error in the simplest way possible you can think of. Step 1: sudo mysql -u root -p -then enter your sudo password if it’s asked. -It will also ask for mysql password. For that one it’s blank so just press Enter. Step 2: USE mysql; Step 3: UPDATE user SET plugin='mysql_native_password' WHERE User='root'; Step 4. FLUSH PRIVILEGES; Step 5. exit; Step 6. $ service mysql restart #MySQL #AccessDenied #Laravel
4 سال پیش در تاریخ 1400/01/26 منتشر شده است.
4,747 بـار بازدید شده
... بیشتر