[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 7755
  • Last Modified:

How to install pdo_mysql on server

Hi all,

I'm a bit new to this but I wish to install the pdo_mysql module on my shared server environment

I have access to the /php/ext folder and also php.ini

The server details are as follows:
Apache version      1.3.41 (Unix)
PHP version      5.2.5
MySQL version      5.0.51a-community
Architecture      i686
Operating system      Linux

Can somebody please give me a step by step guide on how to install the pdo_mysql module?
0
hubfub
Asked:
hubfub
  • 3
  • 2
1 Solution
 
Steve BinkCommented:
See:

http://www.php.net/manual/en/mysqli.setup.php

PHP must be compiled with support for the mysqli extension.  You can see if that is the case with your installation by checking the output of phpinfo().  The configure line should include "--with-mysqli=mysql_config_path", and you should see a mysql/i section in the extension detail.
0
 
hubfubAuthor Commented:
mysqli is already installed. I'm looking to install pdo_mysql
0
 
Steve BinkCommented:
My apologies...I mis-read your question.

PDO should already be installed on your version by default.  PHP should have been compiled with zlib, also.  If you don't already have it in there, you should be able to install it with:

# pecl install pdo

You'll also need this line in your php.ini:

extension=pdo.so

http://www.php.net/manual/en/pdo.installation.php
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
hubfubAuthor Commented:
how do i run the line

# pecl install pdo


?? i'm a beginner sorry
0
 
Steve BinkCommented:
You will need to log into the server's shell.  I'm assuming this is a linux machine.  I'm not sure how PECL works on a Windows machine.
0
 
kuldeep005Commented:
One more solution to this

wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz
tar xzf PDO_MYSQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
phpize
./configure
make install clean

In php.ini
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613"
extension=pdo_mysql.so
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now