add configtest option to mysql rc script

Bug #309251 reported by Gena01
2
Affects Status Importance Assigned to Milestone
OurDelta
Fix Released
Wishlist
Cafuego

Bug Description

Is it possible to add "configtest" option to rc script to validate the configuration file without having to restart mysqld.

I've seen similar functionality in some rc scripts (apache comes to mind).

Revision history for this message
Gena01 (gena01) wrote :
Revision history for this message
Cafuego (cafuego) wrote :

apache does this by calling a distributed binary - apachectl - which parses the config file.

There is not currently such a utility for mysql and as far as I can tell there is no parameter for the server binary to simply parse the my.cnf file and then exit.

Revision history for this message
Cafuego (cafuego) wrote :

Ok, my desktop mysqld was too old. I've started work on the shipped init script and the debian/ubuntu one.

Changed in ourdelta:
assignee: nobody → cafuego
importance: Undecided → Wishlist
status: New → In Progress
Revision history for this message
Arjen Lentz (arjen-lentz) wrote : Re: [Ourdelta-developers] [Bug 309251] Re: add configtest option to mysql rc script

On 19/12/2008, at 10:26 AM, Cafuego wrote:
> apache does this by calling a distributed binary - apachectl - which
> parses the config file.
>
> There is not currently such a utility for mysql and as far as I can
> tell
> there is no parameter for the server binary to simply parse the my.cnf
> file and then exit.

mysqld --help --verbose
generally barfs appropriately when it can't parse the my.cnf

But since usually mysqld_safe starts it, it's not quite identical to a
normal startup.

> --
> add configtest option to mysql rc script
> https://bugs.launchpad.net/bugs/309251
> You received this bug notification because you are a member of
> OurDelta-
> developers, which is the registrant for OurDelta.
>
> Status in OurDelta - Builds for MySQL: New
>
> Bug description:
> Is it possible to add "configtest" option to rc script to validate
> the configuration file without having to restart mysqld.
>
> I've seen similar functionality in some rc scripts (apache comes to
> mind).

--
Arjen Lentz, Director @ Open Query (http://openquery.com.au)
MySQL Training from $475/day, DBA/Support from $249/month

My blog is at http://arjen-lentz.livejournal.com
OurDelta: free enhanced builds for MySQL @ http://ourdelta.org

Revision history for this message
Cafuego (cafuego) wrote :

It would be good if someone could try the fix on an RPM based distro; grab at least r47 of the ~cafuego/ourdelta/ourdelta-configtest

'invoke-rc.d mysql configtest' works fine on my Ubuntu box now, but that doesn't use the shipped initscript.

Changed in ourdelta:
status: In Progress → Fix Committed
Cafuego (cafuego)
Changed in ourdelta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.