0

我想将我所有的 mysql 数据库移动到另一个分区。我已经尝试了巴西的指南,但我没有找到任何有效的方法!

每当我更改 my.cnf 中的“datadir”时,MySQL 就会停止运行!

$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

这里有更多信息:

$ mysqld -u root
101110 16:37:03 [Warning] Ignoring user change to 'root' because the user was set to 'mysql' earlier on the command line
101110 16:37:03 [Warning] Can't create test file /home/krainboltgreene/repo/databases/mysql/krainboltgreene-desktop-gateway.lower-test
101110 16:37:03 [Warning] Can't create test file /home/krainboltgreene/repo/databases/mysql/krainboltgreene-desktop-gateway.lower-test

这是conf文件:

https://gist.github.com/672763

4

1 回答 1

0

正如@cdhowie 所说,看起来您可能只需要将新目录更改为 mysql。这通常是通过sudo chown -R mysql:mysql directoryname

让我们知道这是否有效。

于 2010-11-11T01:08:43.137 回答