Thread:Project:Support desk/Can't upgrade (xampp)

Hi,

When I run maintenance/update.php, I get the error "DatabaseBase::factory no viable database extension found for type 'mysql'":

mywiki/maintenance$ php update.php MediaWiki 1.24.1 Updater

[1c0b983f] [no req]  Exception from line 890 of /opt/lampp/htdocs/mywiki/includes/db/Database.php: DatabaseBase::factory no viable database extension found for type 'mysql' Backtrace:
 * 1) 0 /opt/lampp/htdocs/mywiki/includes/db/LoadBalancer.php(737): DatabaseBase::factory(string, array)
 * 2) 1 /opt/lampp/htdocs/mywiki/includes/db/LoadBalancer.php(610): LoadBalancer->reallyOpenConnection(array, boolean)
 * 3) 2 /opt/lampp/htdocs/mywiki/includes/db/LoadBalancer.php(490): LoadBalancer->openConnection(integer, boolean)
 * 4) 3 /opt/lampp/htdocs/mywiki/includes/GlobalFunctions.php(3632): LoadBalancer->getConnection(integer, array, boolean)
 * 5) 4 /opt/lampp/htdocs/mywiki/maintenance/update.php(136): wfGetDB(integer)
 * 6) 5 /opt/lampp/htdocs/mywiki/maintenance/doMaintenance.php(101): UpdateMediaWiki->execute
 * 7) 6 /opt/lampp/htdocs/mywiki/maintenance/update.php(206): require_once(string)
 * 8) 7 {main}

I searched in other threads, and didn't understand where the error comes from: my PHP version is 5.5.9-1ubuntu4.9 (so I guess it's ok), and my wiki works hosted on localhost works fine. So, how can I upgrade my MediaWiki version?