WordPress.org

Support

Support » Installation » Changing table prefixes in wp-config

Changing table prefixes in wp-config

  • I’m trying to enhance security for a new WP install by changing wp table prefixes as advised at http://tdot-blog.com/wordpress/6-simple-steps-to-change-your-table-prefix-in-wordpress.

    My question:
    Can I just change the $table_prefix = ‘wp_’; in wp-config.php since I have not yet run the wp installer? Or do I also need to manually make the changes described in #3-5 on the link above?

    I’m hoping that since I haven’t yet run the installer, I can make the change in the config file and it will automatically create the new db tables with the specified prefix.

Viewing 5 replies - 1 through 5 (of 5 total)
  • whooami

    @whooami

    Member

    Can I just change the $table_prefix = ‘wp_’; in wp-config.php since …

    yes.

    Hmm. Just made the change in wp-config.php, uploaded it, ran the installer, and can’t login to the new install. Never had that prob before. Are you SURE I don’t have to manually edit other related files?

    whooami

    @whooami

    Member

    yes I am.

    That’s the only thing I did differently with the install this time so not sure what else to check. Will try a fresh install again tomorrow to test.

    whooami

    @whooami

    Member

    That’s the only thing I did differently with the install this time so not sure what else to check.

    there is a whole support forum here thats chock full of other things to check.

    Will try a fresh install again tomorrow to test.

    ..cant wait.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing table prefixes in wp-config’ is closed to new replies.