filmov
tv
Access denied for user 'root'@'localhost' (Mysql - phpMyAdmin)
![preview_player](https://i.ytimg.com/vi/08V77MVcD0E/maxresdefault.jpg)
Показать описание
Access denied for user 'root'@'localhost' (Mysql - phpMyAdmin)
ERROR 1698 (28000): Access denied for user 'root'@'localhost' at Ubuntu 18.04
=========================================================
Steps:
Open terminal and type
sudo mysql -u root -p
It will prompt you in mysql, here you can fire any mysql commands.
Use mysql table for change table type, so we can use empty password. Bellow is command for it
USE mysql;
Now we change type of table by following command
UPDATE user SET plugin='mysql_native_password' WHERE User='root';
now we have to flush the privileges, because we have used UPDATE. If you use INSERT, UPDATE or DELETE on grant tables directly you need use FLUSH PRIVILEGES in order to reload the grant tables.
FLUSH PRIVILEGES;
now exit from mysql by following command
exit;
now restart mysql server by following command
service mysql restart
=========================================================
#phpMyAdmin_MySql
PSC Study Materials and Previous Question Papers
Any doubts and help to type comments below
ERROR 1698 (28000): Access denied for user 'root'@'localhost' at Ubuntu 18.04
=========================================================
Steps:
Open terminal and type
sudo mysql -u root -p
It will prompt you in mysql, here you can fire any mysql commands.
Use mysql table for change table type, so we can use empty password. Bellow is command for it
USE mysql;
Now we change type of table by following command
UPDATE user SET plugin='mysql_native_password' WHERE User='root';
now we have to flush the privileges, because we have used UPDATE. If you use INSERT, UPDATE or DELETE on grant tables directly you need use FLUSH PRIVILEGES in order to reload the grant tables.
FLUSH PRIVILEGES;
now exit from mysql by following command
exit;
now restart mysql server by following command
service mysql restart
=========================================================
#phpMyAdmin_MySql
PSC Study Materials and Previous Question Papers
Any doubts and help to type comments below
-
TechProgrammingIdeas
-
TechProgrammingIdeas
-
ERROR 1698 (28000): Access denied for user 'root'@'localhost' at Ubuntu 18.04
-
Access denied for user 'root'@'localhost' (Mysql - phpMyAdmin)
-
mysqli_real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES)
-
#1045 - Access denied for user 'root'@'localhost' (using password: YES)