当前位置:网站首页>ubuntu 18.04 使用 tar包安装mysql5.7.35
ubuntu 18.04 使用 tar包安装mysql5.7.35
2022-07-16 04:18:00 【abka】
下载mysql 安装包:
MySQL :: Download MySQL Community Server (Archived Versions)
选择ubuntu 18.04 x64位

下载链接如下:
https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-server_8.0.29-1ubuntu18.04_amd64.deb-bundle.tar
ubuntu 执行下载:
wget https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-server_8.0.29-1ubuntu18.04_amd64.deb-bundle.tar解压,执行命令
tar -xvf mysql-server_8.0.29-1ubuntu18.04_amd64.deb-bundle.tar执行如下命令:
$> sudo apt-get install libaio1
$> sudo dpkg-preconfigure mysql-community-server_*.deb

上面命令如上图,输入密码
sudo dpkg -i mysql-{common,community-client,client,community-server,server}_*.deb提示如下:
sudo dpkg -i mysql-{common,community-client,client,community-server,server}_*.deb
Selecting previously unselected package mysql-common.
(Reading database ... 67396 files and directories currently installed.)
Preparing to unpack mysql-common_5.7.35-1ubuntu18.04_amd64.deb ...
Unpacking mysql-common (5.7.35-1ubuntu18.04) ...
Selecting previously unselected package mysql-community-client.
Unpacking mysql-community-server (5.7.35-1ubuntu18.04) ...
dpkg-deb: error: 'mysql-server_5.7.35-1ubuntu18.04_amd64.deb' is not a Debian format archive
dpkg: error processing archive mysql-server_5.7.35-1ubuntu18.04_amd64.deb (--install): pkg: error processing archive mysql-server_5.7.35-1ubuntu18.04_amd64.deb (--install):
dpkg-deb --control subprocess returned error exit status 2
Setting up mysql-common (5.7.35-1ubuntu18.04) ...
update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Setting up mysql-community-client (5.7.35-1ubuntu18.04) ...
Setting up mysql-client (5.7.35-1ubuntu18.04) ...
dpkg: dependency problems prevent configuration of mysql-community-server:
mysql-community-server depends on libmecab2; however:
Package libmecab2 is not installed.
dpkg: error processing package mysql-community-server (--install):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ureadahead (0.100.0-21) ...
Processing triggers for systemd (237-3ubuntu10.52) ...
Errors were encountered while processing:
mysql-server_5.7.35-1ubuntu18.04_amd64.deb
mysql-community-server
执行:
sudo apt-get -f install
安装之后:
配置文件的位置:
全部的配置文件 (like
my.cnf) 在/etc/mysql 目录下全部的二进制,库,头文件( binaries, libraries, headers),等在
/usr/binand/usr/sbin数据目录在
/var/lib/mysql 目录下
安装结束。
验证:
mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 6
Server version: 5.7.35 MySQL Community Server (GPL)
Copyright (c) 2000, 2021, Oracle and/or its affiliates.参考:
MySQL :: MySQL Installation Guide :: 7.6 Installing MySQL on Linux Using Debian Packages from Oracle
边栏推荐
- Jishili multimeter dmm6500
- Hcip the next day
- Sword finger offer 10- ii Frog jumping on steps
- Opencvsharp (C openCV) pointer method reads and modifies image pixel values (with source code)
- [TinyML]APQ:Joint Search for Network Architecture, Pruning and Quantization Policy
- 视频处理:视频抽样
- ESP8266+Blinker+WEB配网
- Three horses join hands with Qianyuan public welfare foundation | cool in summer, pay tribute to the adherents!
- singan:learning a generative model from a single natural image
- 基本的unix域协议编程
猜你喜欢
![Guess the size of the number ii[what problem does dynamic planning solve?]](/img/a0/6f94899557df7aff18377411cc10a8.png)
Guess the size of the number ii[what problem does dynamic planning solve?]

OpenCV:05滤波器

Tools to measure the gap between two distributions: cross entropy and KL divergence

AB PLC学习笔记

Language AI originally knew whether his answer was correct! New research in Berkeley and other universities is hot, netizen: dangerous, dangerous, dangerous

测试/开发程序员幽默的 “自嘲“?印象流派......

How does Xishanju build a game industry assembly line with ones? | Ones industry practice
![[independent station operation] understand the four skills of cross-border e-commerce operation in one minute!](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[independent station operation] understand the four skills of cross-border e-commerce operation in one minute!

递归求解二叉树的遍历(常考基础例题)

Halcon 3D create_ pose
随机推荐
Excel, how to choose the right chart?
2.18 haas506 2.0 development tutorial - communication between Alibaba cloud M2M devices - rule engine /topic message routing (only versions above 2.2 are supported)
More than 130 enterprises and 3500 developers have jointly built the root community of opengauss open source database
Quick use of jdbctemplate
Installing the g2opy frame
Practice Guide for peanut shell inner net penetration
Sword finger offer 32 - ii Print binary tree from top to bottom II for_ in range()
July 2022 information theory Wu Jun
QA robot section 1 - Introduction
QTcpServer多线程实现
Jishili multimeter dmm6500
三条线(春季每日一题 59)
山东省中小企业数字化转型论坛成功举办,九州云赋能中小企业数智升级
[software testing] test slang, the advice given to you by ten-year old employees
[TinyML]APQ:Joint Search for Network Architecture, Pruning and Quantization Policy
6、 JMeter timer
Expert routine of BW conversion based on AMDP
贝加莱PLC-更改轴任务扫描时间和周期位置下发
Problems encountered in deploying edusoho on the Intranet
自动补全(春季每日一题 58)