为什么install mysql后安装的是MariaDB?
Tofloor
poster avatar
thepoy
deepin
2019-07-06 23:14
Author
如题


Reply Favorite View the author
All Replies
avatar
走钢丝
deepin
2019-07-06 23:32
#1
本帖最后由 lidanger 于 2019-7-6 16:14 编辑

Linux 发行版一般都偏向更适合自己许可证的版本,而 mariadb 是 mysql 的一个社区版分支。

要安装官方版的可以参考:https://dev.mysql.com/downloads/repo/apt/,下载下面的 mysql-apt-config_0.8.13-1_all.deb 安装,即可配置好 apt 源。
我以前下过,分享一下,链接: https://pan.baidu.com/s/1tzUL9-f-q36qVskpypq39g  密码: ehtq

然后,你懂的

sudo apt update
sudo apt install mysql-server
sudo service mysql status

Over.



Reply View the author
avatar
thepoy
deepin
2019-07-06 23:43
#2
https://bbs.deepin.org/post/180308
Linux 发行版一般都偏向更适合自己许可证的 mariadb 是 mysql 的一个社区版分支。

要安装官方版的可以参 ...

安装完Deb,install mysql-server还是mariadb。。。
Reply View the author
avatar
走钢丝
deepin
2019-07-06 23:50
#3
我去年还安装过,没道理啊。
试试 sudo apt install mysql-community-server
Reply View the author
avatar
thepoy
deepin
2019-07-06 23:52
#4
https://bbs.deepin.org/post/180308
我去年还安装过,没道理啊。
试试 sudo apt install mysql-community-server

不行,定位不到
Reply View the author
avatar
走钢丝
deepin
2019-07-07 00:07
#5
本帖最后由 lidanger 于 2019-7-6 16:10 编辑

估计你中间哪一步选错了吧。你看我的过程:








Reply View the author
avatar
thepoy
deepin
2019-07-07 00:13
#6
https://bbs.deepin.org/post/180308
估计你中间哪一步选错了吧。你看我的过程:

正在安装8.0,是我漏了一步
Reply View the author
avatar
要讲武德
deepin
2019-07-07 00:50
#7
建议docker 搞, 不会破坏环境
Reply View the author
avatar
zgg
deepin
2019-07-26 05:49
#8
https://bbs.deepin.org/post/180308
估计你中间哪一步选错了吧。你看我的过程:

你好!请教下,这个deepin下mysql大小写敏感问题如何解决?要修改的 配置文件在哪个下面?
Reply View the author
avatar
走钢丝
deepin
2019-07-26 05:56
#9
https://bbs.deepin.org/post/180308
你好!请教下,这个deepin下mysql大小写敏感问题如何解决?要修改的 配置文件在哪个下面? ...

这个还是在网上搜搜吧。如果是指表名的问题,可以在 /etc/mysql/mysql.conf.d/mysqld.cnf 中添加 lower_case_table_names = 1
Reply View the author
avatar
angelfind
deepin
2019-07-26 06:47
#10
本帖最后由 angelfind 于 2019-7-25 22:49 编辑
https://bbs.deepin.org/post/180308
你好!请教下,这个deepin下mysql大小写敏感问题如何解决?要修改的 配置文件在哪个下面? ...

CREATE SCHEMA `your_db_name` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
# 然后在这个库里面创建表, utf8mb4_unicode_ci 这个编码可以解决忽略大小写的问题。

SELECT * FROM `your_table_name` WHERE `col` = 'XYZ';
SELECT * FROM `your_table_name` WHERE `col` = 'Xyz';
都没有问题
Reply View the author
avatar
zgg
deepin
2019-07-26 07:12
#11
https://bbs.deepin.org/post/180308
CREATE SCHEMA `your_db_name` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
# 然后在这个 ...

好的,谢谢!我通过修改配置文件搞定了!
Reply View the author
avatar
sz******iy@vip.qq.com
deepin
2019-07-26 23:33
#12
https://bbs.deepin.org/post/180308
你好!请教下,这个deepin下mysql大小写敏感问题如何解决?要修改的 配置文件在哪个下面? ...

只有 Windows 操作系统是对大小写不敏感的,所以还是表设计的时候没有考虑好。
Reply View the author
avatar
liuchang131
deepin
2019-08-01 18:44
#13
https://bbs.deepin.org/post/180308
估计你中间哪一步选错了吧。你看我的过程:

你的方法也解决了我安装mysql lib库的问题,谢谢!
Reply View the author