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 7026687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:09:02+00:00 2026-05-28T00:09:02+00:00

I am working on a symfony project using MAMP. I am trying to load

  • 0

I am working on a symfony project using MAMP.

I am trying to load data into sql from Terminal with this script:

php symfony doctrine:insert-sql

I am getting this error:

Couldn’t locate driver named mysql

The forums have explained you should have pdo_sql enabled.

This is enabled in MAMP/conf/php5.2/php.ini and MAMP/conf/php5.3/php.ini

The researched documentation states that the php.ini file in the CLI is different from the php.ini file located in apache.

How can I locate and edit the php.ini file in the CLI, which is obviously different from the ones located in the MAMP directory?

  • 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-28T00:09:02+00:00Added an answer on May 28, 2026 at 12:09 am

    run this on the command line:

    php -info | grep Confi
    

    it should give you an output like

    Configuration File (php.ini) Path => /etc/php5/cli
    Loaded Configuration File => (none)
    

    But you don’t have to edit it. You can just simply use the one that is used by MAMP:

    php -c /path/to/your/php.ini symfony doctrine:insert-sql
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a Symfony project and I currently have this: <?php echo
I'm working on a first symfony project, i am using the sfWidgetFormTextareaTinyMCE widget for
I'm actually working on a Symfony project at work and we are using Lucene
I'm working on my first symfony project (it's great !), i am using the
I'm working on a symfony project, and I've been through the tutorial but this
i'm working in a symfony project and using sfPropelPager to show a paged list
i'm trying to do a complex query with Criteria in a Symfony project using
I'm working on a Symfony project (my first) where I have to retrieve, from
i am working on web Payroll project using symfony framework. we have 27000 employees
I'm working on a new big PHP / Symfony 2 project and decided to

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.