How can you connect to the MySQL Server?
In order to connect to the MySQL server it is necessary to give the username and password so this be able to done with
The following
% mysql -h local host -p -u root
-h local host to connect to MySQL server running on the local host
-p to tell mysql to prompt for a password
-u root to connect as the MySQL root user