...

/

Get Started with the MySQL Server

Get Started with the MySQL Server

Learn commands to verify, start, and stop the MySQL server.

We’ll discuss the basics of the MySQL server, including how to start and stop using different methods and how to verify if the server is running. Note that we can run all the following commands in the terminal at the end of the lesson.

Verify MySQL is running as a server

Let’s start a terminal.

Using the terminal, we’re going to check whether the MySQL server is running or not. In order to do that, we type in the following command:

ps -ef |grep 'mysql'

When we run that, we see an output similar to this:

The process that’s currently running refers to MySQL and verifies that the MySQL server is running properly on our machine.

Note: The above output will differ on your machine. It will also change based on the operating system you’re running.

It’s ...