Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Config::MySQL::Writer(User Contributed Perl DocumentatConfig::MySQL::Writer(3)

NAME
       Config::MySQL::Writer - Write MySQL-style configuration files

VERSION
       Version 0.01

SYNOPSIS
       If $config contains

	   {
	       'mysqld'	=> {
		   'datadir'	  => '/var/lib/mysql',
		   'skip-locking' => undef,
	       },
	       'mysqldump' => {
		   'quick'		=> undef,
		   'max_allowed_packet'	=> '16M',
	       },
	       '_' => {
		   '!include' => [
		       '/etc/my_extra.cnf',
		       '/etc/my_other.cnf',
		   ],
		   '!includedir' => [
		       '/etc/my.cnf.d',
		   ],
	       },
	   }

       Then when your program contains

	   my $config =	Config::MySQL::Writer->write_file( $config, 'my.cnf' );

       my.cnf will contain
	   !include /etc/my_extra.cnf
	   !include /etc/my_other.cnf
	   !includedir /etc/my.cnf.d

	   [mysqld]
	   datadir=/var/lib/mysql
	   skip-locking

	   [mysqldump]
	   quick
	   max_allowed_packet =	16M

DESCRIPTION
       This module extends Config::INI::Writer to support writing MySQL-style
       configuration files.  Although deceptively similar to standard ".INI"
       files, they can include bare boolean options with no value assignment
       and additional features like "!include" and "!includedir".

METHODS	FOR WRITING CONFIG
   write_file, write_string, and write_handle
       See "METHODS FOR	WRITING	CONFIG"	in Config::INI::Writer for usage
       details.

OVERRIDDEN METHODS
   stringify_value_assignment
       Copes with MySQL-style include directives and boolean properties	that
       have no value assignment

SEE ALSO
       Config::INI
       MySQL::Config
       Config::Extend::MySQL

AUTHOR
       Iain Arnell, "<iarnell at gmail.com>"

BUGS
       Please report any bugs or feature requests to "bug-config-ini-mysql at
       rt.cpan.org", or	through	the web	interface at
       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Config-MySQL>.  I will
       be notified, and	then you'll automatically be notified of progress on
       your bug	as I make changes.

SUPPORT
       You can find documentation for this module with the perldoc command.

	   perldoc Config::MySQL::Writer

       You can also look for information at:

       o   RT: CPAN's request tracker

	   <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Config-MySQL>

       o   AnnoCPAN: Annotated CPAN documentation

	   <http://annocpan.org/dist/Config-MySQL>

       o   CPAN	Ratings

	   <http://cpanratings.perl.org/d/Config-MySQL>

       o   Search CPAN

	   <http://search.cpan.org/dist/Config-MySQL/>

ACKNOWLEDGEMENTS
       Thanks to Ricardo Signes	for Config-INI.

COPYRIGHT & LICENSE
       Copyright 2010 Iain Arnell.

       This program is free software; you can redistribute it and/or modify it
       under the terms of either: the GNU General Public License as published
       by the Free Software Foundation;	or the Artistic	License.

       See http://dev.perl.org/licenses/ for more information.

perl v5.32.0			  2010-04-01	      Config::MySQL::Writer(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | METHODS FOR WRITING CONFIG | OVERRIDDEN METHODS | SEE ALSO | AUTHOR | BUGS | SUPPORT | ACKNOWLEDGEMENTS | COPYRIGHT & LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Config::MySQL::Writer&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help