This tutorial is all about the commands you need to know how do you start/restart an Apache 2 Web Server and MySQL server on Ubuntu or Debian Linux operating system.
The Apache web server is the light and most popular open source web server use worldwide on Linux based operating system. It can be installed on Ubuntu with a single command to handle both dynamic and static content web pages. Most of the WordPress and other popular CMS uses it as a Web server.
Stop Mysql Mac
When you stop an instance, it remains stopped, and does not respond to application connections, until you start it again. Stopping an instance suspends instance charges. The instance data is unaffected, and charges for storage and IP addresses continue to apply. Note: You cannot stop a read replica instance. To stop an instance. The reason for MySQL server has gone away error, is often because MySQL’s waittimeout was exceeded. MySQL waittimeout is the number of seconds the server waits for activity on a non-interactive connection before closing it. You should make sure the waittimeout is not set too low. The default for MySQL waittimeout is 28800 seconds. MySQL Community Edition is a freely downloadable version of the world's most popular open source database that is supported by an active community of open source developers and enthusiasts. MySQL Cluster Community Edition is available as a separate download. For start/Stop and restart the MySQL server on Ubuntu use the below mentioned commands: Stop MySQL on Ubuntu Linux. Terminal commands to stop MySQL. Sudo stop mysql or sudo service mysql stop or sudo /etc/inid.d/mysql stop. Start MySQL on Ubuntu Linux. Use any of one given below to start the MySQL, if it in a stop state.
Furthermore, when you want to create some online application or website then you also need a database software to store all your content and here the MySQL comes in. It is also an open source database system software that can install on any Linux operating system with ease. If you are new to both then you can look at our tutorial which let you know how to install Apache, MySQL, and PHP on Ubuntu Linux.
The below-given commands will work on all Ubuntu and Debian based Linux operating systems no matter where they are, it could be on your local PC system or a hosting or cloud services like AWS, DigitalOcean, google cloud and more..
Start Apache on Ubuntu Linux
The command to start the Apache web server on Ubuntu is:
Stop Apache server on Ubuntu Linux
Command on the terminal to stop the web server Apache2
Restart Apache server on Ubuntu Linux
Commands to execute on Ubuntu terminal to restart the Apache web server.
If you are using the Ubuntu 15.04 or above then you can also use the below commands to start/restart and stop the Apache web server.
For start/Stop and restart the MySQL server on Ubuntu use the below mentioned commands:
Stop MySQL on Ubuntu Linux
Terminal commands to stop MySQL
Start MySQL on Ubuntu Linux

Use any of one given below to start the MySQL, if it in a stop state.
Restart MySQL on Ubuntu Linux
To restart the MySQL Ubuntu Linux server use the commands in terminal.
Stop Mysql Macos Linux
Other Useful resources
