TYPO3 can’t find your database?

Has anybody problems to install the content management system TYPO3?
Your database cannot be found? Then try the following hack:

Change in the file /typo3/sysext/install/mod/class.tx_install.php the function getDatabasList() from this

function getDatabaseList() {
$dbArr=array();
if ($result = $GLOBALS['TYPO3_DB']->sql_pconnect(TYPO3_db_host, TYPO3_db_username, TYPO3_db_password)) {
$dbArr = $GLOBALS['TYPO3_DB']->admin_get_dbs();
}
return $dbArr;
}

into this

function getDatabaseList() {
$dbArr=array("DATABASE_NAME");
//if ($result = $GLOBALS['TYPO3_DB']->sql_pconnect(TYPO3_db_host,
// TYPO3_db_username, TYPO3_db_password))
//{
//$dbArr = $GLOBALS['TYPO3_DB']->admin_get_dbs();
//}
return $dbArr;
}

Run your script again and tell me if it worked ;)

DeliciousDiggTechnorati FavoritesRedditLinkedInFacebookSpurlTwitterWebnewsYiGGMySpaceYahoo BookmarksFriendFeedGoogle BookmarksLiveJournalShare

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>