Questions tagged [pdo]
PHP Data Objects (PDO) defines a lightweight and consistent interface for accessing databases.
78
questions
1
vote
1
answer
3k
views
Compiling PHP on CentOS Needs MySQL PDO Configured
I am trying to compile PHP with mysql_pdo on CentOS 6 and I am having just one heck of a time trying to make it happen. Currently I am trying to compile PHP 5.2, but I am going to have to do this for ...
7
votes
2
answers
31k
views
PDO_MYSQL Installation on CentOs6
I have a new CentOS 6 server running PHP 5.3.2. The output of php -v shows
Unable to load dynamic library '/usr/lib64/php/modules/pdo_mysql.so -
/usr/lib64/php/modules/pdo_mysql.so cannot open ...
4
votes
4
answers
33k
views
How do I install the pdo_mysql driver on Red Hat Enterprise Linux 6.1?
I have a RHEL box running PHP 5.3.3, which was installed using the binary packages provided by yum. I have installed the php-pdo package:
# yum info php-pdo
Loaded plugins: product-id, rhnplugin, ...
0
votes
1
answer
3k
views
Trying to install pdo_oci via PECL fails asking for PDO extension
I'm using Linux Mint 11 (based on Ubuntu 11.04) and I need to use PHP with Oracle through PDO, a requirement of the framework we will work with.
I've installed various PDO extensions using the normal ...
4
votes
3
answers
15k
views
How do I get PHP 5.3 working on Red Hat Enterprise Linux, with PDO enabled? PHP53 was installed with yum
This problem is complicated, and I'm not an expert at all, so bear with me. My server admin team set me up with a standard RHEL box. It had PHP preinstalled, as well as apache.
I am now trying to ...
0
votes
1
answer
1k
views
PostgreSQL 9.0 and PHP on Amazon EC2
How can I enable PostgreSQL 9.0 support in PHP on my Amazon EC2 instance? I'm running the free 32 bit Linux Micro instance. I've installed PostgreSQL 9.0 by following these instructions http://www....
-1
votes
2
answers
2k
views
PDO not showing in phpinfo() with custom php.ini file [closed]
I have a custom php.ini file which sets my session.save_path=./
With this file in place, my phpinfo() does not show PDO or PDO mysql being enabled. If I rename the php.ini file, the phpinfo() does ...
1
vote
1
answer
941
views
mysql server freezes on inserts on a InnoDB table
CREATE TABLE IF NOT EXISTS `music_batch_song` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`music_batch_id` bigint(20) DEFAULT NULL,
`song_id` bigint(20) DEFAULT NULL,
`comment` varchar(10) ...
6
votes
4
answers
44k
views
How can I install mysql PDO driver in Ubuntu 10.04 and PHP 5.3.2
I tried to install mysql PDO driver with this command:
$ sudo pecl install pdo_mysql
but I got the following error:
WARNING: "pecl/PDO_MYSQL" is deprecated in favor of "channel://http://svn.php.net/...
2
votes
0
answers
5k
views
phpinfo reports no value for PDO MySQL driver
As per the title I'm having problems with PHP 5.2.10 and getting PDO MySQL to be recognised.
My configure command contains '--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-pdo-...
0
votes
1
answer
2k
views
Suse11 - How to install pdo_mysql
I am going to install Drupal 7 to my new server, I have installed all stuff that mentioned in the requirement, however I stall get the error message saying that
"...Your web server does not appear ...
1
vote
1
answer
3k
views
Compiling PHP 5 with PDO MySQL
I want to use Nginx with PHP5-FPM with MySQL PDO on Debian. To get PHP5-FPM on squeeze I need to compile PHP myself. First I tried to
I did:
apt-get install mysql-server libmysqlclient-dev
I ...
0
votes
1
answer
390
views
Proper Linux environment for php5.3?
I use CentOS 5.5 64bits, and I'd strongly prefer running php5.3 there (please focus on this), but if you have a safe recipe to run it on another distribution, I'll take it into consideration.
My ...
0
votes
2
answers
11k
views
php pdo mssql driver on centos
How do I install PHP PDO Mssql Driver on Centos?
0
votes
1
answer
6k
views
Can't get PDO MySQL driver to work on PHP
Trying to install Vanilla 2 locally using MAMP i got the error:
"You must have the MySQL driver for PDO enabled in order for Vanilla to connect to your database".
When I check phpinfo() I see:
--...
1
vote
1
answer
567
views
How to enable PDO?
I have little server in Slicehost and i installed PHP 5.2.10 with PDO disabled. Now i'd like to enable it. Is there a way to enable it without too much fuzz? I'm not a pro admin :P.
Thanks!
0
votes
1
answer
439
views
Installing my mysql adapter properly
I am running on ubuntu 10.04. Can someone tell me how to isntall:
PHP5
MySQL with support for PDO
All tutorials I've found are a bit old.
2
votes
1
answer
2k
views
Can't get php+sqlite working
I'm struggling all morning to make php work with an sqlite database. Here is a piece of php code that I try to execute:
#less /var/www/html/test.php
<?php
$db=new PDO("sqlite:/var/www/test....
0
votes
1
answer
564
views
pdo_mysql installation
On my server I'm trying to instal PHProjekt (6). This requires pdo_mysql however. I thought this installation of pdo_mysql would be rather straightforward...
I tried using pecl (pecl install ...
0
votes
1
answer
531
views
IIS + PHP Data Objects + MS SQL?
We're migrating an LAOP server to Win 2k8 IIS7 MSSQL and PHP (WIMP?) at work, and I'm using the opportunity to clean up the PHP. Currently it doesn't use PDO, and I'd like to rewrite the PHP to use ...
2
votes
2
answers
679
views
Why do I get a PHP 5.2.6 segmentation fault when using PDO_SQlite?
This is an installation on ModWest's shared hosting. I have enabled both PDO and PDO_sqlite on the server and phpinfo() verifies both are running. When I access PDO itself, I'm fine, and getting a ...
1
vote
2
answers
34k
views
PDO Disabled in PHP... how to enable it?
Sorry I'm still a bit of a novice with dedicated hosting. Anyway, we have a dedicated server running cPanel and WHM. I have full terminal access and all that.
Basically I've tried to install Chive to ...
2
votes
1
answer
10k
views
How to install PostgreSQL extension for PDO in Linux?
I have the VPS. I can build my PHP version using Easy Apache. I can find the option for PDO support for MySQL, SQLite. But I don't have any option of PDO pgsql driver.
How can I enable that?
It says ...
1
vote
4
answers
7k
views
getting PHP PDO flavors to work on Mac OS X
I'm running OS X 10.5; it looks like it came with Apache and PHP installed (minus some minor configurations which I turned on per this page; I've used Apache before so I know the basics of how httpd....
0
votes
1
answer
1k
views
Compiling PHP 5.1.6 with PDO MySQL
UPDATE
I Asked this over on StackOverflow as I hadn't got any answers on here at the time.
Here's the link to the answers for completeness' sake. I'll like that page back over here once I've tried ...
1
vote
1
answer
2k
views
Apache won't restart with PDO MySQL enabled
I attempted to install the PDO MySQL driver onto a server with Solaris using the following commands:
$ pecl download pdo_mysql
$ tar xzf PDO_MYSQL-1.0.2.tgz
$ cd PDO_MYSQL-1.0.2
$ phpize
$ ./...
3
votes
1
answer
1k
views
PDO_mysql for mac
Has anybody gotten PDO_mysql working on the default PHP installation on a mac? It works with MAMP but that's inconvenient.
I'm developing for Zend Framework and mysql, and Zend_db uses PDO. The ...
39
votes
5
answers
151k
views
How do I tell Apache which PHP to use?
I am running Apache2 on a Mac OS X (10.5). I just compiled PHP 5.2.8 and finally got pdo-mysql working (or so I think).
This terminal command:
php --version
is showing 5.2.8 and I have the right ...