wuyan94zl / city-linkage

中国城市数据关联管理查看
1 stars 0 forks source link

不支持laravel5.7? #1

Open lovecn opened 5 years ago

lovecn commented 5 years ago
[root@VM_0_14_centos blog]# php artisan vendor:publish --provider="Eachdemo\CityLinkage\CityServiceProvider"
Copied Directory [/vendor/eachdemo/city-linkage/database/migrations] To [/database/migrations]
Copied Directory [/vendor/eachdemo/city-linkage/database/seeds] To [/database/seeds]
Publishing complete.
[root@VM_0_14_centos blog]# php artisan migrate

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

  at /usr/share/nginx/html/blog/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")
      /usr/share/nginx/html/blog/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70

  2   PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=test", "root", "*SUsheng88*", [])
      /usr/share/nginx/html/blog/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70

  Please use the argument -v to see more details.

[root@VM_0_14_centos blog]# php artisan tinker
Psy Shell v0.9.9 (PHP 7.2.3 — cli) by Justin Hileman
>>> app()
=> Illuminate\Foundation\Application {#2
     configurationIsCached: false,
     environment: "local",
     environmentFile: ".env",
     isLocal: true,
     routesAreCached: false,
     runningUnitTests: false,
     version: "5.7.19",
     path: "/usr/share/nginx/html/blog/app",
     basePath: "/usr/share/nginx/html/blog",
     configPath: "/usr/share/nginx/html/blog/config",
     databasePath: "/usr/share/nginx/html/blog/database",
     langPath: "/usr/share/nginx/html/blog/resources/lang",
     publicPath: "/usr/share/nginx/html/blog/public",
     storagePath: "/usr/share/nginx/html/blog/storage",
     bootstrapPath: "/usr/share/nginx/html/blog/bootstrap",
   }
wuyan94zl commented 5 years ago

支持的,试试 composer dump-autoload