教程集 www.jiaochengji.com
教程集 >  数据库  >  mysql  >  正文 mysql 安装错误 Could not find ./bin/my_print_defaults解决办法

mysql 安装错误 Could not find ./bin/my_print_defaults解决办法

发布时间:2023-05-02   编辑:jiaochengji.com
教程集为您提供mysql 安装错误 Could not find ./bin/my,print,defaults解决办法等资源,欢迎您收藏本站,我们将为您提供最新的mysql 安装错误 Could not find ./bin/my,print,defaults解决办法资源
今天本人在linux下安装mysql时提示 Could not find ./bin/my_print_defaults,后来搜索了一些解决方法分离给大家,有碰到此类问题的朋友可参考。

错误提示

FATAL ERROR: Could not find ./bin/my_print_defaults
If you are using a binary release, you must run this script from
within the directory the archive extracted into. If you compiled
MySQL yourself you must run 'make install' first.

原因分析

如果用/usr/local/mysql/scripts/mysql_install_db --user=mysql


解决方法:

 [root@bogon scripts]# /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data &(这点非常重要)

您可能感兴趣的文章:
PDO连接数据报错could not find driver解决办法
安装MYSQL-PYTHON包报错mysql_config not found解决办法
mysql主从库不同步问题的一个解决方法
CentOS 6.2 yum 安装MySQL初始化警告错误的解决方法
WDCP面板系统安装mysqli扩展的方法
解决mysql主从不同的问题
解决:Could not resolve archetype org.apache.maven.archetypes
centos下mysql 5.6.13源码安装方法
php提示pdo_mysql未安装怎么办
mysql-bin权限问题导致mysql无法启动怎么办

[关闭]
~ ~