当前位置:网站首页>在 Debian 10 上独立安装MySQL数据库
在 Debian 10 上独立安装MySQL数据库
2022-06-12 12:49:00 【Nyarime】
有很多VPS的客户并不是全部都喜欢宝塔系统,所以我们单独测试了此模式用于很多客户的数据备份,具体安装细节如下:
第一步
apt -y update && apt -y install bind-utils socat dnsutils libaio1 libaio-dev build-essential manpages-dev libncurses5 zip gnupg libaio1 wget curl screen unzip vim curl xz-utils openssl gawk file rpm && screen -S setupscreen
第二步
wget https://repo.mysql.com//mysql-apt-config_0.8.22-1_all.deb && dpkg -i mysql-apt-config_0.8.22-1_all.deb
第三步:
再次执行:apt -y update
第四步:
安装MYSQL: apt -y install mysql-server
第五步:
查看MYSQL工作状态:systemctl status mysql
第六步:
systemctl is-enabled mysql
第七步:
基本的mysql 操作:service mysql start,service mysql stop,service mysql restart 我们现在该 修改数据库远程链接功能:总体运行语句: 先登录MYSQL 数据库执行语句:mysql -u root -p 他会弹出输入密码选项“Enter password: ”你粘贴密码登录进去再执行更换数据库命令等等如下:
use mysql; select 'host' from user where user='root'; update user set host = '%' where user ='root'; ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '你的密码'; flush privileges; exit; 现在你数据库安装完毕,可以安装BBR+FQ协议加速,并可以通过Navicat Premium 软件进行远程可视化登录
如果3306的端口不通,我们增加一个Debian 10 如何开启防火墙的指定端口的操作 apt -y install iptables iptables-persistent 安装成功后使用以下命令开放一个个端口 iptables -I INPUT -p tcp --dport 3306 -j ACCEPT 然后输入以下命令保存规则持续生效 netfilter-persistent save netfilter-persistent reload 最后重启,就发现所有端口都通了……
本文来自投稿,不代表本站立场,如若转载,请注明出处:https://blog.idc.moe/archives/install-mysql-on-debian10.html
边栏推荐
- ITK multi-stage registration
- 中科物栖CEO张磊:“芯片+OS”范式在万物互联时代的机遇与挑战|量子位·视点分享回顾...
- Array -- seven array topics with double pointer technique
- One line of code to implement shell if else logic
- The 4th Zhejiang CTF preliminary contest web pppop
- Detect whether the vector has an intersection
- [an Xun cup 2019]iamthinking
- itk itk::BSplineDeformableTransform
- Binary tree (serialization)
- Robot Jacobian solution
猜你喜欢

功能标记是什么?一文了解它的作用,以及它的最佳实践

Online picture material

嵌入式系统硬件构成-基于ARM的嵌入式开发板介绍

itk itk::BSplineDeformableTransform

Buu question brushing record - 7

itk::SymmetricForcesDemonsRegistrationFilter

this.$ How to solve the problem when refs is undefined?

Embedded driver design
![[HXBCTF 2021]easywill](/img/a2/8bf7d78fccf0d365490a84a8a9883d.jpg)
[HXBCTF 2021]easywill

Freshman girls' nonsense programming is popular! Those who understand programming are tied with Q after reading
随机推荐
Image comparison function after registration itk:: checkerboardimagefilter
ITK Examples/RegistrationITKv4/DeformableRegistration
Safety KNN
Structure matérielle du système embarqué - introduction du Conseil de développement embarqué basé sur arm
verilog-mode的简要介绍
ITK 多阶段配准
Vant tab bar + pull-up loading + pull-down refresh demo van tabs + van pull refresh + van list demo
this.$ How to solve the problem when refs is undefined?
itk itk::BSplineDeformableTransform
NewOJ Week 10题解
大一女生废话编程爆火!懂不懂编程的看完都拴Q了
Share PDF HD version, series
Five ways to quickly download large files from Google cloud disk
Advanced C language -- storage of deep anatomical data in memory (with exercise)
R language Visual facet chart, hypothesis test, multivariable grouping t-test, visual multivariable grouping faceting bar plot, adding significance level and jitter points
[HXBCTF 2021]easywill
Uniapp wechat applet long press the identification QR code to jump to applet and personal wechat
VNCTF2022 [WEB]
itk itk::BSplineDeformableTransform
Itk:: neighborhood get 6 neighborhood, 18 neighborhood, 26 neighborhood, 18/6 neighborhood, 26/18 neighborhood