FATAL ERROR Could not find mysqld

 Jacky-xu1992 发布于 2022-11-08 07:15

安装mysql-5.5.29-linux2.6-i686
按照http://dev.mysql.com/doc/refman/5.1/z...,到

root@Tony-Laptop-Ubuntu:/usr/src/mysql/mysql# scripts/mysql_install_db --user=mysql

FATAL ERROR: Could not find mysqld

The following directories were searched:

    /usr/libexec
    /usr/sbin
    /usr/bin

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.

请问如何解决?

1 个回答
  • 试试这个:

    scripts/mysql_install_db --user=USERNAME --basedir=/usr/local/mysql

    // --user 为你所使用的用户名
    // --basedir 为 mysql 安装目录

    -----------------------------
    出现:FATAL ERROR: Could not find my_print_defaults 可以试试下面的命令:

    /usr/local/mysql/scripts/mysql_install_db --defaults-file=/etc/my.cnf --basedir=/usr/local/mysql --datadir=/mnt/mysql --user=USERNAME
    2022-11-12 01:42 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有