[problem help] 安装mariadb后出现这些情况,有知道怎么改进的吗?
Tofloor
poster avatar
dgmenghuan
deepin
2024-01-16 15:28
Author

(base)PC:$ sudo apt install mariadb-server
请输入密码:
验证成功
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
mariadb-server 已经是最新版 (1:10.6.4-1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
(base) mochen@mochen-PC:
$ sudo apt install mariadb-client
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
mariadb-client 已经是最新版 (1:10.6.4-1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
(base) PC:~$ mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 11
Server version: 10.6.4-MariaDB-1 Debian 23

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;
ERROR 2006 (HY000): Server has gone away
No connection. Trying to reconnect...
ERROR 2002 (HY000): Can't connect to local server through socket '/run/mysqld/mysqld.sock' (111)
ERROR: Can't connect to the server

unknown [(none)]>

Reply Favorite View the author
All Replies
longlong
deepin
Developer
2024-01-16 16:08
#1

https://cloud.tencent.com/developer/article/1772444 可以参考下网络上的解决方案

Reply View the author