Official website documents
Install official source:
dpkg -i mysql-apt-config_0.8.13-1_all.deb
Pay attention to whether the update is successful. Sometimes connect time out appears. Just try several times more
apt-get install mysql-server
After the installation is completed, the official website says that you can start it by using service directly, service mysql start, but I can’t find the service startup script here.
Use mysqld to start, directly use mysqld command to start, error reporting is not allowed to use root user to execute
[Server] Fatal error: Please read “Security” section of the manual to find out how to run mysqld as root!
Execute with MySQL user
mysqld –user=mysql &