What is the right way to set the root password in the database mysql?
I installed phpmyadmin
and set a password there and log in as phpmyadmin and the password I did but it has no privileges.
Guess this is a new database and can't set it up the same way as the old one not sure.
Looked up on Google how to set the password in mysql and just get errors.
Guess they have to update Webmin for this when trying to set the password in there get this error.
Failed to change administration password : SQL set password for 'root'@'localhost' = password('XXXXXXX') failed : 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 'password('XXXXXXX')' at line 1
In phpmyadmin I can change the password but in Webmin it's still says no root password. So I don't think it worked.
Guess they have to update Webmin and phpmyadmin for this new Database MySQL version 8.0.19-0ubuntu5
Here is the command line I can log in with the password I set in phpmyadmin but can't change it.
root@fujitsu-laptop:~# mysql -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 289
Server version: 8.0.19-0ubuntu5 (Ubuntu)
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> set password for 'root'@'localhost' = PASSWORD('XXXXXX');
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 'PASSWORD('XXXXXX')' at line 1
mysql> exit
Bye
root@fujitsu-laptop:~#