]> andersk Git - sql.git/blame - web/tools/list_dbs.php
daily_afs_backups only dumps databases with changes since last dump; moved to /srv
[sql.git] / web / tools / list_dbs.php
CommitLineData
65303177
JP
1<?php
2
3require_once('mysql.inc.php');
4
5$res = @mysql_connect($i_h,$i_u,$i_p);
6!is_resource($res) && die($_MYSQL_TOOLS_ERROR['LOGIN_ERROR']);
7$r = mysql_list_dbs($res);
8$dbs = array();
9while($row = mysql_fetch_row($r)) {
10 $dbs[] = array_shift($row);
11}
12echo implode("\n",$dbs);
13
14?>
This page took 0.03952 seconds and 5 git commands to generate.