Jump to content

Question about PDO


laincarlos

Recommended Posts

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 :P

 

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!!! :)

Link to comment
Share on other sites

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?

 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.