【发布时间】:2011-06-30 17:07:09
【问题描述】:
我的 10.04 ubuntu 机器上有一个 chroot 环境。我试图在这个 chroot 环境中运行 mysql,但是我得到了这个错误。
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
基本上我使用 debootstrap 和 schroot 来创建 chroot。然后我在这个 chroot 环境中安装了“ubuntu-minimal”和 mysql-server。如果您对这里感兴趣,这里是我遵循的所有步骤 https://help.ubuntu.com/community/DebootstrapChroot 。但是 mysql 在 chroot 中不起作用。 /var/log/mysql.log 和 /var/log/mysql.err 文件为空且 mysqld 服务器正在运行。有什么指点吗?
【问题讨论】: