【问题标题】:Error while running mysql_secure_installation on arch linux在 Arch linux 上运行 mysql_secure_installation 时出错
【发布时间】: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


    【解决方案1】:

    你需要在运行mysql_secure_installation之前启动mariadb:

    $ sudo systemctl start mariadb.service
    

    【讨论】:

      猜你喜欢
      • 2018-12-20
      • 1970-01-01
      • 2020-04-03
      • 2018-04-05
      • 2014-12-09
      • 1970-01-01
      • 1970-01-01
      • 2012-05-10
      • 1970-01-01
      相关资源
      最近更新 更多