Home >Database >Mysql Tutorial >how install mysql with linux
How to install MySQL on Linux using the command line?
To install MySQL on Linux using the command line, start by updating the package manager cache with the following command:
<code>$ sudo apt update</code>
Next, install the MySQL server package with the following command:
<code>$ sudo apt install mysql-server</code>
Once the installation is complete, you can verify that MySQL is running by checking the status of the service with the following command:
<code>$ sudo systemctl status mysql</code>
How to configure MySQL after installation on Linux?
/etc/mysql/mysql.conf.d/mysqld.cnf
.Some common settings that you may want to adjust include:
Once you have made your changes, you can save the file and restart MySQL with the following command:
<code>$ sudo systemctl restart mysql</code>
What are the system requirements for installing MySQL on Linux?
The system requirements for installing MySQL on Linux are as follows:
The above is the detailed content of how install mysql with linux. For more information, please follow other related articles on the PHP Chinese website!