安装mysql的方法
Tofloor
poster avatar
mdwer
deepin
2020-12-07 07:48
Author

大神能给一个v20安装mysql的详细步骤吗

Reply Favorite View the author
All Replies
忘记、过去
deepin
2020-12-07 07:57
#1

https://dev.mysql.com/get/mysql-apt-config_0.8.16-1_all.deb


mysql 的 apt 仓库安装包,安装时选择 debian 10 版本的仓库,安装结束后,执行 sudo apt update 更新源列表,再执行 sudo apt install mysql-community-server 安装 mysql 并按照提示进行配置即可。

Reply View the author
mcxx123
deepin
2020-12-07 08:19
#2

1、https://dev.mysql.com/downloads/ mysql下载页面

2、点击 MySQL APT Repository 下载deb包

3、https://www.iplayio.cn/post/9572998 按照这个帖子,安装包就可以了。


我每次安装都是按照这个方法来,比较简单。

Reply View the author
deepinuser17
deepin
2020-12-07 08:49
#3

MySQL真正的开源版现在叫mariadb.


深度的官方源里就有. 安装方法非常简单:

sudo apt install mariadb-server mariadb-client


命令依然是mysql. 

# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 51
Server version: 10.3.23-MariaDB-0+deb10u1 Debian 20

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
+--------------------+
3 rows in set (0.000 sec)

MariaDB [(none)]> SELECT host, user FROM mysql.user;
+-----------+------+
| host | user |
+-----------+------+
| localhost | root |
+-----------+------+
1 row in set (0.000 sec)

MariaDB [(none)]>


在Orcale收购了MySQL以后, 原来的MySQL社区从原有的MySQL独立处来, 开发了与MySQL高度兼容的mariadb.

Reply View the author
157******91
deepin
2020-12-07 17:01
#4

直接装PHPSTUDY,MYSQL自动安装。

Reply View the author
caoayu
deepin
2020-12-07 17:11
#5

我帖子中有

Reply View the author
Sun
deepin
2020-12-07 18:38
#6

强烈建议你使用Docker.

Reply View the author