Forums

Can't seem to connect to database

ericdennis7 20 Feb, 2023
Good morning! I can't figure out how to connect to an external database.

I have entered all the correct information for my database in the Settings tab under my form. The only field left blank is the "DB Prefix" box, which I'm not sure what that is tbh. I have also added the "Save Data" command at the bottom of the submit page and selected the database. I also named each HTML field name the exact same as the column names in my MySQL DB. What am I doing wrong?

Thank you!
wbuk 20 Feb, 2023
Yes you need all the fields filled in for it to work, including the prefix.

The prefix will usually be in the configuration.php file. Eg for joomla, if you open the configuration.php file located in the root folder, you'll find a line that says:

public $dbprefix = xxx



Other databases should have something similar in the configuration somewhere (either in the config file, in Plesk, etc).
You need to login to be able to post a reply.