after new installation of ubuntu 20.04
i get error to connect to mysql with root
user. for below commands after using
sudo mysqld_safe --skip-grant-tables --skip-networking
mysql -u root
i get syntax error and i can't update root password:
Mysql version:
mysql Ver 8.0.22-0ubuntu0.20.04.3 for Linux on x86_64 ((Ubuntu))
command:
update `user` set `authentication_string`=PASSWORD("") where `User`='root';
>ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '("") where `User`='root'' at line 1
and when i try to use Alter
command i get this message:
ALTER USER 'root'@'localhost' IDENTIFIED BY '';
>ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement