How Do I Change My MySQL Username And Password?

How Do I Change My MySQL Username And Password? Open the bash shell and connect to the server as root user: mysql -u root -h localhost -p. Run ALERT mysql command: ALTER USER ‘userName’@’localhost’ IDENTIFIED BY ‘New-Password-Here’; Finally type SQL command to reload the grant tables in the mysql database: FLUSH PRIVILEGES; How do I