close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Admin Login*denotes required field ERROR: Failed to save the settings in the database. Please verify your database connection.

Thread began 2/18/2021 10:09 am by Daniel | Last modified 3/12/2025 2:05 am by Daniel | 2782 views | 7 replies

anonymous

The error occurs because mysqli_select_db() requires two parameters: the database connection object and the database name. It seems your code is missing the connection object. Here’s how to fix it:

Correct Code
In global.php, modify line 13 to include the database connection object:

php
Copy code
mysqli_select_db($PowerCMSConnection, $database_PowerCMSConnection);
Explanation
$PowerCMSConnection should be your database connection object created using mysqli_connect().
$database_PowerCMSConnection should be the name of your database.
Additional Steps
Verify Connection: Ensure $PowerCMSConnection is properly initialized using:

php
Copy code
$PowerCMSConnection = mysqli_connect('hostname', 'username', 'password', 'database_name');
if (!$PowerCMSConnection) {
die('Connection failed: ' . mysqli_connect_error());
}
Check Configuration: Confirm that global.php has the correct database credentials and connection logic.

Database Import: If importing db.sql manually, ensure there are no errors during the import. Check for missing tables or permissions.

Debugging: If the error persists, add this line to debug:

php
Copy code
echo "Database connection: " . ($PowerCMSConnection ? "Success" : "Failed");
This should resolve the issue and allow you to proceed with the installation!

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...