Yes You can do it.
You use two different prefixes for both sites in database.
Related Posts:
- Sub-domain or 2nd, temporary different domain?
- Cloning and syncing a WordPress website
- WordPress showing install screen after max_questions error
- Installation with sql server express edition
- Export all content from wordpress
- Automate dir and DB stack creation with WP-CLI
- Error establishing a database connection on Installation
- “Database Connection Error” upon install in Apache VirtualHost document root.. Why did this happen? [closed]
- Migrating from PDO using SQLite to clean new install using MySQL
- Selectively restoring original posts from a compromised site to a freshly installed WordPress database
- Moving to another server database connection error [closed]
- Is it possible to have more than 1 MySQL database in my WordPress blog?
- Create database on installation
- Reinstalling wordpress from database breaks the site
- Choosing http or https during manual installation of WordPress and database
- Installation question
- Image link issues after importing a database backup to my local web server
- Database create or redirect
- New installation fatal error in 5.9.3 at edit or create entry
- WordPress credentials not matched
- unable to use my wordpress site after moving
- I have a WordPress 4.6 database dump – how do I use it in a new install?
- Copy WordPress to new directory
- Does WordPress Support Using Named Pipes on the Windows Operating System?
- Can’t Install WordPress (local) Failed to open file wp-includes/wp-db.php
- Why is wordpress trying to re-install itself?
- Install WordPress with SQL database
- Getting an error when trying to migrate to DV server from Grid with Media Temple [closed]
- WordPress can’t fetch the posts from the database after moving to new server [closed]
- Difference between partition key, composite key and clustering key in Cassandra?
- How SID is different from Service name in Oracle tnsnames.ora
- What is a relation in database terminology?
- Why WordPress choose data serialization over json_encode?
- Are There Any Plans for WordPress to Support Databases Other Than MySQL?
- Reset Post IDs to less than 64bit integer
- how can get database name in wordpress?
- Does WordPress use the InnoDB engine for MySQL by default?
- $wpdb->prepare() warning in WordPress 3.5
- Best way to import users, post and categories from an external database
- Performance tips for a large user base [closed]
- Long option names fail silently?
- wp_options is GB in size
- Can’t update database after wordpress update from 3.8.1 to 4.4.1
- Why does WordPress rely on an fully qualified site_url with a 15-step plan for moving a site?
- WordPress and automated MySQL backups to a different host
- Size article thumbnails and retrieve them directly from database
- How can I create a Bible search engine via WordPress? [closed]
- Error establishing a database connection; After importing DB & Theme
- Where are WP_Errors Saved
- Get all images from this database table
- Delete transients in website
- Error establishing database connection – high traffic?
- wp_get_current_user always returns 0 continued
- Bulk-create posts from SQL database
- I am switching laptops. I host my WP server through MAMP. I want to transfer [closed]
- How can i customize the export personal data file?
- Is there a solution to auto-post data to a WP post from a database
- Auto login subdomain from main domain on single sites with different DB
- Logins from WP users table use on another page
- Uknown meta entries in wp_postmeta
- Error establishing a database connection problem in xampp saver
- I’m not able to get access to $wpdb [duplicate]
- Create table with dbDelta,can’t put any DEFAULT data
- WordPress database connection [closed]
- Changing between Local Host DB to Production DB and in reverse
- Bulk Updating Post Date in 1 day Increments
- What is the purpose of the “term_id” column in the “wp_term_taxonomy” table?
- Query Column of Specific ID from Database Table
- Posting variables to WP database using $_POST method
- Link image with data from the wpdb
- Update multiple rows in one query
- How to split the WordPress database?
- $wpdb->get_var – What value is returned when zero records are found?
- SymmetricDS in dev + prod workflow?
- Fixing YARPP plugin FULLTEXT MySQL indexing
- Advantages of dbDelta
- Only allow user to access a link once a year, based on their joining date
- Error establishing a database connection in wordpress site , website not opening
- wpdb Insert unknown post data dynamic foreach loop
- How do I use a database in a custom theme?
- I imported an restore an database and It shows #1067 – Invalid default value for ‘user_registered’
- Migrating meta_key and meta_value from old theme to new one
- How do you enable scripts on a WordPress installation in Softaculous?
- How to rerieve comments and their replies from DB
- Inserting data with Geometry field
- I Want a More Concice Form of Data than an Array
- Export only a part of the database for migration
- database error WordPress move from one hosting to other
- Select data from foreach loop and send it to wordpress database
- Error establishing database connection error during first WordPress run
- Same DB for live and dev versions
- update multiple user meta field based on another meta field
- After renaming MySQL database, I can no longer access my Blog page
- execute custom function on database connection error
- version control for wordpress? (wordpress folder and database at same time)
- not saving post in wp_post wordpress database table
- How to add data from wordpress tables to new database tables you have created
- How to back-up a database on IIS
- Best db table structure for users with many records
- Where are database files of a WordPress website?