...

/

Communicate with the MySQL Server

Communicate with the MySQL Server

Learn to interact with the MySQL server.

We'll cover the following...

Connect the MySQL server

Now that we know that the MySQL server is running and how to stop and start it, let’s look at the command-line tool that we’ll be using to connect to the MySQL server.

In our terminal, type in the following command:

mysql -u root -p

We’ll be asked to give the password of the root user on our MySQL installation. If there’s no password on the installation, hit the “Enter” key. If our root server has a password, then we need to give it here.

Note: If the root user doesn’t have a ...

Access this course and 1400+ top-rated courses and projects.