This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 3
Upgrade Error
Started 12 years ago by jscott02 | 5 posts |
-
I am getting an error connecting to DB: Error connecting to the database: could not find driver
My DB setting are all fine see below:
/** MySQL settings **/
define('DB_NAME', 'mfsigmaxiforms'); //The name of your database. Note that this database must exist before running installer.php
define('DB_USER', 'machform'); //Your database username
define('DB_PASSWORD', 'xxxx'); //Your database users password
define('DB_HOST', 'webforge.xxxr.rrrr'); //The hostname for your databasePosted 12 years ago # -
I have the same problem- trying to upgrade 2 to 3:
Error message-
-Error connecting to the database: could not find driver-I don't know if this is a bug or if I have a bad configuration...
or missing files from the upload to server.Is there a file I should be looking for?
Posted 12 years ago # -
Your problem is you copied this from your old config file. Check the new config file and fill in the data manually. The new file is slightly different.
Posted 12 years ago # -
I see the slight difference and only reverted back to V2 code when it would not work but the v3 code still is not connecting
/** MySQL settings **/
define('MF_DB_NAME', 'mfsigmaxiforms'); //The name of your database. Note that this database must exist before running installer.php
define('MF_DB_USER', 'machform'); //Your database username
define('MF_DB_PASSWORD', 'xxxx'); //Your database users password
define('MF_DB_HOST', 'webforge.xxxr.edu'); //The hostname for your databasePosted 12 years ago # -
The actual cause for the problem is this - "could not find driver".
MachForm 3 uses different library to connect to the database, PDO, which offers more security.Apparently, the PHP PDO on your server doesn't have the mysql driver. I suggest to contact your hosting tech support/server admin and ask him to enable the mysql driver for the PDO. This can be done easily by editing the php.ini file
MachForm Founder
Posted 12 years ago #
Reply
You must log in to post.