• ryder57

    (@ryder57)


    During installation I get this error and am unable to get anywhere else. I checked into all their suggestions and still get this error:

    The database server could be connected to (which means your username and password is okay) but the mywpdatabase database could not be selected.

    • Are you sure it exists?
    • Does the user root have permission to use the mywpdatabase database?
    • On some systems the name of your database is prefixed with your username, so it would be like username_mywpdatabase. Could that be the problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @ryder57,

    You’ll have to make sure mywpdatabase database is already created via PHPMyadmin in XAMPP.

    https://phppot.com/mysql/phpmyadmin-create-database/

    The error occurs because the mywpdatabase database isn’t present. Once the database is created, running the WP installation should add the WP core tables automatically to the selected database.

    Please do check and see if the above helps.

    Kind Regards,

    Nithin

    Thread Starter ryder57

    (@ryder57)

    The database mywpdatabase was created and is there in htdosc.

    Israel Martins

    (@israelmartins)

    Hi @ryder57 ,

    Thanks for the feedback.

    Perhaps you are referring to the WordPress installation folder/directory “mywpdatabase,” as databases are not stored in the “/xampp/htdocs/” folder/directory.

    Databases are stored in “/xampp/mysql/data/” (NEVER TOUCH ANYTHING IN THAT DIRECTORY unless you 100% know what you’re doing).

    If there is nomywpdatabase” folder/directory in/xampp/mysql/data/,” the database does not exist and would need to be created.

    To create the “mywpdatabase” database:

    1. Open a browser tab,
    2. Visit “localhost/phpmyadmin/
    3. On the left sidebar, click “New” at the top of the list of databases,
    4. In the “Database name” field, enter the name of the database (i.e., mywpdatabase) and
    5. Click the “Create” button.

    After creating the database, try the WordPress installation again.

    Please let me know if that helps.

    I look forward to sorting that out with you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.