Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8224179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:58:26+00:00 2026-06-07T14:58:26+00:00

The error:(occurring in the prod env) request.CRITICAL: PDOException: SQLSTATE[28000] [1045] Access denied for user

  • 0

The error:(occurring in the prod env)

request.CRITICAL: PDOException: SQLSTATE[28000] [1045] Access denied for user ‘root’@’localhost’ (using password: YES) (uncaught exception) at /srv/inta/current/vendor/doctrine-dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php line 36 [] []

What I’ve tried so far

The weird thing is that I actually have access using the root user, and the provided password. Logging in as root via the console works great.

I’m using the following parameters.yml file located in app/config/

parameters:
    database_driver:   pdo_mysql
    database_host:     localhost
    database_port:     ~
    database_name:     int_apartments
    database_user:     root
    database_password: pw goes here

    mailer_transport:  smtp
    mailer_host:       localhost
    mailer_user:       ~
    mailer_password:   ~

    locale:            en
    secret:            ThisTokenIsNotSoSecretChangeIt

As you can see, it is quite standard with only the name of the db, user and password changed.

In my config.yml located in app/config (the relevant portions)

imports:
- { resource: security.yml }
- { resource: parameters.yml }

...

doctrine:
   dbal:
      driver:   %database_driver%
      host:     %database_host%
      port:     %database_port%
      dbname:   %database_name%
      user:     %database_user%
      password: %database_password%
      charset:  UTF8
      dbname:   int_apartments

  orm:
      auto_generate_proxy_classes: %kernel.debug%
      auto_mapping: true
      mappings:
          StofDoctrineExtensionsBundle: false

Now, I wanted to start at “step 1” and verify that the parameters.yml file is actually being imported, so I changed the host to “localhos” or the user to “tom” or whatever and the error message located in app/logs/prod.log stays exact as is – the location doesn’t change and the user doesn’t change.

So I checked my config_prod.yml located in app/config

imports:
- { resource: config.yml }


#doctrine:
#    metadata_cache_driver: apc
#    result_cache_driver: apc
#    query_cache_driver: apc

monolog:
    handlers:
        main:
            type:         fingers_crossed
            action_level: error
            handler:      nested
        nested:
            type:  stream
            path:  %kernel.logs_dir%/%kernel.environment%.log
            level: debug

…and everything seems standard!

Summary of what’s going on

So here is the quick version.

  • Authentication error exists for root@localhost
  • Verified my authentication creditials by logging in as that user via the console
  • Want to check if the parameters.yml file is being loaded
  • Changed some values – none affected the error message

(small)Edit:
What I actually want to do is to connect to the DB as a completely different user with a different password. Even when I enter different credentials into my parameters.yml file, doctrine still spits out the “root@localhost” error.

Ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T14:58:27+00:00Added an answer on June 7, 2026 at 2:58 pm

    Silly mistake, seems due to a bad user/group/owner configuration on the server.

    the app/cache directory is owned by “root”, but when I run
    app/console cache:clear –env=prod –no-debug
    I am running as another user (not root). So there were issues in clearing the cache and doctrine seems to have been using a very old configuration located in the cache files.

    Lessons learned:

    • Always try running as root (as a last resort)
    • Use a properly configured web server to avoid ownership issues
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is where the error is occurring in the stack: public static IKSList<DataParameter> Search(int
I'm getting an error occurring in the 'xutility' class - It is locked as
I'm getting an error occurring in the vector class, as in, the class which
I'm getting an error occurring in the 'vector' class, as in, the class which
I have edited the original question since the same error is occurring the difference
I have got a strange error occurring on my git project. liam@development ~/android/system/system/core $
I am having a very odd error occurring in the following: class ServeHandler(blobstore_handlers.BlobstoreDownloadHandler): def
A strange error began occurring in our code in the lest week or two.
Is it possible to find the line or column where an error is occurring
I have a really odd 2104 error occurring when I am hosting a Silverlight

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.