tool to check the validity of my.cnf file

This is a discussion on tool to check the validity of my.cnf file within the MySQL Database forums, part of the Database Forums category; just wondering if there is any such tool to check the validate and sanify the my.cnf file for mysqld.. ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-23-2008
Nikhil
 
Posts: n/a
Default tool to check the validity of my.cnf file

just wondering if there is any such tool to check the validate and
sanify the my.cnf file for mysqld.. I have made n number of updates to
my.cnf and I want to check before restarting the mysql and further fall
into troubles.

Nikhil
Reply With Quote
  #2 (permalink)  
Old 04-23-2008
Gordon Burditt
 
Posts: n/a
Default Re: tool to check the validity of my.cnf file

>just wondering if there is any such tool to check the validate and
>sanify the my.cnf file for mysqld.. I have made n number of updates to
>my.cnf and I want to check before restarting the mysql and further fall
>into troubles.


mysqld --help seems to do this fairly well. If I put in an invalid
option (spelled wrong, for instance) in /etc/my.cnf, I get an error
message about it.

It may not check consistency of options, or that all the cache
options specified require memory that the server can actually get
when it starts up. It does seem good for syntax errors and funny
stuff in values.

Reply With Quote
  #3 (permalink)  
Old 04-23-2008
Nikhil
 
Posts: n/a
Default Re: tool to check the validity of my.cnf file

Gordon Burditt wrote:
>> just wondering if there is any such tool to check the validate and
>> sanify the my.cnf file for mysqld.. I have made n number of updates to
>> my.cnf and I want to check before restarting the mysql and further fall
>> into troubles.

>
> mysqld --help seems to do this fairly well. If I put in an invalid
> option (spelled wrong, for instance) in /etc/my.cnf, I get an error
> message about it.
>
> It may not check consistency of options, or that all the cache
> options specified require memory that the server can actually get
> when it starts up. It does seem good for syntax errors and funny
> stuff in values.
>

Thanks Gordon, it is interesting to know.

[Actually I was expecting some sort of what apachectl with configtest
does for apache or xmllint or morever svccfg validate for SMF in Solaris. ]

Cheers,
Nikhil
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0