[Solved] "Could not find driver" error

My website URL is:
Hidden by MOD

What I’m seeing is:
“could not find driver” error

I’m using this software:
MySQL/phpmyadmin

Additional information:

Oops, sorry.

When connecting to the domain in general, or any .php page, I just get a red box that says “could not find driver” in the middle. Nothing else.

Here are my constants:

define(‘HTTP_SERVER’, ‘http://epiz_23949877.epizy.com’);

define(‘SITE_DIR’, ‘epiz_23949877_simple_website/’);

define(‘DB_PREFIX’, ‘mp_’);

define(‘DB_DRIVER’, ‘MDBTools’);

define(‘DB_HOST’, ‘epiz_23949877.epizy.com/’);

//Username and password deleted

define(‘DB_DATABASE’, ‘simple_website’);

define(‘SITE_NAME’, ‘Simple Website’);

define(‘TABLE_PAGES’, DB_PREFIX.‘pages’);

define(‘TABLE_TAGLINE’, DB_PREFIX.‘tagline’);

https://infinityfree.net/support/common-mysql-errors/

probably is not enabled on our servers
please just use the native MySQL or SQLite drivers

1 Like

Thanks for the quick reply.
I caught that after, also. I tried switching it to both of them and I get the same error.

1 Like

Make sure that your MySQL database connection cofiguration is correct

1 Like

Solved:

Changed
SITE_DIR’, ‘epiz_23949877_simple_website/

to

SITE_DIR', '/epiz_23949877_simple_website/;

Changed DB_DRIVER to ‘mysql’

double checked host, user and password after the above changed “could not find driver” to “access denied”

1 Like

You can change the mysql driver to mysqli to connect to the database. PHP mysql driver is not supported and is deleted, so you can use mysqli instead.
Then note the host values for the database, and create a new database with the name simple_website. The name should be epiz_23949877_simple_website, the user should be epiz_23949877 and the password should be found on the Client Area, with the username of your account and the “Show/Hide” button to show it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.