I installed MySQL Server 5.7.20 on ubuntu 14.04 and i can log in to server using:
mysql -u root -p
password is blank...how can i set mysql root password in terminal before install mysql server?
I installed it using silent install and try to run from terminal this mysql query:
SET PASSWORD FOR 'root'@'localhost' = 'mypasswordhere';
But i im getting this:
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> SHOW warnings;
+-------+------+------------------------------------------------------------------------------------------------------------+
| Level | Code | Message |
+-------+------+------------------------------------------------------------------------------------------------------------+
| Note | 1699 | SET PASSWORD has no significance for user 'root'@'localhost' as authentication plugin does not support it. |
+-------+------+------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
So what i im doing wrong? I just want to change from blank password for user root to mypasswordhere password...how it needs to be done?