我正在尝试在 ubuntu 12.10 中安装 mysql。从http://dev.mysql.com/downloads/mysql/下载了“MySQL-5.6.12-1.linux_glibc2.5.i386.rpm-bundle” 。提取它并尝试使用rpm -i MySQL-server-5.6.12-1.linux_glibc2.5.i386. 既然不可能,就用sudo alien -i MySQL-server-5.6.12-1.linux_glibc2.5.i386。对目录 MySQL-5.6.12-1.linux_glibc2.5.i386.rpm-bundle 中的所有其他文件执行相同操作。然后在终端中尝试“mysql”命令,但它显示错误
强调文本
mysql: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 2 - No such file or directory)Fatal error in defaults handling. Program aborted
检查 /etc/mysql 目录。里面唯一的文件是 my.cnf 内容:
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One …Run Code Online (Sandbox Code Playgroud)