hi, @adnan_morshed_ how is configured your table plus client? I think you are misconfiguring some of the PHPUnit parameters, double-check the user, password, and database name are the same as table plus.
May 2, 2022
12
Level 6
SQLSTATE[HY000] [1044] Access denied for user 'sail'@'%' to database ':memory:
Recently I started using laravel sail. And the problem started to appear in phpunit test. I did migrate the database I connected my database with tableplus but when I wanted to test I changed the phpunit.xml to this:
<env name="APP_ENV" value="testing"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="MAIL_MAILER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="DB_CONNECTON" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
every thing is still working but I can not run any test. and shows the error
SQLSTATE[HY000] [1044] Access denied for user 'sail'@'%' to database ':memory:' (SQL: select count(*) as aggregate from `projects` where (`title` = Voluptatem sed fugiat vel modi facere occaecati. and `description` = Eum voluptatem laudantium aut quis est voluptatem dolorem. At exercitationem molestiae et ut porro nam. Quo nisi dolore ut.))
Does anyone know how to solve it? need help.
Please or to participate in this conversation.