Horje
Got error: 1698: Access denied for user 'root'@'localhost' when trying to connect Code Example
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
>>> sudo mysql -u root -p

>>> USE mysql;

>>> UPDATE user SET plugin='mysql_native_password' WHERE User ='root';

>>> FLUSH PRIVILEGES;

>>> exit;

>>> service mysql restart;
Got error: 1698: Access denied for user 'root'@'localhost' when trying to connect
$ sudo mysql -u root # I had to use "sudo" since is new installation

mysql> USE mysql;
mysql> UPDATE user SET plugin='mysql_native_password' WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> exit;

$ service mysql restart




Shell

Related
git check staged changes Code Example git check staged changes Code Example
install mdx for nextjs Code Example install mdx for nextjs Code Example
linux see remaining disk space Code Example linux see remaining disk space Code Example
count the number of unique elements in a column bash Code Example count the number of unique elements in a column bash Code Example
rm except one file Code Example rm except one file Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9