Symfony error: couldn ' t locate driver named MySQL, how to handle

Source: Internet
Author: User
Tags php error php error log
Symfony error: couldn ' t locate driver named MySQL
Title, using symfony1.4, data model and so on command line connection database are automatically generated, during, no error. At run time (Connect database query data), Error: 500 | Internal Server Error | Doctrine_connection_exception

Couldn ' t locate driver named MySQL.
Well, the configuration of php.ini using MySQL database is all open. Why is it wrong? Why is it???
Configuration database files, using the DATABASES.YML,
PHP code
  
  All:  doctrine:    class:sfdoctrinedatabase    param:      DSN:      mysql:host=127.0.0.1;dbname=hr_ Administration      Username:root      


------Solution--------------------
With the answer to another similar question, you may not have the path to the PHP extension configured.
PHP.ini's Extension_dir
The most effective solution is to check the Apache or PHP error log
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.