fate phan # systemctl stop mysql fate phan # mysqld_safe --skip-grant-tables & [1] 14391 fate phan # 170527 11:46:39 mysqld_safe Logging to syslog. 170527 11:46:39 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
fate phan # mysql -uroot Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 2 Server version: 10.0.29-MariaDB-0ubuntu0.16.04.1 Ubuntu 16.04
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h'forhelp. Type '\c' to clear the current input statement.
MariaDB [(none)]> use mysql; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A
Database changed MariaDB [mysql]> update user set password=PASSWORD("gjdEdufD93J") where User='root'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0