正在安装 MySQL 系统表...错误:1136 列计数与第 1 行的值计数不匹配?

发布于 2024-09-27 05:47:57 字数 487 浏览 1 评论 0原文

我按照本教程在本地计算机上使用 MySql5 设置 Rails 3 环境: http://blog.openrain.com/2008/08/20/setup-ruby-and-rails-on-osx/

当我运行以下命令时: sudo -u mysql mysql_install_db5

我收到以下错误。

--------

正在安装 MySQL 系统表... 错误:1136 列计数与第 1 行的值计数不匹配 101010 22:40:53 [错误] 正在中止

101010 22:40:53 [注意] /opt/local/libexec/mysqld:关闭完成

---------

请帮我解决这个问题。

谢谢 维沙尔

I was setting up a Rails 3 environment on my local machine with MySql5 following this tutorial: http://blog.openrain.com/2008/08/20/setup-ruby-and-rails-on-osx/.

When I run the below command:
sudo -u mysql mysql_install_db5

I get the following error.

--------

Installing MySQL system tables...
ERROR: 1136 Column count doesn't match value count at row 1
101010 22:40:53 [ERROR] Aborting

101010 22:40:53 [Note] /opt/local/libexec/mysqld: Shutdown complete

---------

Please help me resolve this.

Thanks
Vishal

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我只土不豪 2024-10-04 05:47:57

看来我之前的安装中存在残留文件和 sql 表。

我清空了以下目录“/opt/local/var/db/mysql5”,然后成功执行“sudo -u mysql mysql_install_db5”。

It appears that there were lingering files and sql tables from my previous installation.

I emptied the following directory '/opt/local/var/db/mysql5' and then executed 'sudo -u mysql mysql_install_db5' successfully.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文