Launch System Preferences Select Users & Groups Select Login Options Select Join next to Network Account Server Select Open Directory Utility Click the lock and enter your password to make changes In the menu bar of Directory Utility, select Change Root Password Create a strong, unique password
Using mysqladmin on the command line If you have never set a root password for MySQL server, the server does not require a password at all for connecting as root.
1
2
$mysql-uroot
mysql>
To set the root password for the first time, use mysqladmin:
1
$mysqladmin-uroot password'NewPasswordHere'
However, if you want to change (or update) a root password, then […]