MariaDB社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4782|回复: 2
打印 上一主题 下一主题

mysql 安装

[复制链接]
跳转到指定楼层
1#
发表于 2010-3-19 11:26:51 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
make
make install 均已成功,但是 bin/mysql_install_db  bin/mysql_install_db 报错 Could not find  bin/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql

mkdir: 无法创建目录 “/usr/local/mysql/mysql”: Permission denied
chmod: 无法访问 “/usr/local/mysql/mysql”: 没有该文件或目录
mkdir: 无法创建目录 “/usr/local/mysql/test”: Permission denied
chmod: 无法访问 “/usr/local/mysql/test”: 没有该文件或目录
Installing MySQL system tables...
100319 11:09:45 [Warning] The syntax '--skip-locking' is deprecated and will be removed in a future release. Please use --skip-external-locking instead.
100319 11:09:45 [Warning] Can't create test file /usr/local/mysql/ubuntu.lower-test
100319 11:09:45 [Warning] Can't create test file /usr/local/mysql/ubuntu.lower-test
/usr/local/mysql/libexec/mysqld: File './mysql-bin.index' not found (Errcode: 13)
100319 11:09:45 [ERROR] Aborting

100319 11:09:45 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete


Installation of system tables failed!  Examine the logs in
/usr/local/mysql for more information.

You can try to start the mysqld daemon with:

    shell> /usr/local/mysql/libexec/mysqld --skip-grant &

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

    shell> /usr/local/mysql/bin/mysql -u root mysql
    mysql> show tables

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

The latest information about MySQL is available on the web at
http://www.mysql.com/.  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 /usr/local/mysql/scripts/mysqlbug script!

lieyia@ubuntu:/usr/local/mysql$ sudo gedit /etc/my.cnf
lieyia@ubuntu:/usr/local/mysql$ bin/mysql_install_db --user=mysql

FATAL ERROR: Could not find /usr/local/bin/my_print_defaults

If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.

If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.

lieyia@ubuntu:/usr/local/mysql$ bin/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
mkdir: 无法创建目录 “/usr/local/mysql/data”: Permission denied
chmod: 无法访问 “/usr/local/mysql/data”: 没有该文件或目录
mkdir: 无法创建目录 “/usr/local/mysql/data”: Permission denied
chmod: 无法访问 “/usr/local/mysql/data/mysql”: 没有该文件或目录
mkdir: 无法创建目录 “/usr/local/mysql/data”: Permission denied
chmod: 无法访问 “/usr/local/mysql/data/test”: 没有该文件或目录
Installing MySQL system tables...
100319 11:16:09 [Warning] The syntax '--skip-locking' is deprecated and will be removed in a future release. Please use --skip-external-locking instead.
100319 11:16:09 [Warning] Can't create test file /usr/local/mysql/data/ubuntu.lower-test
100319 11:16:09 [Warning] Can't create test file /usr/local/mysql/data/ubuntu.lower-test
/usr/local/mysql/libexec/mysqld: Can't change dir to '/usr/local/mysql/data/' (Errcode: 2)
100319 11:16:09 [ERROR] Aborting

100319 11:16:09 [Note] /usr/local/mysql/libexec/mysqld: Shutdown complete


Installation of system tables failed!  Examine the logs in
/usr/local/mysql/data for more information.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享分享 分享淘帖 顶 踩
2#
发表于 2010-3-19 15:35:09 | 只看该作者
应该是执行权限不够或文件夹没有足够的权限
一般在MySQL的安装文件中,有个完整详细的安装指导文件 INSTALL-BINARY,查看此文件内容参考之...
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|MariaDB社区 ( 京ICP备07012489号    |
业务联系: QQ:48474881; 邮箱: 48474881@qq.com; 电话:13911732319
声明:本站部分文章是网友转载,若未经作者同意或署名有误,请联系网站管理员。

GMT+8, 2024-11-1 20:34 , Processed in 0.082387 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表