Title: Installation Error
Last modified: February 27, 2021

---

# Installation Error

 *  [umayralom](https://wordpress.org/support/users/umayralom/)
 * (@umayralom)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/)
 * I am trying to set up a local WordPress install on a USB drive. So far I’ve installed
   and configured xampp and I’ve created a folder within the htdocs file with my
   site name. I’ve also installed WordPress from WordPress.org and extracted it 
   into the site file within htdocs. I’ve also created a MySQL database in PHP my
   admin. Now I’m trying to install wordpress at the link [http://localhost/Hirah%20Designs](http://localhost/Hirah%20Designs).
   Once I get to the stage where I have to enter the site admin details, and I press
   install WordPress, it says ‘ a critical error has occured within the site’. I
   refresh the page and it says that the database needs to be repaired. It tells
   me to add the following line of code to the wp-config.php file:
    define(‘WP_ALLOW_REPAIR’,
   true); After adding this, it shows two options. One to repair the database and
   one to repair and optimise. I chose the repair and optimise option which failed
   so then I chose the first option to just repair. I got the following errors: 
   wp_posts: Table ‘hirah_designs.wp_posts’ doesn’t exist wp_postmeta: Table ‘hirah_designs.
   wp_postmeta’ doesn’t exist Please let me know how I can fix these errors.

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110530)
 * Use PHPMYADMIN to repair the database rather than WP internals.
 *  Thread Starter [umayralom](https://wordpress.org/support/users/umayralom/)
 * (@umayralom)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110544)
 * How do I do that
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110552)
 * I’ve never used xampp, but try [http://localhost/phpmyadmin](http://localhost/phpmyadmin)
 *  Thread Starter [umayralom](https://wordpress.org/support/users/umayralom/)
 * (@umayralom)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110590)
 * once im in there, how do i solve these errors:
    wp_posts: Table ‘hirah_designs.
   wp_posts’ doesn’t exist wp_postmeta: Table ‘hirah_designs.wp_postmeta’ doesn’t
   exist
 * i dont know what they mean😂
 *  [Stef](https://wordpress.org/support/users/serafinnyc/)
 * (@serafinnyc)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110613)
 * Can you please provide a screenshot of your database tables. It appears like 
   you’re trying to add 2 tables that are prefixed correctly.
 *  Thread Starter [umayralom](https://wordpress.org/support/users/umayralom/)
 * (@umayralom)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110636)
 * [https://paste.pics/cc741aa292d45ccf53f13be61bc7eecc](https://paste.pics/cc741aa292d45ccf53f13be61bc7eecc)
 * i dont understand any of it 😂
 *  [Stef](https://wordpress.org/support/users/serafinnyc/)
 * (@serafinnyc)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110647)
 * > wp_posts: Table ‘hirah_designs.wp_posts’ doesn’t exist
 * You typed this and there is no such table or prefix. Prefix being this wp_
 * That’s a prefix. Some do custom prefixes. Now, take a shot of your wp-config.
   php file please and make sure you encompass at least the username and prefix 
   for us to see.
 *  Thread Starter [umayralom](https://wordpress.org/support/users/umayralom/)
 * (@umayralom)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110662)
 * [https://paste.pics/2ec40e1f3aa074da63ef029b8594c927](https://paste.pics/2ec40e1f3aa074da63ef029b8594c927)
   
   [https://paste.pics/bbe5a4d095221944e0f6ca90f6a4315e](https://paste.pics/bbe5a4d095221944e0f6ca90f6a4315e)
   [https://paste.pics/9be7a7cf98c03a6445ad1c37de90312e](https://paste.pics/9be7a7cf98c03a6445ad1c37de90312e)
 *     ```
       <?php
       /**
        * The base configuration for WordPress
        *
        * The wp-config.php creation script uses this file during the
        * installation. You don't have to use the web site, you can
        * copy this file to "wp-config.php" and fill in the values.
        *
        * This file contains the following configurations:
        *
        * * MySQL settings
        * * Secret keys
        * * Database table prefix
        * * ABSPATH
        *
        * @link https://wordpress.org/support/article/editing-wp-config-php/
        *
        * @package WordPress
        */
   
       // ** MySQL settings - You can get this info from your web host ** //
       /** The name of the database for WordPress */
       define( 'DB_NAME', 'hirah_designs' );
   
       /** MySQL database username */
       define( 'DB_USER', 'root' );
   
       /** MySQL database password */
       define( 'DB_PASSWORD', '' );
   
       /** MySQL hostname */
       define( 'DB_HOST', 'localhost' );
   
       /** Database Charset to use in creating database tables. */
       define( 'DB_CHARSET', 'utf8mb4' );
   
       /** The Database Collate type. Don't change this if in doubt. */
       define( 'DB_COLLATE', '' );
   
       /**#@+
        * Authentication Unique Keys and Salts.
        *
        * Change these to different unique phrases!
        * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
        * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
        *
        * @since 2.6.0
        */
       define( 'AUTH_KEY',         'IY9(86U8{40 }jgaDr$.1E+czL0>i}{d.PWK+;:}ghu1x2Q!hDi|07g/Ex>tqm6E' );
       define( 'SECURE_AUTH_KEY',  '.v-8dM)GQ2Mp^0b:+pJ3y<>0E*YtKAmIFN, vf/}oFR;!~^IXv-t7eF<GUA*)D e' );
       define( 'LOGGED_IN_KEY',    'NUk,Rp%TVV88esrG|l@fRVdl3)+qDN{6s>c6hf@Q_*0]#*r4X7o&8!iY4,)a]Pp7' );
       define( 'NONCE_KEY',        '|4MXFa0;,!8s[&RyPG<k>t=pu/n8)[|(Q7~Fs(dr,2O*Mn:GLTUm$amt;ug? :lz' );
       define( 'AUTH_SALT',        'T.r:$:TTmMU 21-&rNR
       ```
   
 * #BKgp]+xgpitHX-oiUW*]O#%6~RlfnFNhC]nwFW;a}TI’ );
    define( ‘SECURE_AUTH_SALT’,‘
   9}$%rh/Fyz;JlP+oDP/)`:W$a%jOSlB=HRXrX^w{Sx^7F+Mnb^Tz..N +~w4rZ6p’ ); define( ‘
   LOGGED_IN_SALT’, ‘W!6}5@65%ugzO2p`w4?KG |VaMit^z(i!C-;kVU7tb 17hLyO&bXGR4s/CabFMv5’);
   define( ‘NONCE_SALT’, ‘u2bYhhLxbg0kH{L$Zb%$3xKtstT2</hawu_z;3ti`0JL~pyn5}eIJX5)
   ex%]c:PC’ );
 * /**#@-*/
 * /**
    * WordPress Database Table prefix. * * You can have multiple installations
   in one database if you give each * a unique prefix. Only numbers, letters, and
   underscores please! */ $table_prefix = ‘wp_’;
 * /**
    * For developers: WordPress debugging mode. * * Change this to true to enable
   the display of notices during development. * It is strongly recommended that 
   plugin and theme developers use WP_DEBUG * in their development environments.**
   For information on other constants that can be used for debugging, * visit the
   documentation. * * [@link](https://wordpress.org/support/users/link/) [https://wordpress.org/support/article/debugging-in-wordpress/](https://wordpress.org/support/article/debugging-in-wordpress/)*/
   define( ‘WP_DEBUG’, false );
 * /* That’s all, stop editing! Happy publishing. */
 * /** Absolute path to the WordPress directory. */
    if ( ! defined( ‘ABSPATH’ )){
   define( ‘ABSPATH’, __DIR__ . ‘/’ ); }
 * /** Sets up WordPress vars and included files. */
    require_once ABSPATH . ‘wp-
   settings.php’;
 * define(‘WP_ALLOW_REPAIR’, true);`
 *  [Stef](https://wordpress.org/support/users/serafinnyc/)
 * (@serafinnyc)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110667)
 * You forgot to put your password inside PASSWORD so add that and see
 *  Thread Starter [umayralom](https://wordpress.org/support/users/umayralom/)
 * (@umayralom)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110673)
 * I read online to leave that field blank. I didn’t create a password when creating
   the database so I don’t know what it is
 *  [Stef](https://wordpress.org/support/users/serafinnyc/)
 * (@serafinnyc)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110682)
 * the password is always “root” without the quotes. I’ve never heard of leaving
   it blank. News to me.
 *  Thread Starter [umayralom](https://wordpress.org/support/users/umayralom/)
 * (@umayralom)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110695)
 * In MySQL, by default, the username is root and there’s no password. If during
   the installation process, you accidentally put a password in and don’t remember,
   here is how to reset the password: Stop the MySQL server if it is running, then
   restart it with the –skip-grant-tables option.
 * [https://tableplus.com/blog/2018/11/what-is-the-default-username-password-in-mysql.html#:~:text=In%20MySQL%2C%20by%20default%2C%20the,skip%2Dgrant%2Dtables%20option](https://tableplus.com/blog/2018/11/what-is-the-default-username-password-in-mysql.html#:~:text=In%20MySQL%2C%20by%20default%2C%20the,skip%2Dgrant%2Dtables%20option).
 *  Thread Starter [umayralom](https://wordpress.org/support/users/umayralom/)
 * (@umayralom)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110696)
 * This is what comes up when I search on google
 *  [Stef](https://wordpress.org/support/users/serafinnyc/)
 * (@serafinnyc)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110709)
 * Try anyway. What do you have to lose? Besides, that page referenced did not mention
   XAMPP. Not that I saw. I’m old but I’m not that old.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110758)
 * for instructions, see [https://www.a2hosting.com/kb/cpanel/cpanel-database-features/optimizing-and-repairing-mysql-databases-with-phpmyadmin](https://www.a2hosting.com/kb/cpanel/cpanel-database-features/optimizing-and-repairing-mysql-databases-with-phpmyadmin)

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

The topic ‘Installation Error’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 15 replies
 * 3 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/installation-error-149/#post-14110758)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
