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

Unable to connect to database when running setup_database script #1089

Closed
Yannick243 opened this issue Jun 15, 2024 · 1 comment
Closed

Unable to connect to database when running setup_database script #1089

Yannick243 opened this issue Jun 15, 2024 · 1 comment

Comments

@Yannick243
Copy link
Member

Yannick243 commented Jun 15, 2024

🐛 Bugreport

When trying to set up the necessary tables to manage users, sessions, or settings (hm_user, hm_user_session, hm_user_settings) by running the script php ./scripts/setup_database.php, the system is using the default config values and not loading values from the .env file.
The error received is (Unable to connect to database) after multiple attempts.

Steps to reproduce

  1. Create an empty database
  2. setup the necessary variables in your .env file
    (DB_DRIVER, DB_HOST, DB_NAME, DB_USER, DB_PASS, AUTH_TYPE=DB or SESSION_TYPE=DB)
  3. Try to generate the related tables by running php ./scripts/setup_database.php
  4. You will get the error described above
@josaphatim
Copy link
Member

Close as fixed in #1090

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