Chirpy! 0.3 API Documentation
Chirpy::DataManager::MySQL
NAME
Chirpy::DataManager::MySQL - Data manager class, based on a MySQL backend
REQUIREMENTS
Apart from a proper Chirpy! installation, this module requires the following Perl modules:
Data::Dumper DBD::mysql DBI
In addition, it needs access to a server running MySQL version 4.1 or higher.
CONFIGURATION
This module uses the following values from your configuration file:
- mysql.hostname
-
The name of the server to use. In most cases, this will be
localhost
. - mysql.port
-
The port on which the MySQL server accepts connections. The default is
3306
. - mysql.username
-
The username to use for MySQL connections.
- mysql.password
-
The password to use for MySQL connections. Note that this password is readable if the user gains access to the file, and while Chirpy! takes precautions to make the configuration file inaccessible, it is also your responsibility to make sure that no one finds your password.
- mysql.database
-
The name of the MySQL database where Chirpy! will store its data.
- mysql.prefix
-
If your host only allows one database, Chirpy! can prefix its table names with a custom prefix, so you can easily distinguish them. For instance, if you set this value to
chirpy_
, the tables will be calledchirpy_quotes
,chirpy_news
, etc.
SESSIONS
This class fully implements Chirpy::UI::WebApp::Session::DataManager, which allows Chirpy::UI::WebApp to use sessions.
AUTHOR
Tim De Pauw <ceetee@users.sourceforge.net>
SEE ALSO
Chirpy::DataManager, Chirpy::UI::WebApp::Session::DataManager, Chirpy, http://chirpy.sourceforge.net/
COPYRIGHT
Copyright 2005-2007 Tim De Pauw. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.