[video tutorial] install the latest version of MySQL under Ubuntu system

Time:2020-2-23

Video address:

https://www.bilibili.com/video/av69256331/

 

Official website documents
https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/

Install official source:
wget https://repo.mysql.com//mysql-apt-config_0.8.13-1_all.deb
dpkg -i mysql-apt-config_0.8.13-1_all.deb
apt-get update
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 &

Recommended Today

Laravel service container must know

The article was forwarded from the professional laravel developer community. Original link: https://learnku.com/laravel/t To learn how to build an application with laravel is not only to learn how to use different classes and components in the framework, but also to remember allartisanCommand or all helper functions (we have Google). Learning to code with laravel is […]