Title: Error Installing WordPress into XAMPP
Last modified: February 7, 2025

---

# Error Installing WordPress into XAMPP

 *  [ryder57](https://wordpress.org/support/users/ryder57/)
 * (@ryder57)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-installing-wordpress-into-xampp/)
 * 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)

 *  [Nithin – WPMU DEV Support](https://wordpress.org/support/users/wpmudevsupport11/)
 * (@wpmudevsupport11)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-installing-wordpress-into-xampp/#post-18291870)
 * Hi [@ryder57](https://wordpress.org/support/users/ryder57/),
 * You’ll have to make sure `mywpdatabase` database is already created via PHPMyadmin
   in XAMPP.
 * [https://phppot.com/mysql/phpmyadmin-create-database/](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](https://wordpress.org/support/users/ryder57/)
 * (@ryder57)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-installing-wordpress-into-xampp/#post-18291926)
 * The database mywpdatabase was created and is there in htdosc.
 *  [Israel Martins](https://wordpress.org/support/users/israelmartins/)
 * (@israelmartins)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/error-installing-wordpress-into-xampp/#post-18293374)
 * Hi [@ryder57](https://wordpress.org/support/users/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 **no** “_mywpdatabase_” 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)

The topic ‘Error Installing WordPress into XAMPP’ is closed to new replies.

## Tags

 * [Install](https://wordpress.org/support/topic-tag/install/)
 * [wordpree](https://wordpress.org/support/topic-tag/wordpree/)
 * [xampp](https://wordpress.org/support/topic-tag/xampp/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 3 participants
 * Last reply from: [Israel Martins](https://wordpress.org/support/users/israelmartins/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/error-installing-wordpress-into-xampp/#post-18293374)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
