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() {
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() {
//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 ;)


  1. Brett

    yes. it did. thank you.
    i thought i was going nuts.

  2. Whenever you upload a photo to Flickr, you have got to describe it. There are lots of companies providing call center services. EBook writers and publishers extensively use the social networking platform on account of the e – Books’ dependence on good exposure.

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>