It is best to disable the default database root user and add a new user. You can add many databases and users, depending on your requirements.
At this point, we’ll set a password to the root user. To do this, open a terminal window and type:
mysqladmin -u root password YourNewPassword
To change the initial password sometime in the future, use the following command
mysqladmin -u root -p YourOldPassword password YourNewPassword
Note: Replace YourOldPassword, YourNewPassword with the actual passwords