+ -
当前位置:首页 → 问答吧 → 如何将 mysql 软件包彻底删除干净?

如何将 mysql 软件包彻底删除干净?

时间:2011-01-05

来源:互联网

OS:kubuntu 10.04 LTS
数据库:mysql-5.1.54 源代码包
说明:我是按照mysql官网上的指导来操作的。只是添加了 -with-charset=utf8

编译时的配置
./configure --prefix=/opt/mysql --with-charset=utf8
cp /mysql源代码目录/support-files/my-medium.cnf.sh /etc/my.cnf ##找过N遍了,没有my-medium.cnf文件。而且sudo ./my-medium.cnf.sh也不行。报错。错误:没有这个命令(文件)

bin/mysql_install_db --user=mysql ##出错。 sudo ./mysql_insall_db --user= mysql 也报同样的错。
Neither host 'workingroom' nor 'localhost' could be looked up with /usr/bin/resolveip. #找不到主机名或者主机。
pleases configure the 'hostname' command to return a correct hostname. #重新配置主机
if you want to solve this at a later stage,restart this script with the --force option # 如果你想XXXX,重新配置脚本,使用 --force 选项。
说明:本人E文不好,根据google在线翻译和N年的经验,翻译的错误信息。正确与否,不关心。解决问题才是重要的。

如何搞定 mysql_install_db --user=mysql 时候的错误?

作者: flycatcn   发布时间: 2011-01-05