Start MySQL Server on Linux

On Linux Servers, you can start MySQL using the following commands using service, init.d, and systemd.
Start MySQL Server using service
sudo service mysql start

Start MySQL Server using using init.d
sudo /etc/init.d/mysql start

Start MySQL Server using systemd
sudo systemctl start mysqld

Start MySQL Server on Windows

On Windows, you can start the MySQL Server using the mysqld program as per following steps:

  • Open the Run dialog by pressing Windows+R keyboards:

  • Type cmd and press Enter:

  • Type mysqld and press Enter:

  • mysqld

    If 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.