免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1515 | 回复: 4
打印 上一主题 下一主题

[系统安装] mysql安装时出现如下错误? [复制链接]

论坛徽章:
5
NBA常规赛纪念章
日期:2015-05-04 22:32:03操作系统版块每日发帖之星
日期:2015-11-09 06:20:00操作系统版块每日发帖之星
日期:2015-11-10 06:20:00数据库技术版块每日发帖之星
日期:2016-01-14 06:20:00IT运维版块每日发帖之星
日期:2016-01-16 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-12-28 22:09 |只看该作者 |倒序浏览

在使用./scripts来编译mysql时出现这样的错误,真的不是很清楚,可以帮忙分析一下吗?

[root@centos1 mysql]# ./scripts/mysql_install_db --user=mysql --datadir=/data/mysql
WARNING: The host 'centos1' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
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/mysql 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/mysql 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 submitting a bug report
at http://bugs.mysql.com/

论坛徽章:
224
2022北京冬奥会纪念版徽章
日期:2015-08-10 16:30:32操作系统版块每日发帖之星
日期:2016-02-18 06:20:00操作系统版块每日发帖之星
日期:2016-03-01 06:20:00操作系统版块每日发帖之星
日期:2016-03-02 06:20:0015-16赛季CBA联赛之上海
日期:2019-09-20 12:29:3219周年集字徽章-周
日期:2019-10-01 20:47:4815-16赛季CBA联赛之八一
日期:2020-10-23 18:30:5320周年集字徽章-20	
日期:2020-10-28 14:14:2615-16赛季CBA联赛之广夏
日期:2023-02-25 16:26:26CU十四周年纪念徽章
日期:2023-04-13 12:23:1015-16赛季CBA联赛之四川
日期:2023-07-25 16:53:45操作系统版块每日发帖之星
日期:2016-05-10 19:22:58
2 [报告]
发表于 2015-12-28 22:36 |只看该作者
怎么不用系统自带的呢???

论坛徽章:
5
NBA常规赛纪念章
日期:2015-05-04 22:32:03操作系统版块每日发帖之星
日期:2015-11-09 06:20:00操作系统版块每日发帖之星
日期:2015-11-10 06:20:00数据库技术版块每日发帖之星
日期:2016-01-14 06:20:00IT运维版块每日发帖之星
日期:2016-01-16 06:20:00
3 [报告]
发表于 2015-12-28 22:38 |只看该作者
回复 2# action08

在看视频时有此种步骤,所以想学习一下如何编译,发现自己的水平不行,所以就上网问一下,感谢。


   

论坛徽章:
5
NBA常规赛纪念章
日期:2015-05-04 22:32:03操作系统版块每日发帖之星
日期:2015-11-09 06:20:00操作系统版块每日发帖之星
日期:2015-11-10 06:20:00数据库技术版块每日发帖之星
日期:2016-01-14 06:20:00IT运维版块每日发帖之星
日期:2016-01-16 06:20:00
4 [报告]
发表于 2015-12-28 22:39 |只看该作者
./bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
通过这一句话,就知道缺少软件libaio,用yum install -y libaio软件,安装好了,没有出现此个问题,但是又出现新的问题:
[root@centos1 mysql]# ./scripts/mysql_install_db  --user=mysql --datadir=/data/mysql
WARNING: The host 'centos1' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
151225  8:54:34 [Note] ./bin/mysqld (mysqld 5.5.47) starting as process 1597 ...
OK
Filling help tables...
151225  8:54:34 [Note] ./bin/mysqld (mysqld 5.5.47) starting as process 1604 ...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h centos1 password 'new-password'

Alternatively you can run:
./bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd ./mysql-test ; perl mysql-test-run.pl

Please report any problems at http://bugs.mysql.com/

论坛徽章:
45
2016猴年福章徽章
日期:2016-02-18 16:42:24平安夜徽章
日期:2015-12-27 09:46:0315-16赛季CBA联赛之八一
日期:2015-12-15 17:08:23黄金圣斗士
日期:2015-12-11 09:16:31天蝎座
日期:2015-12-11 09:16:22戌狗
日期:2015-12-11 09:16:19程序设计版块每周发帖之星
日期:2015-12-11 09:15:21操作系统版块每周发帖之星
日期:2015-12-11 09:15:16IT运维版块每周发帖之星
日期:2015-12-11 09:15:09IT运维版块每月发帖之星
日期:2015-12-11 09:15:01CU十四周年纪念徽章
日期:2015-12-11 09:14:40操作系统版块每日发帖之星
日期:2015-12-11 09:13:36
5 [报告]
发表于 2015-12-29 09:56 |只看该作者
WARNING: The host 'centos1' could not be looked up with resolveip.

上面这个么?
把hostname   ip   写入/etc/hosts
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP