This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

"Sorry, there is a database selection problem."
#1

Hi,

I'm getting the following error when I run the installer.
"Sorry, there is a database selection problem."

Any ideas? I'm pretty sure I did everything right up to this point.

I am using HostGator for a host. Attached is my

Thanks

Fernand
Reply
#2

Hi,

This error means that the script couldn't find the database that you named for the $cmtx_mysql_database variable in /comments/includes/db/details.php

This could be because you haven't created the database, or you did create the database but you mistyped the name of it in details.php

Have you completed the interview?
Reply
#3

Thanks Steven. That's kind of what I thought. But if you look at the two attachments from Hostgator....they seem to match.

The image "database" is the name of the database I created.
The image "details_php" shows a snippet of the file located in the folder....../comments/includes/db

They seem to match. I copy and pasted into the php file


Attached Files Thumbnail(s)
       
Reply
#4

Seems to match. Can you open /comments/installer/index.php and replace these lines:

PHP Code:
<?php
@error_reporting(0); //turn off all error reporting
@ini_set('display_errors', 0); //don't display errors
@ini_set("log_errors" , 0); //don't log errors
?>

With these:

PHP Code:
<?php
@error_reporting(-1); //show every possible error
@ini_set('display_errors', 1); //display errors
@ini_set("log_errors" , 0); //don't log errors
?>

Have you completed the interview?
Reply
#5

OK. Thanks. I did that and ran the installer again.

Where to the errors show up?
Reply
#6

They would have displayed on the screen.

Can you try changing the file permissions of details.php from read-only to normal. It's possible that your server is badly configured so that a read-only file can't even be read. If this works then when you get to the admin panel it will warn you that the file is not read-only. When it does this, click the button to disable the check.

If that doesn't work, can you check the privileges that you gave when creating the database. Make sure that all privileges are granted.

Have you completed the interview?
Reply
#7

(21-Jan-2013, 01:46 PM)Steven Wrote:  They would have displayed on the screen.

Can you try changing the file permissions of details.php from read-only to normal. It's possible that your server is badly configured so that a read-only file can't even be read. If this works then when you get to the admin panel it will warn you that the file is not read-only. When it does this, click the button to disable the check.

If that doesn't work, can you check the privileges that you gave when creating the database. Make sure that all privileges are granted.

I finally got a chance to try your suggestions. I had to change the permission for the user I had set up.

Finally got it installed. Thank you very much for your help
Reply
#8

Okay, so changing your MySQL user privileges worked. Was it this that you changed:

   

I'll add a note about this in the installer for the next version.

Anyway, glad you got it working.

Have you completed the interview?
Reply
#9

(25-Jan-2013, 10:25 PM)Steven Wrote:  Okay, so changing your MySQL user privileges worked. Was it this that you changed:



I'll add a note about this in the installer for the next version.

Anyway, glad you got it working.

Yes...that is what I changed.

Now I just need to figure out the integration part. One step at a time
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by murat
31-Dec-2020, 07:00 PM
Last Post by Steven
13-May-2019, 09:32 AM
Last Post by HGsunday
04-Jul-2018, 09:42 AM
Last Post by Steven
24-Jan-2016, 08:24 PM
Last Post by Steven
01-Jan-2016, 12:37 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)