php - No database selected error - symfony pimcore 11 - Stack Overflow

admin2025-04-18  4

I am upgraded my pimcore 10 to pimcore 11 then using symfony 5.

My problem is when I am running this command

php ./bin/console pimcore:bundle:install PimcoreAdminBundle

I am experiencing this error

ERROR] An exception occurred while executing a query: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected

My database.yaml

doctrine:
  dbal:
    connections:
      default:
        host: localhost
        port: 3306
        user: pmdr_user
        password: password123
        dbname: pomodoro
        mapping_types:
          enum: string
          bit: boolean
        server_version: 10.5.27-MariaDB
转载请注明原文地址:http://anycun.com/QandA/1744928312a89613.html