【发布时间】:2021-08-06 17:51:11
【问题描述】:
我正在尝试在 Arch Linux 上安装 MySQL(纯),所以我从 https://dev.mysql.com/downloads/mysql/ 下载了以下文件。
mysql-8.0.26-linux-glibc2.17-x86_64-minimal-rebuild.tar.xz
我提取它并尝试运行 ./mysql_secure_installation 但在输入 root 密码后,我收到以下错误消息:
[rob@archrob bin]$ sudo ./mysql_secure_installation
Securing the MySQL server deployment.
Enter password for user root:
Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
我该如何解决这个问题?
我也尝试从 AUR 存储库下载它,但是当我运行 makepkg -si 时,它会得到一个安装点,看起来需要很长时间。
构建文件已写入 /home/rob/mysql/src/build
[0%] Built target INFO_BIN
[0%] built target abi_check
[0%] built target INFO_SRC
[0%] Building CXX object extra/protobuf...
[0%] and so on...
一小时后是 [22%] 所以我停止安装并从官方网站尝试。
【问题讨论】:
标签: mysql linux installation arch