zoukankan      html  css  js  c++  java
  • mysql 5.5.32 多实例环境的启动问题

      [root@localhost scripts]# /bin/sh mysql_install_db --user=mysql --dasedir=/application/mysql --datadir=ar/webdb/3307/data

    FATAL ERROR: Could not find ./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.

    另外有一个问题,有点相似,当我在apache主机上使用mysql 5.5.54 二进制包时,在 /bin/sh mysql_install_db时同样出现这个问题,唯独是没有./bin
    后来查看了一下mysql.server的代码,发现二进制包的 --basedir 应该直接写安装包目录(因为本身就是安装好的),也可以不写,因为--basedir只有在编译安装时才会用到

    FATAL ERROR: Could not find my_print_defaults
  • 相关阅读:
    迭代器概念与traits编程技法
    C++模板的特化与偏特化
    c++ operator关键字
    cookie-小总结吧
    ping
    git
    setTimeout()基础/setInterval()基础
    SASS
    命令行编译sass
    sublime添加sass编译
  • 原文地址:https://www.cnblogs.com/wajika/p/6246702.html
Copyright © 2011-2022 走看看