[SOLVED] Database migration fails for manual installation on Windows 10 #1802

Closed
opened 2026-02-05 01:55:35 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @ZenaMel on GitHub (Jul 24, 2020).

This is more of small guide for those who have problems getting their local wamp/xamp powered server hooked up with the laravel instance.

The problem was solveable for me by changing my global php.ini extensions config and uncommenting the line containing

extension=pdo_mysql

Thought I might share this here since I saw a couple threads about this. Might be worth putting into the official docs.

Trace

      Illuminate\Database\QueryException  : could not find driver (SQL: select * from information_schema.tables where table_schema = books and table_name = migrations and table_type = 'BASE TABLE')

  at D:\WAMP\www\BookStack\vendor\laravel\framework\src\Illuminate\Database\Connection.php:669
         // If an exception occurs when attempting to run a query, we'll format the error
         // message to include the bindings with SQL, which will make this exception a
         // lot more helpful to the developer instead of just the database's errors.
         catch (Exception $e) {
               throw new QueryException(
                 $query, $this->prepareBindings($bindings), $e
             );
         }
 

  1   Doctrine\DBAL\Driver\PDOException::("could not find driver")
      D:\WAMP\www\BookStack\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:31

  2   PDOException::("could not find driver")
      D:\WAMP\www\BookStack\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:27

  1   Doctrine\DBAL\Driver\PDOException::("could not find driver")
      D:\WAMP\www\BookStack\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:31

  2   PDOException::("could not find driver")
      D:\WAMP\www\BookStack\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:27
Originally created by @ZenaMel on GitHub (Jul 24, 2020). This is more of small guide for those who have problems getting their local wamp/xamp powered server hooked up with the laravel instance. The problem was solveable for me by changing my global php.ini extensions config and uncommenting the line containing `extension=pdo_mysql` Thought I might share this here since I saw a couple threads about this. Might be worth putting into the official docs. #### Trace ```php Illuminate\Database\QueryException : could not find driver (SQL: select * from information_schema.tables where table_schema = books and table_name = migrations and table_type = 'BASE TABLE') at D:\WAMP\www\BookStack\vendor\laravel\framework\src\Illuminate\Database\Connection.php:669 // If an exception occurs when attempting to run a query, we'll format the error // message to include the bindings with SQL, which will make this exception a // lot more helpful to the developer instead of just the database's errors. catch (Exception $e) { throw new QueryException( $query, $this->prepareBindings($bindings), $e ); } 1 Doctrine\DBAL\Driver\PDOException::("could not find driver") D:\WAMP\www\BookStack\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:31 2 PDOException::("could not find driver") D:\WAMP\www\BookStack\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:27 1 Doctrine\DBAL\Driver\PDOException::("could not find driver") D:\WAMP\www\BookStack\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:31 2 PDOException::("could not find driver") D:\WAMP\www\BookStack\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:27 ```
Author
Owner

@ZenaMel commented on GitHub (Jul 24, 2020):

Created PR referencing this issue

@ZenaMel commented on GitHub (Jul 24, 2020): Created [PR](https://github.com/BookStackApp/website/pull/62) referencing this issue
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1802