I dont know why I am unable to reset mysql root password.
I follow https://linuxhint.com/change-mysql-password-ubuntu-22-04/ , but still unable to login when I reach Step 7.
Basically, I am unable to login even after stopping mysql, skipping networking & grant tables , & restarting mysql.
I installed a new mysql, apache & php .
mysql version is 8.0.33
When doing :
$ sudo systemctl stop mysql.service
$ sudo systemctl set-environment MYSQLD_OPTS="--skip-networking --skip-grant-tables"
$ sudo systemctl start mysql.service
then, with
$ sudo mysql -u root
I get
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Can someone help, or point me in the right direction ?
By googling, I get the same results. I dont know where or what I am missing.