在 Ubuntu 20.04 上安全安装 MySQL 8 的问题

在 Ubuntu 20.04 上安全安装 MySQL 8 的问题

我正在尝试安装和配置 mysql 和 phpmyadmin,但是在安装 mysql-server 后,当我尝试使用命令 mysql_secure_installation 时,终端要求我输入 root 密码。输入后,它显示 ERROR:

Securing the MySQL server deployment.
Enter password for user root: 
Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

我尝试使用此页面上的信息安装 mysqlhttps://kifarunix.com/install-mysql-8-on-ubuntu-20-04/

https://www.hivelocity.net/kb/what-to-do-if-mysql-sock-file-is-missing/这没有帮助

相关内容