Start MySQL Server
Summary: in this tutorial, you will learn how to start MySQL Server on Windows and Linux.
Start MySQL Server on Linux
On Linux, you can start the server with the following commands using service, init.d, and systemd.
Start MySQL Server using service
sudo service mysql startStart MySQL Server using using init.d
sudo /etc/init.d/mysql startStart MySQL Server using systemd
sudo systemctl start mysqldStart MySQL Server on Windows
On Windows, you can start the MySQL Server using the mysqld program as follows:
First, open the Run dialog by pressing Windows+R keyboards:
Second, type cmd and press Enter:
Third, type mysqld and press Enter:
mysqldIf the bin folder is not in the Windows path environment, you can navigate to the bin folder e.g., C:\Program Files\MySQL\MySQL Server 8.0\bin\ and use the mysqld command.
In this tutorial, you have learned how to start MySQL Server on Windows and Linux.