I do not fully understand how the bitnami install I am using for wordpress on AWS works so I did the following to reset my root MySQL password and now I can not get MySQL to restart.
Here are the steps I followed
Step 1: Stop MySQL Service.
sudo /opt/bitnami/ctlscript.sh stop mysql
Step 2: Kill all running mysqld.
sudo killall -9 mysqld
Step 3: Starting mysqld in Safe mode.
sudo mysqld_safe --skip-grant-tables --skip-networking &
Step 4: Start mysql client
mysql -u root
Step 5: After successful login, please execute this command to change any password.
FLUSH PRIVILEGES;
Step 6: You can update mysql root password .
UPDATE mysql.user SET authentication_string=PASSWORD('newpwd') WHERE User='root';
Step 7: Please execute this command.
FLUSH PRIVILEGES;
Step 8. Kill mysqld_safe
sudo killall -9 mysqld_safe
Step 9 Start MySQL Service
sudo /opt/bitnami/ctlscript.sh start mysql
The info I get back from console
mysqld_safe Logging to '/opt/bitnami/mysql/data/mysqld.log'.
mysqld_safe Starting mysqld.bin daemon with databases from /opt/bitnami/mysql/data
mysqld_safe mysqld from pid file /opt/bitnami/mysql/data/mysqld.pid ended
/opt/bitnami/mysql/scripts/ctl.sh : mysql could not be started Monitored mysql
Step 10 review the mysql.log for any errors /opt/bitnami/mysql/data/mysqld.log
Access denied for user 'bitnami'@'localhost' (using password: YES)