I\'ve tried to search for an existing answer to this problem, but the answers I find have not worked thus far.
I\'ve been attempting to use PHP to connect to a MySql
This worked for me:
If you need to change the password for MySQL 5.7.6 and later:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
MySQL 5.7.5 and earlier:
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPass');