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

  • Home
  • SEARCH
  • 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 7632725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:41:55+00:00 2026-05-31T06:41:55+00:00

Sorry if this is base, I don’t know much about Symfony. I’m trying to

  • 0

Sorry if this is base, I don’t know much about Symfony.

I’m trying to set up a fresh, live database to populate. I have copied the schema from our test server, but dont want the whole test db. This means I have no admin user to work in the backend.

What I want to do is add a super user via the command line. I found this:
How to add users to sfguard

But I get the following error:

Unable to open PDO connection [wrapped: invalid data source name]

Also, I don’t think the user created here would be a superadmin, no?

If anyone can explain the error or how to add a superuser it would make my life a tonne better and mean I can get some actual stuff done (instead of banging my head against the keyb). Thanks in advance!

  • 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-05-31T06:41:56+00:00Added an answer on May 31, 2026 at 6:41 am

    The error message is about PDO can not connect to your database. You should edit config/databases.yml and fill in your connection information correctly like:

    all:
      doctrine:
        class: sfDoctrineDatabase
        param:
          dsn:      mysql:host=localhost;dbname=your_database_name
          username: your_username
          password: your_password #(or null if no password)
    

    For more information see databases.yml reference

    To create a new user use php symfony guard:create-user email@example.com username passwod and than make this user super admin php symfony guard:promote username

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry about this silly question. I'm trying to learn objc and I'm unable to
sorry - I should know this but I don't. I have computed the position
Sorry this is not a very well defined question, I am thinking about an
First of all I don't know how to phrase the question title, sorry if
Sorry if this is a stupid question, but it's something that I'm curious about.
Sorry this is a basic question, but all my research just barely missed answering
Sorry this is probably super basic. But in all my javabean examples, I've not
sorry this is such a simple question but I can't figure it out. How
Sorry if this is a dup; I haven't found any questions that pose quite
Sorry if this is a stupid question... I've developed an application that creates absolute

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.