recca0120 / laravel-erd

Laravel ERD automatically generates Entity-Relationship Diagrams from your Laravel models and displays them using erd-editor.
MIT License
197 stars 8 forks source link

i use mysql and have error : could not find driver (Connection: mysql, SQL: PRAGMA foreign_keys = ON;) #4

Open trihai306 opened 1 week ago

trihai306 commented 1 week ago

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::__construct("sqlite::memory:", "root", Object(SensitiveParameterValue), [])

recca0120 commented 1 week ago

when generate erd, this package will change database to sqlite. install sqlite extension can fix this issue