Quantcast
Channel: MySQL Forums - MySQL Workbench
Viewing all articles
Browse latest Browse all 3737

perm denied on my.cnf on lion (1 reply)

$
0
0
I tried following the instructions from here http://mysql4all.wordpress.com/2010/09/11/all-gui-mysql-on-mac/, which I found in one of the stickies. I downloaded and installed MySQL 5.5.24 using the dmg distribution, then grabbed v5.2 of Workbench. When I try to create a new server instance I use the default settings and get to the Testing Host Machine Settings screen and it fails with a permission denied error on the config file

**********
What check_admin_commands/local
Checking command 'ps xa | grep "/usr/local/mysql/bin/[m]ysqld"'
Server detected as stopped
What find_config_file/local
Check if /etc/my.cnf can be accessed
File was found at the expected location
Check if section for instance mysqld exists in /etc/my.cnf
Traceback (most recent call last):
File "/Applications/MySQLWorkbench.app/Contents/PlugIns/wb_admin_grt.py", line 424, in testInstanceSettingByName
if check_if_config_file_has_section(open(config_file, "r"), section):
IOError: [Errno 13] Permission denied: '/etc/my.cnf'
Operation failed: error calling WbAdmin.testInstanceSettingByName: see output for details
**********


The config file has the permissions


-rw------- 1 root wheel 9 May 28 11:34 my.cnf


and the contents

[mysqld]


and nothing else.

If I hit continue, I get the Review Server Instance Settings screen with the output

***********
Remote management is disabled

MySQL Configuration
MySQL Version: 5.1
Settings Template: MacOS X (MySQL Package)
Path to Configuration File: /etc/my.cnf
Instance Name in Configuration File: mysqld

Commands for MySQL Management
Start MySQL: /usr/local/mysql/support-files/mysql.server start
Stop MySQL: /usr/local/mysql/support-files/mysql.server stop
Check status: ps xa | grep "/usr/local/mysql/bin/[m]ysqld"
Use sudo: Yes
***********

As an aside, I'm not sure why it is reporting 5.1, I have 5.5 installed :

$ ls -l /usr/local
total 8
drwxr-xr-x 8 root wheel 272 Aug 8 2011 git
lrwxr-xr-x 1 root wheel 27 May 28 11:04 mysql -> mysql-5.5.24-osx10.6-x86_64
drwxr-xrwx 16 root wheel 544 May 28 11:04 mysql-5.5.24-osx10.6-x86_64


Can someone tell me what I need to tweak to get this to work please?

Viewing all articles
Browse latest Browse all 3737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>