Displaying 4 results from an estimated 4 matches for "db_pass".
2005 Sep 13
1
populating asterisk realtime tables from configfiles
Here is my file to parse and load extensions. No wise cracks about my
code....
DB.php is the Pear DB module. (pear.php.net)
<?php
include('DB.php');
$db_host = '';
$db_name = '';
$db_login = '';
$db_pass = '';
$db_table = 'extensions_table';
define(DBINFO,"mysql://$db_login:$db_pass@$db_host/$db_name");
$db = DB::CONNECT(DBINFO);
if(!DB::isError($db)) {
//we got the db connection
$extensions = file('extensions.conf');
foreach($extension...
2008 Feb 11
9
Storeconfigs purge Perl
...#39;'s storeconfigs database.
# Use when a host is removed from the Puppet network forcibly
# Alternatives: run puppet on host to be removed with a blank manifest (node blah {})
#
use DBI;
my $dsn = ''DBI:mysql:database_server_here'';
my $db_user = ''root'';
my $db_pass = ''xxx'';
my $dbh = DBI->connect($dsn, $db_user, $db_pass);
my $query;
if (($#ARGV + 1) ne 1) {
print "Fail.\n";
print "Usage: $ARGV[0] host_name\n";
}
else {
my $result;
print "Delete from hosts table. Affected rows: ";
$result = $...
2007 Nov 23
2
Bugzilla Install problems - need last mile help
...MySQL is not running.
* MySQL is running, but there is a problem either in the
server configuration or the database access rights. Read the Bugzilla
Guide in the doc directory. The section about database configuration
should help.
* Your password for the 'bugs' user, specified in $db_pass, is
incorrect, in './localconfig'.
* There is a subtle problem with Perl, DBI, or MySQL. Make
sure all settings in './localconfig' are correct. If all else fails, set
'$db_check' to 0.
[root at localhost bugzilla]#
What do I need to do next? I tried creating an...
2011 Aug 17
3
Using back-ported create_resources in 2.6.x
Does anyone have some examples of using this create_resources
function, https://github.com/puppetlabs/puppetlabs-create_resources,
? Based on the README example I can''t figure out exactly how to
change from using defines to using this function. Maybe I
misunderstand the purpose of create_resources...is it to replace
defines, or is it to allow ENCs (for example) to use a define?
Below