• Hi all,

    I have blabla.com featuring a blog, and want to play around with a new blog at blabla.com/bla. So I now created this folder /bla, uploaded the wordpress files there and am about to go to admin.php to start the installation.

    But I was worried that this may overwrite my prior wordpress installation in the MySQL database. I know too little about how such databases work to figure out whether I can just do that or not.

    Thanks for your help
    Torvon

    • This topic was modified 8 years, 1 month ago by Torvon.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    If you use a different prefix (look in wp-config.php) for your 2nd site, the tables can live in the same database. For security reasons, it’s best to use different databases.

    Thread Starter Torvon

    (@torvon)

    Thanks sterndata. I struggle with your recommendation to “use a different prefix”—maybe you can clarify.

    So in my normal blog blabla.com the info in wp-config is this (I edited it somewhat):

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘123torvon’);

    /** MySQL database username */
    define(‘DB_USER’, ‘123torvon’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘x’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘123torvon.mysql-xxx.com’);

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);

    /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’, ”);

    In my new https://www.blabla.com/bla/wordpress folder in ftp explorer, there is no wp-config file (yet), only wp-configsample, but I assume the new wp-config file will be created from this. There is not yet info in this file obviously.

    So what to do now? Thanks!

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    copy wp-config-sample.php to wp-config.php and edit it to add the setting for the new db and/or tables you want to add.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Second installation of wordpress in /new URL’ is closed to new replies.