zk002008 发表于 2008-12-28 13:10:54

安装5.1出现问题

执行#bin/mysqld_safe --user=mysql &后的错误:


081221 23:49:15 mysqld_safe Logging to '/var/lib/mysql/barxool-kubuntu.err'.
081221 23:49:15 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
081221 23:49:16 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

err文件中的内容
081221 23:49:15 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
081221 23:49:16 Can't read from messagefile '/usr/share/mysql/english/errmsg.sys'
/usr/local/mysql/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
081221 23:49:16 Aborting

081221 23:49:16
081221 23:49:16 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
大家有遇到过这样的问题没有,请帮个忙 !谢谢(ubuntu8.10源码安装)

zcldhd 发表于 2009-6-8 17:01:14

权限问题,mysql用户没有data文件夹和mysql主文件夹的读写权限。

zcldhd 发表于 2009-6-8 17:02:49

进入到mysql的安装目录,比如/usr/local/mysql
然后执行命令
chown mysql .
chown mysql ./data
chgrp mysql .
chgrp mysql ./data
页: [1]
查看完整版本: 安装5.1出现问题