开发者社区> 问答> 正文

求 Linux mysql初始化数据库报错

could not find my_print_defaults 
the following directories were searched:
/usr/local/mysql/bin
/usr/local/mysql/extra
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 pointingto that location

screenshot

展开
收起
杨冬芳 2016-07-12 13:46:27 2448 0
1 条回答
写回答
取消 提交回答
  • IT从业

    在linux 里面安装mysql 需要注意安装文件mysql是否符合linux版本, 下面是安装步骤:

    //********************* linux mysql 数据库安装 *********************************************
    http://note.youdao.com/share/?id=9e1a469d7f1946c1c24b426377d79ef9&type=note -- 这是个安装步骤的详细笔记文档

    mkdir

    查看当前安装的linux版本: lsb_release -a  

    mysql 安装在哪 ps -ef|grep mysql

    mysql -uroot -p 进入指令

    怎么安装的数据库,如果是源码,你需要make install后,把路径添加到系统路径中。
    如果想简单就要包管理器安装,yum等,这样就会自动安装到系统路径。http://blog.csdn.net/ownfire/article/details/7885454
    
    2019-07-17 19:54:51
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
搭建电商项目架构连接MySQL 立即下载
搭建4层电商项目架构,实战连接MySQL 立即下载
PolarDB MySQL引擎重磅功能及产品能力盛大发布 立即下载