当前位置:Gxlcms > 数据库问题 > scripts/mysql_install_db报错原因分析和解决

scripts/mysql_install_db报错原因分析和解决

时间:2021-07-01 10:21:17 帮助过:25人阅读

/mysql_install_db: line 249: ./bin/my_print_defaults: cannot execute binary file
  • Neither host ‘a.com‘ 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
  • 发现是32位的平台使用了64位的二进制包。
    2、WARNING: The host ‘a.com‘ could not be looked up with resolveip.本来使用的是在/etc/hosts中本机IP a.com,主机名不规范,导致错误,改为www.a.com,测试OK
    3、./bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
    查找libaio相关rpm
    1. yum list all libaio*
    2. libaio.i686                                                      0.3.107-10.el6                                                @cdrom
    3. libaio-devel.i686                                                0.3.107-10.el6 
    安装所需的包yum install libaio libaio-devel
    测试OK

    来自为知笔记(Wiz)

    scripts/mysql_install_db报错原因分析和解决

    标签:二进制   mysql   通用   

    人气教程排行