2013-08-23 53 views
1

我试图在Debian上安装MySQL 5.6。MySQL 5.6安装在debian上ERROR:

这里我做什么:

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 @[email protected]/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

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