Running Task Rewrite tags to shortcodes

GET /dev/tasks/TagsToShortcodeTask

[Unknown Error] Uncaught PDOException: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected

GET /dev/tasks/TagsToShortcodeTask

Line 344 in /home/snorlax/public_html/vendor/silverstripe/framework/src/ORM/Connect/PDOConnector.php

Source

335         $this->databaseError($this->getLastError(), $errorLevel, $sql);
336         return null;
337     }
338 
339     public function query($sql, $errorLevel = E_USER_ERROR)
340     {
341         $this->beforeQuery($sql);
342 
343         // Directly query against connection
344         $statement = $this->pdoConnection->query($sql);
345 
346         // Generate results
347         if ($statement === false) {
348             $this->databaseError($this->getLastError(), $errorLevel, $sql);
349         } else {
350             return $this->prepareResults(new PDOStatementHandle($statement), $errorLevel, $sql);

Trace