Jump to content

Recommended Posts

I am trying to use my WAMP server to test code that is using PDO.

Most sites tell me to open the php.ini file and find the extension extension=php_pdo_mysql and remove the semi colon from the begining.

The only extension I can find is: extension=pdo_mysql, which has had the semicolon removed.

i have tried installing the driver and install this: instantclient-basic-windows.x64-21.7.0.0.0dbru.zip and add the location to my environment path, which I have done.

I've run out of ideas, so can someone tell me where I am going wrong?

Check the output from phpinfo();

This will tell you two things relevant to this

  • which php.ini file is currently in use and which you should be editting
  • whether PDO is already installed, for example
    image.png.569a1b894861fb5e8302137e9960d8a9.png

I am using PHP Version 8.1.0

The PDO versions as shown in picture.

Looks like its running pdo_mysql?

According to all the stuff I am reading on the internet, I should have an extension: php_pod_mysql 

How does that help?

Image2.jpg

I am using PHP Version 8.1.0

The PDO versions as shown in picture.

Looks like its running pdo_mysql?

According to all the stuff I am reading on the internet, I should have an extension: php_pod_mysql 

How does that help?

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.