How to use sqlite database on symfony2 project?

前端 未结 5 1247
温柔的废话
温柔的废话 2020-12-29 05:14

In a Symfony2 project, you can configure the databases connections at the app/config/parameters.ini file. Documentation states that you can use, among others, sqlite3 PDO dr

5条回答
  •  孤独总比滥情好
    2020-12-29 05:54

    In my case setting a username and password in config/packages/doctrine.yaml did not create a username/password protected sqlite database.

    doctrine:
        dbal:
            charset:  UTF8
            url: '%DATABASE_URL%'
            user:     'foo'
            password: 'bar'
    

    It seems like the parameters username and password are ignored?

提交回复
热议问题