• miko31

    (@miko31)


    Fatal error: Uncaught CRM_Core_Exception: [-14: DB Error: no database selected thrown in C:\xampp\htdocs\eca\wp-content\plugins\civicrm\civicrm\CRM\Core\Error.php on line 901

    There has been a critical error on this website. Please check your site admin email inbox for instructions. If you continue to have problems, please try the support forums.

    Learn more about troubleshooting WordPress.
    i see this error aftet finishing installation

Viewing 6 replies - 1 through 6 (of 6 total)
  • Marta Fernandez

    (@marferblanco)

    Hello @miko31

    The error DB Error: no database selected means CiviCRM connected to MySQL but no database was selected for the connection.

    Since this happens right after the installation, it usually means the database configuration was not completed correctly.

    A few things to check:

    • Make sure the CiviCRM database already exists in phpMyAdmin before running the installer.
    • Verify that the database name in the installer is correct.
    • Confirm that the MySQL user has full permissions for that database.
    • If the installation was interrupted, try deleting the CiviCRM tables and running the installer again.

    If the issue persists, could you confirm:

    • whether the database was created manually beforehand
    • which database name you entered during the CiviCRM installation
    Thread Starter miko31

    (@miko31)

    yes i created the DB manually
    the database name i entered is eca

    Marta Fernandez

    (@marferblanco)

    Thanks for confirming.

    The error DB Error: no database selected usually happens when the database connection is established but the database name is not actually selected in the connection string.

    Since your database is eca, please check:

    1. In phpMyAdmin, confirm that the database eca exists and contains the CiviCRM tables after installation.
    2. Verify that the MySQL user you entered during the installer has permissions on the eca database.
    3. Check your CiviCRM configuration file (usually civicrm.settings.php) and confirm that the database name is correctly set to eca.

    Also, since you are using XAMPP, make sure the database host is set to localhost.

    If possible, could you also confirm:

    • the database host you entered during installation
    • whether any CiviCRM tables were created in the eca database?
    Thread Starter miko31

    (@miko31)

    eca exist with tables

    can i give you remote access to maintain it.


    Marta Fernandez

    (@marferblanco)

    Thanks for the offer, but for security reasons support in the forums cannot access sites remotely.

    Since the database eca exists and already contains tables, the error may come from the database configuration used by CiviCRM.

    Could you check the file:

    wp-content/plugins/civicrm/civicrm.settings.php

    and confirm that the database connection line contains the correct database name (eca) and host (localhost)?

    Also, please let us know:

    • the database host you entered during installation
    • the MySQL username used for the connection
    Moderator Support Moderator

    (@moderator)

    @miko31 Please never offer access to your own systems here in the forum. This is against the guidelines: https://wordpress.org/support/guidelines/#we-reserve-the-right-to-manage-the-forums-to-the-best-of-our-ability

    The WordPress plugin CiviCRM that you are using is also not included in the WordPress repository. I’m not sure where you got it, but I would recommend contacting the person who provided it to you. Since we don’t have the plugin available here in the forum, it’s difficult to help you here.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.