求 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图片

在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 进入指令

http://blog.csdn.net/ownfire/article/details/7885454

怎么安装的数据库,如果是源码,你需要make install后,把路径添加到系统路径中。
如果想简单就要包管理器安装,yum等,这样就会自动安装到系统路径。