install script bug

Please report bugs here!

Moderator: Thorsten

Post Reply
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

install script bug

Post by jazcyk » Sat Jun 07, 2008 6:35 pm

Installing 2.5.0 alpha on Windows Vista, Apache 2.2, PHP 5.2.6, MySQL 5.0.51b returns MySQL error 'no database selected'.

Hardcoding USE stmt as first SQL statement in mysqli.sql.php like this

$uninst[] = "DROP TABLE ".$sqltblpre."faqvoting";
$query[] = "use faq"; // this was the one!
$query[] = "CREATE TABLE ".$sqltblpre."faqadminlog ( // ..etc

.. solves the issue.

Post Reply