Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to migrate database #12

Open
harrychengly opened this issue Jun 6, 2018 · 1 comment
Open

Unable to migrate database #12

harrychengly opened this issue Jun 6, 2018 · 1 comment

Comments

@harrychengly
Copy link

Hi, I am trying to migrate the database but however i encountered this problem:

"Illuminate\Database\QueryException : could not find driver (SQL: select * from information_schema.tables where table_schema = 2ndshoe and table_name = migrations)

at C:\xampp\htdocs\2ndshoeapp\vendor\laravel\framework\src\Illuminate\Database\Connection.php:664
660| // If an exception occurs when attempting to run a query, we'll format the error
661| // message to include the bindings with SQL, which will make this exception a
662| // lot more helpful to the developer instead of just the database's errors.
663| catch (Exception $e) {

664| throw new QueryException(
665| $query, $this->prepareBindings($bindings), $e
666| );
667| }
668|

Exception trace:

1 PDOException::("could not find driver")
C:\xampp\htdocs\2ndshoeapp\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:68

2 PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=2ndshoe", "root", "", [])
C:\xampp\htdocs\2ndshoeapp\vendor\laravel\framework\src\Illuminate\Database\Connectors\Connector.php:68

Please use the argument -v to see more details."

I tried to look up the drivers (;extension=php_pdo.dll and ;extension=php_pdo_mysql.dll) on my php.ini but couldn't find them. I uninstalled xampp and reinstalled again and the extension still isn't there.

I was wondering if its not the extension's problem but something else?
Really appreciate if anyone could help me with this!!

@fitwist
Copy link

fitwist commented Apr 1, 2019

It worked for the following development environment:
macOS 10.14.3, Laravel 5, XAMPP 7.1.27

– find config.inc.php. For my macOS, e.g. I need to 'cd Applications\xampp\phpMyAdmin'
– copy master username and password from the file and paste it into .env and error should be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants