#Unable to run "php artisan migrate"

7 messages · Page 1 of 1 (latest)

stoic quest
#

PHP Warning: Module "pdo_mysql" is already loaded in Unknown on line 0

Warning: Module "pdo_mysql" is already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo_mysql.so' (tried: C:\xampp\php\ext\php_pdo_mysql.so (The specified module could not be found), C:\xampp\php\ext\php_php_pdo_mysql.so.dll (The specified module could not be found)) in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library 'php_pdo_mysql.so' (tried: C:\xampp\php\ext\php_pdo_mysql.so (The specified module could not be found), C:\xampp\php\ext\php_php_pdo_mysql.so.dll (The specified module could not be found)) in Unknown on line 0

Illuminate\Database\QueryException

could not find driver (Connection: pgsql, SQL: select * from information_schema.tables where table_catalog = postgres and table_schema = public and table_name = migrations and table_type = 'BASE TABLE')

at vendor\laravel\framework\src\Illuminate\Database\Connection.php:829
825▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
826▕ );
827▕ }
828▕
➜ 829▕ throw new QueryException(
830▕ $this->getName(), $query, $this->prepareBindings($bindings), $e
831▕ );
832▕ }
833▕ }

1 vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:65
PDOException::("could not find driver")

2 vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:65
PDO::

valid karma
#

please revoke the credentials, you seem to expose the username and password

#

The warning message saying the mysql driver had been enabled, you don't have to enable it again. while the error is you haven't enabled the driver, you are using postgres, which mean you should enable the pdo_pgsql instead

stoic quest
#

@valid karma Thank you bro

valid karma