当前位置:网站首页>在 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
边栏推荐
猜你喜欢

Deep analysis of advanced pointer -- advanced chapter of C language

Async/await for ES6

嵌入式系统概述3-嵌入式系统的开发流程和学习基础、方法

【微信小程序开发】第1篇:开发工具安装及程序配置

STM32F1与STM32CubeIDE编程实例-设备驱动-EEPROM-AT24C256驱动

Freshman girls' nonsense programming is popular! Those who understand programming are tied with Q after reading

Tuples, arrays, and as const of typescript

Online picture material

When to use binary search

Vs2019 set ctrl+/ as shortcut key for annotation and uncomment
随机推荐
机械臂改进的DH参数与标准DH参数理论知识
Differences and recommended uses of VaR, let and const (interview)
Newoj week 10 question solution
Overview of embedded system 1- definition, characteristics and development history of embedded system
配准后图像对比函数itk::CheckerBoardImageFilter
What is the function tag? Article to understand its role and its best practices
干货满满,这些知识你必须拿下
itk neighbhood
【VIM】.vimrc配置,已经安装Vundle,YoucompleteMe
路由信息的来源
功能标记是什么?一文了解它的作用,以及它的最佳实践
一个ES设置操作引发的“血案”
Mui login database improvement and Ajax asynchronous processing [mui+flask+mongodb+hbuilderx]
Newton method for solving roots of polynomials
位图、布隆过滤器和哈希切分
Buu question brushing record - 4
Robot Jacobian solution
Array -- seven array topics with double pointer technique
itk itk::BSplineDeformableTransform
R language ggplot2 visualization: use the ggrep package to add a number label to the data point at the end of the line plot