admin avatar

Debian 10 installation MySQL server record

🕑 by admin





Go to the MySQL official website to download the apt installation source https://dev.mysql.com/downloads/repo/apt/

1
2
wget https://repo.mysql.com//mysql-apt-config_0.8.15-1_all.deb
apt install ./mysql-apt-config_0.8.15-1_all.deb

Let's start installing the MySQL server

apt-get update apt install mysql-server

The installation process requires interaction, such as entering the MySQL version, MySQL password, and so on. . .

No longer described here, install according to the actual situation

systemctl start mysql

Start MySQL server

systemctl status mysql

View MySQL server status

1
2
3
4
5
6
7
8
9
10
11
12
● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2020-03-30 20:36:44 CST; 16min ago
     Docs: man:mysqld(8)
           http://dev.mysql.com/doc/refman/en/using-systemd.html
  Process: 3198 ExecStartPre=/usr/share/mysql-8.0/mysql-systemd-start pre (code=exited, status=0/SUCCESS)
 Main PID: 3233 (mysqld)
   Status: "Server is operational"
    Tasks: 38 (limit: 2281)
   Memory: 388.6M
   CGroup: /system.slice/mysql.service
           └─3233 /usr/sbin/mysqld

If MySQL provides external services, it is recommended to execute the following command to set MySQL security

mysql_secure_installation





💘 相关文章


📝 有偿服务

• 服务器合租380/年
• 服务器配置:2.4G,6核12线程
• nvme raid 1硬盘
• 不提供服务器自主面板
• 适合稳定的个人博客
• 提供备份服务,备份空间自备
• 只提供ipv6地址,搭配cloudflare使用
• 提供想要安装的程序和域名
• 博客必须是和谐健康的
• 博客不能是视频和图片站
• 提供以下付费服务
• 建站,FTP,备份,Linux,Wordpress等建站问题咨询管理
• 加微信:344452500(不闲聊,直接说事)

写一条评论

Based on Golang + fastHTTP + sdb | go1.16.8 Processed in 0ms