我一直试图使用UbuntuServer16.04.1设置一个小型虚拟开发环境,并且在为my.cnf编辑MySQL文件时遇到了困难。运行sudoedit /etc/mysql/my.cnf将返回sudoedit: /etc/mysql/my.cnf: editing symbolic links is not permitted。没问题,我运行了readlink /etc/mysql/my.cnf,它给了我/etc/alternatives/my.cnf的位置。所以我运行了sudoedit /etc/alternatives/my.cnf,它告诉我sudoedit: /etc/alternatives/my.cnf: editing symbolic links is not permitted。在使用readlink /etc/alternatives/my.cnf读取该文件的链接时,它将我带回到/etc/mysql/my.cnf。是因为我把事情安排得不恰当吗?还是一只虫子?
发布于 2016-09-05 17:29:33
根据我们在评论中的讨论:
我认为您要编辑的文件是/etc/mysql/conf.d/mysql.cnf。
干杯,阿尔
https://askubuntu.com/questions/821289
复制相似问题