Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

Two websites one database, administrator not working on second website

User roles aren’t stored in the user or user meta table, they have their own table, and they’re on a per site basis so reusing them isn’t so simple for setups like this.

In your case it would be significantly easier to use a multisite install using subdirectories rather than subdomains, then all of this would be taken care of for you automatically.

Related Posts:

  1. Login in WordPress using external database data
  2. Where is custom template file chosen for a post stored in the DB?
  3. Finding the login page from database?
  4. SQL Query to Update Admin Email
  5. How do I get WordPress login to ignore the password input if a particular username is used?
  6. Why is it that not all users have a ‘session_tokens’ meta_key record in the usermeta table?
  7. Finding the original login information in the database
  8. Database Table for customer user
  9. Permit Login if table row exists
  10. Auto login subdomain from main domain on single sites with different DB
  11. Logins from WP users table use on another page
  12. Is it possible to rebuild the website while not accesseing the original database?
  13. Adding prefix to WordPress database tables breaks admin capabilities?
  14. Recovering the table wp_usermeta from users
  15. WordPress has been updated! Before we send you on your way, we have to update your database to the newest version
  16. Unable to login to a https website via the app after changing from http
  17. How to protect my credentials on my clients website
  18. WordPress Admin login problems- PLEASE HELP [closed]
  19. What is an ORM, how does it work, and how should I use one? [closed]
  20. What is the difference between an ORM and an ODM?
  21. What is this JavaScript “require”?
  22. Rename a table in MySQL
  23. How should I tackle –secure-file-priv in MySQL?
  24. What is this JavaScript “require”?
  25. What is “Advanced” SQL?
  26. What’s the difference between identifying and non-identifying relationships?
  27. Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
  28. Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
  29. Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
  30. What are the differences between B trees and B+ trees?
  31. MySQL SELECT increment counter
  32. How to resolve ORA-011033: ORACLE initialization or shutdown in progress
  33. Example of a strong and weak entity types
  34. Oracle SQL query for Date format
  35. phpMyAdmin – Error > Incorrect format parameter?
  36. Strange Characters in database text: Ã, Ã, ¢, â‚ €,
  37. Difference between partition key, composite key and clustering key in Cassandra?
  38. How SID is different from Service name in Oracle tnsnames.ora
  39. What is a relation in database terminology?
  40. Failed to connect to mysql at 127.0.0.1:3306 with user root access denied for user ‘root’@’localhost'(using password:YES)
  41. Database vs File system storage
  42. Can I have multiple primary keys in a single table?
  43. Exclude Statement in SQL
  44. How do you query for “is not null” in Mongo?
  45. What is a file based database?
  46. Is it fine to have foreign key as primary key?
  47. Storing Images in DB – Yea or Nay?
  48. Using wpdb to connect to a separate database
  49. how to Optimize WordPress database for 10 million post? [duplicate]
  50. MySQL Database User: Which Privileges are needed?
  51. Why is my database import losing text widget data?
  52. Database synchronization between dev/staging and production
  53. Keeping WP database synced across multiple developers using git
  54. WPDB Insert or if exists Update
  55. Multiple developers / editors working on a site in progress
  56. How can I make updates to a site, on a development copy, but then move updates back without overriding live site’s evolving database?
  57. get_results using wpdb
  58. Will it break my site if I delete all transient records in wp_options table?
  59. Checking if Database Table exists
  60. Why WordPress choose data serialization over json_encode?
  61. What’s the simplest way to backup my WordPress database?
  62. WordPress (MyISAM) database is slow, should I switch to InnoDB?
  63. $wpdb won’t insert NULL into table column
  64. Relaunch 4.2 utf8mb4 database upgrade
  65. Fastest way (least amount of steps) to locally import a remote database using WP-CLI
  66. Safest way to bulk delete post revisions
  67. Please explain how WordPress works with MySQL character set and collation at a low level
  68. Solution for database version control and deployment?
  69. The MySQL alternatives: Do Percona Server and MariaDB work well with WordPress, and do they make WordPress go better?
  70. How many users can WordPress handle?
  71. Get error messages when $wpdb->insert() returns false?
  72. Detecting errors generated by $wpdb->get_results()
  73. How to Change the Default Home Page for the WordPress Dashboard?
  74. Staging sites, how do you manage synchronising updates in the DB?
  75. Does dbDelta delete columns as well?
  76. How to get the post publish date outside the loop?
  77. MariaDB as a backend database
  78. wpdb update add current timestamp not working
  79. Site stuck in “Database Update Required” loop
  80. How to fetch Data in WordPress using MySQLi or $wpdb
  81. WordPress Database lost auto increment
  82. Count & Display Database Queries
  83. Connect to database using wordpress wp-config file
  84. Add WordPress MU Network Admin via Database
  85. How can I make a WordPress database portable and url independent?
  86. Are There Any Plans for WordPress to Support Databases Other Than MySQL?
  87. wpdb->insert multiple record at once
  88. How to migrate a HTTPS WordPress installation to localhost?
  89. Two WordPress sites sharing the same content
  90. How to integrate custom database table in WordPress and using WordPress functions
  91. Reset Post IDs to less than 64bit integer
  92. WP Multisite: load content from site X on site Y
  93. How To Export/Import WordPress (MySQL) Database Properly Via Command-Line?
  94. Custom form that store input in database
  95. Restoring WordPress posts from database only
  96. What is the purpose of the option name hack_file in the options table?
  97. Where can I find the database changes between WordPress versions?
  98. Automate WordPress Database Upgrade
  99. Database connection close
  100. WordPress database error with latest WP – “WP_termmeta doesn’t exist”
Categories Database Tags admin, database, login
Hide editor with specific post meta value
Loading custom post thumbnail into stream

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress