4 weeks ago

Cannot run database migrate command on new instance

Posted 4 weeks ago by cluel3ss

I have spun up a Droplet on DO using the LEMP stack to get my Laraval app up and running.

I am having some issues running the artisan migrate command. The following error is returned:


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

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

I do have MySQL installed on the server, I've verified by logging into it directly on the machine using terminal, I've also remotely connected to it (via SSH tunnel) on the TablePlus app.

I also have extension=pdo_mysql uncommented in my php.ini file also.

Please sign in or create an account to participate in this conversation.