MySQL 5.6安装在debian错误上:

时间:2013-08-23 15:43:09

标签: mysql debian

我正在尝试在Debian上安装MySQL 5.6。

我在这做什么:

sudo dpkg -i mysql-5.6.12-debian6.0-i686.deb
cd /usr/local
ln -s /opt/mysql/server-5.6 mysql
cd mysql
scripts/mysql_install_db.sh --user=mysql --datadir=/var/lib/mysql

这是我得到的错误:

FATAL ERROR: Could not find @bindir@/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.
你可以建议吗?我正在从头开始安装MySQL(之前的版本已被完全删除)。

感谢。

1 个答案:

答案 0 :(得分:1)

我可能无法帮助解决您遇到的错误。但apt-get install -f mysql-server-5.5在Debian Wheezy为我工作。尝试用5.6替换5.5并查看它是否也能正常工作,并且可能在sudo之前。