我使用apt-get install mysql-server在我的Ubuntu服务器上安装了mysql-server-5.1,但是我找不到my.cnf文件。
它不在/etc/mysql 。 在/etc/mysql我只有:
conf.d \-mysqld_safe_syslog.cnf debian-start sebian.cnf
我曾尝试卸载/安装MySQL多次,但仍然没有。
另外,安装mysql时,我得到这样的消息:(我已经安装了dialog )
debconf: unable to initialize frontend: Dialog debconf: (TERM is not set, so the dialog frontend is not usable.) debconf: falling back to frontend: Readline
您可以从/usr/share/doc/mysql-server-5.1/examples/复制一个。 将其重命名为my.cnf并放入my.cnf
和关于dialog ,设置你的TERM环境variables。
编辑:有时my.cnf位于/ etc目录中。
/etc/my.cnf中
如果你安装了mysql-server,它应该已经安装了包含该文件的mysql-common。 我猜测那个安装失败了,磁盘空间不足,无论什么原因中断。
apt-get --reinstall install mysql-common
这是mysql-server-5.1的前提
如果出现错误,请尝试:
dpkg --reconfigure -a
要么
apt-get -f install