[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How to install pdo_mysql on server

Posted on 2008-10-11
6
Medium Priority
?
7,746 Views
Last Modified: 2013-12-13
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
Comment
Question by:hubfub
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 51

Expert Comment

by:Steve Bink
ID: 22695954
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
 
LVL 1

Author Comment

by:hubfub
ID: 22696016
mysqli is already installed. I'm looking to install pdo_mysql
0
 
LVL 51

Accepted Solution

by:
Steve Bink earned 1500 total points
ID: 22698113
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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
LVL 1

Author Comment

by:hubfub
ID: 22716508
how do i run the line

# pecl install pdo


?? i'm a beginner sorry
0
 
LVL 51

Expert Comment

by:Steve Bink
ID: 22726504
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
 

Expert Comment

by:kuldeep005
ID: 23764116
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
This article discusses how to implement server side field validation and display customized error messages to the client.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question