how to check if root password was set in mysql code example Example: where to locate set password for mysql ALTER USER 'root'@'localhost' IDENTIFIED BY 'PASSWORD';