deepin安装mysql5.7
Tofloor
poster avatar
xueyuejianghan
deepin
2019-11-24 02:52
Author
终端输入下列命令:
  1. # Mysql
  2. cat <
  3. mysql-apt-config mysql-apt-config/select-tools select Enabled
  4. mysql-apt-config mysql-apt-config/repo-distro select debian
  5. mysql-apt-config mysql-apt-config/repo-url string https://repo.mysql.com/apt
  6. mysql-apt-config mysql-apt-config/select-server select mysql-5.7
  7. mysql-apt-config mysql-apt-config/select-product select Ok
  8. mysql-apt-config mysql-apt-config/preview-component select
  9. mysql-apt-config mysql-apt-config/repo-codename select stretch
  10. mysql-apt-config mysql-apt-config/select-preview select Disabled
  11. mysql-apt-config mysql-apt-config/tools-component select mysql-tools
  12. mysql-apt-config mysql-apt-config/unsupported-platform select debian stretch
  13. EOF
  14. wget https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb && sudo DEBIAN_FRONTEND=noninteractive dpkg -i mysql-apt-config*.deb && sudo apt update && sudo apt install mysql-community-server -y
Copy the Code


回车,即可自动安装执行
Reply Favorite View the author
All Replies
avatar
kid_kid
deepin
2020-04-12 20:54
#1
可用,感谢楼主!
Reply View the author
avatar
1***1@qq.com
deepin
2020-04-20 06:26
#2
本帖最后由 jiangkeju 于 2020-4-19 22:30 编辑

安装失败如下提示》》》》》。

正在设置 libmecab2:amd64 (0.996-6) ...正在设置 mysql-client (5.7.29-1debian9) ...
正在设置 mysql-community-server (5.7.29-1debian9) ...
update-alternatives: 警告: 侯选项 /etc/mysql/mariadb.cnf(链接组 my.cnf 的一部分)不存在;从候选项列表中移除。
update-alternatives: 警告: 侯选项 /etc/mysql/my.cnf.fallback(链接组 my.cnf 的一部分)不存在;从候选项列表中移除。
update-alternatives: 警告: /etc/alternatives/my.cnf 正处于未决状态;将以最佳选项更新它。
update-alternatives: 使用 /etc/mysql/mysql.cnf 来在自动模式中提供 /etc/mysql/my.cnf (my.cnf)
my_print_defaults: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
my_print_defaults: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
my_print_defaults: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
my_print_defaults: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
my_print_defaults: [ERROR] Fatal error in defaults handling. Program aborted!
mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
dpkg: 处理软件包 mysql-community-server (--configure)时出错:
已安装 mysql-community-server 软件包 post-installation 脚本 子进程返回错误状态 1
正在处理用于 systemd (241.5+c1-1+eagle) 的触发器 ...
正在处理用于 man-db (2.8.5-2) 的触发器 ...
正在处理用于 libc-bin (2.28.7-1+deepin) 的触发器 ...
在处理时有错误发生:
mysql-community-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


Reply View the author
avatar
Jack
deepin
2020-04-20 07:11
#3
赞一个,正在下载!
Reply View the author
avatar
152******80
Advanced Packager
2020-04-20 16:00
#4
为什么不用mariadb,交给oracle总感觉哪天就用不了
Reply View the author
avatar
☃☂
deepin
2020-04-20 17:43
#5
mysql一直都是在docker里装
Reply View the author