qas112 2015-08-18 01:41 采纳率: 0%
浏览 3127

编译安装mysql出现问题,求大神指点

编译安装MySQL时出现如下问题
自己是wins64 位的系统的VMware虚拟机中安装mysql版本是 mysql-5.5.28-linux2.6-x86_64.tar.gz
mysql用户和mysql权限属主属组都修改成mysql.mysql了执行scripts/mysql_install_db 出现问题:
[root@localhost mysql]# scripts/mysql_install_db --user=mysql --datadir=/mydata/data/
scripts/mysql_install_db: line 249: ./bin/my_print_defaults: cannot execute binary file
Neither host 'localhost.localdomain' nor 'localhost' could be looked up with
./bin/resolveip
Please configure the 'hostname' command to return a correct
hostname.
If you want to solve this at a later stage, restart this script
with the --force option

  • 写回答

2条回答 默认 最新

  • JasonWcx 2015-08-18 01:50
    关注

    没有正确配置主机名
    /etc/sysconfig/network
    HOSTNAME=hostname(改成自己的主机名)

    /etc/hosts至少会有如下一句
    127.0.0.1 hostname(改成自己的主机名) localhost.localdomain localhost

    评论

报告相同问题?

悬赏问题

  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用