Requirements
Depending on the MySQL version you installed, the installation process may have created a randomly generated password for the "root" MySQL user (instead of the older strategy of creating the "root" user with no password).
You should temporarily copy this password somewhere (you will need it to complete the steps below), and plan to change the "root" user password.
mysql>The remainder of the process is the same on all platforms.
Note:
All MySQL commands must end with a semicolon (;) and, although MySQL reserved words are presented below in uppercase, they are case-insensitive and may be typed in all lowercase.