Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: could not find driver #110

Open
fazliddin opened this issue Oct 22, 2024 · 6 comments
Open

error: could not find driver #110

fazliddin opened this issue Oct 22, 2024 · 6 comments

Comments

@fazliddin
Copy link

image

@fazliddin fazliddin changed the title could not find driver error: could not find driver Oct 22, 2024
@pxlrbt
Copy link
Member

pxlrbt commented Oct 23, 2024

Sounds like an issue with your local setup and that you don't have a DB driver for your selected database.

@fazliddin
Copy link
Author

fazliddin commented Oct 28, 2024

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=oqila_cms
DB_USERNAME=root
DB_PASSWORD=123456

migration and seed was successful

@pxlrbt
Copy link
Member

pxlrbt commented Oct 29, 2024

Sounds like you don't have sqlite driver. Because the Currency model uses sqlite behind the scenes.

@fazliddin
Copy link
Author

Yes, I installed sqlite, but could not figured out how to configure two databases

@pxlrbt
Copy link
Member

pxlrbt commented Oct 30, 2024

There is no need to configure two databases?

If you run php -m does it contain sqlite?

@fazliddin
Copy link
Author

Yes it contains sqlite3. But scenario was:

  1. I cloned repo
  2. Configured .env file for mysql (by that time sqlite was not installed)
  3. I migrated
  4. Installed sqlite

Currently error still appears.
It is my env file:

APP_NAME="Filament Demo"
APP_ENV=local
APP_KEY=base64:a4HXd4Ueo2jziF9rFcUvkDtKme2ibEVW1jLLWBsb/B4=
APP_DEBUG=true
APP_URL=http://filament-demo.loc

LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=filament_demo
DB_USERNAME=root
DB_PASSWORD=123456

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DRIVER=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

FLARE_KEY=

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

It contains nothing about sqlite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants