deepin20无法安装mysql
Tofloor
poster avatar
shawun
deepin
2020-12-05 00:13
Author

请问:我的deepin系统如下


但是无法安装mysql,更换了源也无法成功,请问这要如何解决呢?


Reply Favorite View the author
All Replies
1 / 2
To page
贫僧不戒
deepin
2020-12-05 00:15
#1

昨天刚装上了,建议用LNMP一键安装包

https://github.com/licess/lnmp

Reply View the author
liwl
deepin
2020-12-05 00:16
#2

sudo apt-get install mariadb-server

Reply View the author
shawun
deepin
2020-12-05 00:23
#3
贫僧不戒

昨天刚装上了,建议用LNMP一键安装包

https://github.com/licess/lnmp

怎么弄的额 有教程么 ,求指点

Reply View the author
shawun
deepin
2020-12-05 00:23
#4
liwl

sudo apt-get install mariadb-server

另一个数据库么?

Reply View the author
SamLukeYes
deepin
2020-12-05 00:35
#5
shawun

另一个数据库么?

这才是真·MySQL[开心]

Reply View the author
shawun
deepin
2020-12-05 00:36
#6
SamLukeYes

这才是真·MySQL[开心]

啊 这么奇葩的么

Reply View the author
yftls
deepin
2020-12-05 00:46
#7

同志还需努力,不是装不了,只是条条大路通罗马。

https://bbs.deepin.org/forum.php?mod=viewthread&tid=191965&extra=

Reply View the author
shawun
deepin
2020-12-05 01:09
#8
yftls

同志还需努力,不是装不了,只是条条大路通罗马。

https://bbs.deepin.org/forum.php?mod=viewthread&tid=191965&extra=

多谢多谢

Reply View the author
Fredoong
deepin
2020-12-05 01:42
#9

仓库里根本不存在一个名字叫做“mysql-server”的包,怎么可能安装成功呢?截图反映了你对apt工具很不了解。

Reply View the author
solothink
deepin
2020-12-05 02:59
#10
Fredoong

仓库里根本不存在一个名字叫做“mysql-server”的包,怎么可能安装成功呢?截图反映了你对apt工具很不了解。

用这个装啊,sudo apt-get install mariadb-server,

上面已经有人说了。mysql已经被oracle收购了。mariadb是创始人有写了一个,其实就是mysql

Reply View the author
caoayu
deepin
2020-12-05 05:34
#11

等我明天写篇安装mysql的文章[坏笑]

Reply View the author
fontomas
deepin
2020-12-05 17:52
#12

我是下5.7的600多M的压缩包离线安装的,一切正常。

Reply View the author
Feng Yu
deepin
2020-12-05 19:17
#13
caoayu

等我明天写篇安装mysql的文章[坏笑]

postgresql大法好,应该大力推广PG。Mysql这种落伍的东西应该主动淘汰

Reply View the author
shawun
deepin
2020-12-05 19:22
#14
Fredoong

仓库里根本不存在一个名字叫做“mysql-server”的包,怎么可能安装成功呢?截图反映了你对apt工具很不了解。

可问题是百度都是这样装,这不是扯犊子么?

Reply View the author
caoayu
deepin
2020-12-05 19:25
#15
Feng Yu

postgresql大法好,应该大力推广PG。Mysql这种落伍的东西应该主动淘汰

多一个选择也挺好的[嘻嘻]

Reply View the author
Feng Yu
deepin
2020-12-05 19:28
#16
shawun

可问题是百度都是这样装,这不是扯犊子么?

百度你也能信?你不知道百度搜出来的千篇一律都是互相抄还不验证?


技术文章你用百度搜索就是作死。Google大法好,搜技术文章我从不用百度,都是google搜索英文关键字,又快有准,节约时间

Reply View the author
shawun
deepin
2020-12-05 22:46
#17
Feng Yu

百度你也能信?你不知道百度搜出来的千篇一律都是互相抄还不验证?


技术文章你用百度搜索就是作死。Google大法好,搜技术文章我从不用百度,都是google搜索英文关键字,又快有准,节约时间

奈何我太菜了,只能考百度维持下水平...

Reply View the author
尘封的名字
deepin
2020-12-05 22:48
#18

可以试试‘

Mysql安装过程
第一步:在终端输入
# Mysql
cat <mysql-apt-config mysql-apt-config/select-tools select Enabled
mysql-apt-config mysql-apt-config/repo-distro select debian
mysql-apt-config mysql-apt-config/repo-url string https://repo.mysql.com/apt
mysql-apt-config mysql-apt-config/select-server select mysql-5.7
mysql-apt-config mysql-apt-config/select-product select Ok
mysql-apt-config mysql-apt-config/preview-component select
mysql-apt-config mysql-apt-config/repo-codename select stretch
mysql-apt-config mysql-apt-config/select-preview select Disabled
mysql-apt-config mysql-apt-config/tools-component select mysql-tools
mysql-apt-config mysql-apt-config/unsupported-platform select debian stretch
EOF
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

第二步:如果没有chkconfig的安装文件 先安装 然后
#将mysql加入到系统服务
chkconfig --add mysql

#将mysql设置开机启动
chkconfig mysql on

第三步:登录mysql
#在terminal输入:
mysql -u root -p
#此时你可以把MySQL密码改了 可以执行以下 我这是没有设密码的
先用 sudo mysql -u root -p 登录MySQL
#查看数据库
select user,plugin from mysql.user;#查看数据库用户信息
#修改密码
update mysql.user set authentication_string=PASSWORD('123456'),
plugin='mysql_native_password'where user='root';
#然后输入
flush privileges;#刷新数据库
然后退出MySQL(输入\q、exit;、quit;都可以退出),然后重启MySQL,然后就可以直接输入mysql登录了

Reply View the author
Fredoong
deepin
2020-12-06 15:57
#19
shawun

可问题是百度都是这样装,这不是扯犊子么?

包名是打包者决定的,不同发行版不同,不同打包者也不同,不同时期也不同。也就是说就算你搜到的是Deepin安装mysql的教程,也会因为文章时间较早而包名不再适合目前的情况。网上的文章适合作为思路参考,学会举一反三。

Reply View the author
Fredoong
deepin
2020-12-06 16:03
#20
solothink

用这个装啊,sudo apt-get install mariadb-server,

上面已经有人说了。mysql已经被oracle收购了。mariadb是创始人有写了一个,其实就是mysql

mysql被收购了,但mysql还存在,又不是不存在了,该安装mysql还是安装mysql。mariadb是另一个数据库,代码跟mysql又不一样。公司统一使用mysql,你说我不,我就要安装mariadb,这不是胡闹么。

Reply View the author
1 / 2
To page