While starting mysql server 5.7.17 using mysqld_safe, following error occcours.
2017-02-10T17:05:44.870970Z mysqld_safe Logging to \'/var/log/mysql/error.log
Work for me in CentOS:
$ service mysql stop $ mysqld --skip-grant-tables & $ mysql -u root mysql mysql> FLUSH PRIVILEGES; mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password'; $ service mysql restart