pdo_mysql php extension error?

Status
Not open for further replies.

ou7l4w

Member
Messages
86
Reaction score
0
Points
6
This is the error I am getting. Any ideas? php upgrade related maybe?

PDO is not configured in your PHP installation.
This means that your software can't be used.

To fix this please installed the pdo_mysql php extension.
If you are using a webhost please email them and get them to
install PDO for PHP with the MySQL extension
 

websol41

New Member
Messages
19
Reaction score
0
Points
1
i am also facing the same problem. is it related to recent php upgrade? or do i need to dynamically load it using dl() ????


correction using dl gives an error. basic html pages are working fine on my site but php pages where pdo is required is not working saying Fatal error: Class 'PDO' not found in xxxxxxxxxxxxxxxxxxxxxxx on line xx.

my cpanel is on absolut is the compiling over, if yes then there is a problem with pdo installation.
please check the same

Note: i trying with PDO SQLITE
 
Last edited:

softwa25

New Member
Messages
2
Reaction score
0
Points
1
I'm also having this issue. It was working before the PHP 5.5 upgrade.
 

sicelx10

Member
Messages
126
Reaction score
2
Points
18
The parameters of that new functions is different. Example:

PHP:
 <?php
$connection= mysqli_connect("localhost","user","password","database");
$query= mysqli_query($connection, "SELECT * FROM table");
while($res=mysqli_fetch_array($query)){
     echo "$res[row]";
}
?>

NOTE: If you put a mysqli function inside a PHP variable, the function will run automatically.

Example:

It is the same if i do this:
$query= mysqli_query($connection, "SELECT * FROM table");
or this:
mysqli_query($connection, "SELECT * FROM table");
 
Last edited:

websol41

New Member
Messages
19
Reaction score
0
Points
1
well it still doens't say why PDO is not working. do i have to start a new thread for PDO SQLITE ??
 

softwa25

New Member
Messages
2
Reaction score
0
Points
1
The parameters of that new functions is different. Example:

PHP:
 <?php
$connection= mysqli_connect("localhost","user","password","database");
$query= mysqli_query($connection, "SELECT * FROM table");
while($res=mysqli_fetch_array($query)){
     echo "$res[row]";
}
?>

NOTE: If you put a mysqli function inside a PHP variable, the function will run automatically.

Example:

It is the same if i do this:
$query= mysqli_query($connection, "SELECT * FROM table");
or this:
mysqli_query($connection, "SELECT * FROM table");

The mysql_* functions have been deprecated but in this case people are having a problem with PDO not mysql_*.
 

sicelx10

Member
Messages
126
Reaction score
2
Points
18
Why you dont use mysqli instead of PDO? . MySQLi is more faster.
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
Why you dont use mysqli instead of PDO? . MySQLi is more faster.

No, it really isn't...

But anyways:


We're aware of this issue and are attempting to resolve it.
 

jte1234583

New Member
Messages
2
Reaction score
0
Points
1
I would assume that it is in fact due to the upgrade. I believe this because everyone is having this issue, myself included, give it a day maybe two. It is is not fixed by then then open a support ticket. To reply to sicelx10:

PDO is for the OOP people. Mysqli looks goofy in OOP. Besides web sites are not about how fast they are, they are about the content and how easy it will be to update and edit the site.
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
PDO is for the OOP people. Mysqli looks goofy in OOP. Besides web sites are not about how fast they are, they are about the content and how easy it will be to update and edit the site.

No. Websites are 1000000% about how fast they are. If you don't think this, then you've learned web development completely wrong.

Source: I'm a web developer who makes enterprise-class websites.
 

jte1234583

New Member
Messages
2
Reaction score
0
Points
1
No. Websites are 1000000% about how fast they are. If you don't think this, then you've learned web development completely wrong.

Source: I'm a web developer who makes enterprise-class websites.

My point was that the speed shouldn't have to be thought out in the code. Your host should provide the speed.
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
...

I literally have no words. Speed is ALWAYS the thought in the code. It doesn't matter how "fast" your host is if you have terribly optimized code that doesn't run efficiently. Shitty code is still Shitty Code.
 
Status
Not open for further replies.
Top