找不到配置文件'' [英] Configuration file '' can not be found

查看:124
本文介绍了找不到配置文件''的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用mysql-server 5.5并创建了一个服务器实例.创建完成后,我尝试打开实例编辑器并在CONFIGURATION中选择Options File,但显示

I'm using mysql-server 5.5 and had created a server instance. After created I try to open the instance editor and select Options File in CONFIGURATION but it says

找不到配置文件".新文件将在上创建 应用更改

Configuration file '' can not be found. New file will be created on apply of changes

然后

配置文件不包含[]节,因此添加了一个新文件. 如果不正确,请在服务器中更正部分名称 实例编辑器,然后重新打开管理员.

Configuration file did not contain section [], so a new one was added. If that is not correct, please fix the section name in the Server Instance Editor and reopen the administrator.

但是我检查了一下,发现在/etc/mysql/my.cnf处有一个my.cnf.

But I have checked and see that I have a my.cnf at /etc/mysql/my.cnf.

这会导致我无法从Eclipse连接到数据库的问题.

This cause the problem I can't connect to my database from Eclipse.

所以问题是如何在mysql服务器上解决此问题,或者有没有办法为服务器实例设置配置文件?

So the question is how can I solve this on mysql-server or is there a way to set configuration file for server instance?

P/s:我正在使用Ubuntu 12.04

P/s: I'm using Ubuntu 12.04

更新

MySQL Workbench 5.2.38 推荐答案

假定MySQL Workbench,为MySQL连接定义MySQL配置文件的路径.为此:

Assuming MySQL Workbench, define the path to your MySQL configuration file for your MySQL connection. To do this:

  1. 打开Workbench进入主页
  2. 右键单击相应的MySQL连接图块,选择编辑连接"
  3. 选择系统配置文件"标签
  4. 设置配置文件",该文件应该是/etc/mysql/my.cnf
  5. 为方便起见,请单击测试连接"

现在,打开该MySQL连接将使用新配置的配置文件".

Now, opening that MySQL connection will use the newly configured "Configuration File".

这篇关于找不到配置文件''的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆