bash:scripts / mysql_install_db:没有这样的文件或目录

时间:2012-05-13 10:20:31

标签: mysql debian

我在debian 6.0.4中安装mysql-5.5.13.tar.gz。我正在遵循here的步骤 当我跑步时

scripts/mysql_install_db --user=mysql
我得到

的例外
bash: scripts/mysql_install_db: No such file or directory

但文件存在于该位置。我也做了那个可执行文件,但它不起作用。我在根终端工作。请帮我解决这个问题。

由于

我安装了

mysql-5.5.24-linux2.6-i686.tar.gz
现在执行命令
root@server06:/usr/local/mysql# scripts/mysql_install_db --user=mysql
后,我收到了消息
Installing MySQL system tables...
./bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

Installation of system tables failed! Examine the logs in ./data for more information.

You can try to start the mysqld daemon with:

shell> ./bin/mysqld --skip-grant &

and use the command line tool ./bin/mysql to connect to the mysql database and look at the grant tables:

shell> ./bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using --log gives you a log in ./data that may be helpful.

Please consult the MySQL manual section 'Problems running mysql_install_db', and the manual section that describes problems on your OS. Another information source are the MySQL email archives available at http://lists.mysql.com/.

Please check all of the above before mailing us! And remember, if you do mail us, you MUST use the ./bin/mysqlbug script!

并且没有启动mysql。如果我下载另一个,请帮帮我吗?

我使用apt-get安装了“libaio”,然后成功安装。但是当我使用命令

{{1}}
启动mysql时,我收到了消息

{{1}}

在/var/lib/mysql/server06.err文件中,我找到了以下

bin/mysqld_safe --user=mysql &

我搜索了很多关于这一点,但无法得到解决方案。任何帮助都会得到报道 感谢

3 个答案:

答案 0 :(得分:13)

您需要安装libaio-dev

基于Debian的发行版的说明:

sudo apt-get install libaio-dev

答案 1 :(得分:2)

通过存档文件名mysql-5.5.13.tar.gz我猜你可能已经下载了MySQL数据库的源代码版本。这就是安装过程不起作用的原因。要按照说明操作,您需要一个包含二进制版本的存档,其文件名应更像mysql-5.5.24-linux2.6-x86_64.tar.gzmysql-5.5.24-linux2.6-i686.tar.gz(取决于架构)。

识别您是否拥有正确存档的另一种方法是查看解压缩的目录。源代码版本中将包含大量文件和目录,包括INSTALL-SOURCEconfigureMakefile.amsqlmysys,{{1二进制版本包含unittestbinsbin等目录。

答案 2 :(得分:0)

cd scripts
./mysql_install_db.sh
如果有

粘贴错误

相关问题