laincarlos Posted January 10, 2008 Share Posted January 10, 2008 Hi, I'm new on PHP. I upload a website with php on a server, but get this error: http://www.chandranstockfootage.com/newreal/ Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The mysql driver is not currently installed' in /home2/chandran/public_html/newreal/application/Zend/Db/Adapter/Pdo/Abstract.php:104 Stack trace: #0 /home2/chandran/public_html/newreal/application/Zend/Db/Adapter/Abstract.php(263): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /home2/chandran/public_html/newreal/application/Zend/Db/Adapter/Pdo/Abstract.php(206): Zend_Db_Adapter_Abstract->query('DESCRIBE `_sess...', Array) #2 /home2/chandran/public_html/newreal/application/Zend/Db/Adapter/Pdo/Mysql.php(138): Zend_Db_Adapter_Pdo_Abstract->query('DESCRIBE `_sess...') #3 /home2/chandran/public_html/newreal/application/Zend/Db/Table/Abstract.php(595): Zend_Db_Adapter_Pdo_Mysql->describeTable('_sessions', NULL) #4 /home2/chandran/public_html/newreal/application/Zend/Db/Table/Abstract.php(528): Zend_Db_Table_Abstract->_setupMetadata() #5 /home2/chandran/public_html/newreal/application/Zend/Session/SaveHandler/DbTable.php(210): Zend_Db_Table_Abstract->_setup( in /home2/chandran/public_html/newreal/application/Zend/Db/Adapter/Pdo/Abstract.php on line 104 is that because the server provider didn't install php_pdo_mysql in the server? I sent them a email to install this extension, but they said i have to change it by code like change pdo_mysql to mysql, etc. But i really no idea how to change it by php coding... :'( Because i bought the code, not made it by myself Question 1: is this the problem the server provider SHOULD fix or me? Question 2: if this is what i need to do, Could you please tell me how to make it by php code or mysql? Thank you very much!!! Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted January 10, 2008 Share Posted January 10, 2008 if it isn't installed you useusally have to recompile to add on for mysql, your host should give you specifics to do it Quote Link to comment Share on other sites More sharing options...
laincarlos Posted January 10, 2008 Author Share Posted January 10, 2008 Could you tell how to recompile to add on for mysql. Is it hard for new on mysql? Thank you Quote Link to comment Share on other sites More sharing options...
drummer101 Posted January 10, 2008 Share Posted January 10, 2008 Could you tell how to recompile to add on for mysql. your host should give you specifics to do it Quote Link to comment Share on other sites More sharing options...
laincarlos Posted January 10, 2008 Author Share Posted January 10, 2008 so you are pretty sure the problem is about php_pdo_mysql extension, right? Quote Link to comment Share on other sites More sharing options...
drummer101 Posted January 10, 2008 Share Posted January 10, 2008 What version of MySQL are you using? Quote Link to comment Share on other sites More sharing options...
laincarlos Posted January 10, 2008 Author Share Posted January 10, 2008 What version of MySQL are you using? 4.1.22-standard Quote Link to comment Share on other sites More sharing options...
drummer101 Posted January 10, 2008 Share Posted January 10, 2008 Is your host running PHP as a server module or cgi wrapper? Quote Link to comment Share on other sites More sharing options...
laincarlos Posted January 10, 2008 Author Share Posted January 10, 2008 Is your host running PHP as a server module or cgi wrapper? i guess it is running as a server module PHP version 5.2.4 Quote Link to comment Share on other sites More sharing options...
drummer101 Posted January 10, 2008 Share Posted January 10, 2008 You need enable : extension=php_pdo.dll extension=php_pdo_mysql.dll in your php.ini Quote Link to comment Share on other sites More sharing options...
laincarlos Posted January 10, 2008 Author Share Posted January 10, 2008 You need enable : extension=php_pdo.dll extension=php_pdo_mysql.dll in your php.ini I didn't find php.ini on server, so i tried to create the php.ini with these content, but it didn't work... Quote Link to comment Share on other sites More sharing options...
drummer101 Posted January 10, 2008 Share Posted January 10, 2008 You need to contact your webhost and asked them to either enable those for you, or ask if you can use ini_set() Quote Link to comment Share on other sites More sharing options...
laincarlos Posted January 10, 2008 Author Share Posted January 10, 2008 You need to contact your webhost and asked them to either enable those for you, or ask if you can use ini_set() Thank you dude In you option, why didn't they want to install this extension for me as i mentioned at the first floor. is it because my website is just on package in the server, and there are other clients living in the server, then if they install this extension on the server, it will affect other websites running? Quote Link to comment Share on other sites More sharing options...
drummer101 Posted January 10, 2008 Share Posted January 10, 2008 If they don't want to support that extension you'll have to rework your code so that it doesn't use the PDO extension. If they say no, theres nothing else you can do. :\ Quote Link to comment Share on other sites More sharing options...
laincarlos Posted January 10, 2008 Author Share Posted January 10, 2008 If they don't want to support that extension you'll have to rework your code so that it doesn't use the PDO extension. If they say no, theres nothing else you can do. :\ ...They are sucks Could you tell me how to rework my code? which files i need to fix...etc? any idea? Thank you Quote Link to comment Share on other sites More sharing options...
revraz Posted January 10, 2008 Share Posted January 10, 2008 What are you doing that you can't use mysql functions? Quote Link to comment Share on other sites More sharing options...
trq Posted January 10, 2008 Share Posted January 10, 2008 Are you sure you have access to a mysql server at all? This line... The mysql driver is not currently installed makes it seem unlikely. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.