不能';在php中找不到名为mysql的驱动程序
我的应用程序在本地主机上运行得很好。但当我将应用程序上传到服务器上时,出现了一个错误。我做了一个测试文件来检查数据库连接,这是我得到的错误。请告诉我怎么修理这个不能';在php中找不到名为mysql的驱动程序,php,doctrine,configuration-files,Php,Doctrine,Configuration Files,我的应用程序在本地主机上运行得很好。但当我将应用程序上传到服务器上时,出现了一个错误。我做了一个测试文件来检查数据库连接,这是我得到的错误。请告诉我怎么修理这个 Fatal error: Uncaught exception 'Doctrine_Connection_Exception' with message 'Couldn't locate driver named mysql' in /hermes/web05/b1392/moo.fanyer/httpdocs/doctrine/lib
Fatal error: Uncaught exception 'Doctrine_Connection_Exception' with message 'Couldn't locate driver named mysql' in /hermes/web05/b1392/moo.fanyer/httpdocs/doctrine/lib/Doctrine/Connection.php:492 Stack trace: #0 /hermes/web05/b1392/moo.fanyer/httpdocs/doctrine/lib/Doctrine/Connection/Mysql.php(101): Doctrine_Connection->connect() #1 /hermes/web05/b1392/moo.fanyer/httpdocs/doctrine/lib/Doctrine/Connection.php(1008): Doctrine_Connection_Mysql->connect() #2 /hermes/web05/b1392/moo.fanyer/httpdocs/doctrine/lib/Doctrine/Query/Abstract.php(1094): Doctrine_Connection->execute('SELECT u.id AS ...', Array) #3 /hermes/web05/b1392/moo.fanyer/httpdocs/doctrine/lib/Doctrine/Query/Abstract.php(1142): Doctrine_Query_Abstract->_execute(Array) #4 /hermes/web05/b1392/moo.fanyer/httpdocs/doctrine/models/Users.php(22): Doctrine_Query_Abstract->execute() #5 /hermes/web05/b1392/moo.fanyer/httpdocs/test.php(8): Users->get_details_username('mohit') #6 {main} thrown in /hermes/web05/b1392/moo.fanyer/httpdocs/doctrine/lib/Doctrine/Connection.php on line 492
编辑:如何启用我的sql驱动程序?请确保:
- 已在上载文件的服务器上启用mysql扩展李>
- 您已经指定了正确的路径李>
- 没有目录权限问题