发布时间:2026/7/3 10:43:32
Ubuntu下MySQL5.7安装步骤 1**、更新软件包列表**apt-get update2**、查看系统默认安装的数据库版本**apt-cache policy mysql-server3**、需要安装mysql5.7的版本就需要换源**养成习惯先备份文件cp /etc/apt/sources.list /etc/apt/sources.list.back然后更换apt源修改sources.list文件vim /etc/apt/sources.list# 阿里源deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse更新 镜像源gpg --keyserver keyserver.ubuntu.com --recv 3B4FE6ACC0B21F32gpg --export --armor 3B4FE6ACC0B21F32 | apt-key add -apt-get update查看默认安装的mysql数据库版本,可以看到默认的已经变成了mysql5.7的版本了4**、安装MySQL并查看是否安装完成**安装过程中需要确认的直接默认点ok进入下一步即可apt-get -y install mysql-server-5.7## 查看mysql是否安装成功dpkg -l | grep mysqlmysql -Vsystemctl status mysql设置开机自启systemctl enable mysql5**、修改服务为全网启动**6**、换回apt源**cd /etc/aptmv sources.list sources.list.oldmv sources.list.back sources.listapt-get update7**、设置允许远程访问**usemysql;updateusersethost%whereuserrootandhostlocalhost;-- 修改root密码为root并授权grantallprivilegeson*.*toroot%identifiedbyrootwithgrantoption;flushprivileges;转至https://blog.csdn.net/trisyp/article/details/141860593

相关新闻

2026/7/3 11:04:14

PIC18F46K20与MC74HC165A实现GPIO扩展方案

1. 为什么需要输入扩展方案在嵌入式系统开发中,我们经常会遇到一个经典矛盾:微控制器的GPIO引脚数量有限,但实际项目需要监测的输入信号却很多。以PIC18F46K20为例,这款40引脚封装的MCU虽然功能强大,但除去电源、晶振、…

2026/7/3 16:33:01

4-20mA电流环与INA196在工业检测中的抗干扰设计

1. 4-20mA电流环的基础认知与行业现状工业现场最让人头疼的干扰问题,往往来自信号传输环节。从业十余年,我见过太多因信号失真导致的控制系统误动作案例。而4-20mA电流环之所以能成为工业自动化领域的"常青树",关键在于其抗干扰能力…

2026/7/3 16:33:01

VMPDump终极指南:如何快速破解VMProtect保护的Windows程序

VMPDump终极指南:如何快速破解VMProtect保护的Windows程序 【免费下载链接】vmpdump A dynamic VMP dumper and import fixer, powered by VTIL. 项目地址: https://gitcode.com/gh_mirrors/vm/vmpdump 你是否曾经面对VMProtect保护的软件感到束手无策&#…

2026/7/3 16:33:01

终极.NET Core权限管理系统开发指南:快速构建企业级Web应用

终极.NET Core权限管理系统开发指南:快速构建企业级Web应用 【免费下载链接】YiShaAdmin 基于 .NET Core MVC 的权限管理系统,代码易读易懂、界面简洁美观 项目地址: https://gitcode.com/GitHub_Trending/yi/YiShaAdmin YiShaAdmin是一个基于.NE…

2026/7/3 16:33:01

6DoF运动跟踪技术:从IIM-42652传感器到PIC18F4455实现

1. 从3D到6DoF:运动跟踪的技术跃迁 在运动感知和空间定位领域,3D跟踪与6DoF(六自由度)代表着两个不同层级的技术能力。3D跟踪通常指代三维空间中的位置变化感知,而6DoF则在此基础上增加了三个旋转维度的精确测量。这种…

2026/7/3 15:33:00

电动3D视频显微镜,让你一次看清PCB板的表面起伏和深度信息

传统显微镜再强大,终究只能给我们一张“平面照”。可现实中的物品是有高低、有棱角、有细微纹理的——尤其是精密零件或电子元件,一个微米级的凸起或凹陷,往往决定了整个组件的性能。于是,3D显微镜走进了大众视野,它要…

2026/7/3 0:32:50

PhishMailer:快速生成专业钓鱼邮件的完整指南

PhishMailer:快速生成专业钓鱼邮件的完整指南 【免费下载链接】PhishMailer Generate Professional Phishing Emails Fast And Easy 项目地址: https://gitcode.com/gh_mirrors/ph/PhishMailer 在网络安全研究和教育领域,PhishMailer 是一款强大的…

2026/7/3 0:32:50

5个技巧让Playnite便携版更新无忧:游戏库管理的终极指南

5个技巧让Playnite便携版更新无忧:游戏库管理的终极指南 【免费下载链接】Playnite Video game library manager with support for wide range of 3rd party libraries and game emulation support, providing one unified interface for your games. 项目地址: h…

2026/7/3 1:49:20

3个高效策略:快速掌握Axure中文界面配置

3个高效策略:快速掌握Axure中文界面配置 【免费下载链接】axure-cn Chinese language file for Axure RP. Axure RP 简体中文语言包。支持 Axure 11、10、9。不定期更新。 项目地址: https://gitcode.com/gh_mirrors/ax/axure-cn 还在为Axure RP的英文界面感…