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. Saving zero as meta value
  19. Migration: Copying database content to a different server
  20. Remove empty rows from the database
  21. Check if post id exist in table than only update instead of inserting new row
  22. Detail explanation of wordpress database fields and metatag list [closed]
  23. CreateOrUpdate in WordPress
  24. $wpdb->get_results($wpdb->prepare(… You have an error in your SQL syntax;
  25. How to convert srcset links from https to http?
  26. How to get a list of WordPress default database tables?
  27. Can local WordPress installs share /wp-content/ folder and database?
  28. Does deleting the table users prevent all logins?
  29. Changing order of db results when encoding to JSON
  30. How to transfer from localHost to live but use the already existing database on the server?
  31. Backing up WordPress database and files
  32. Safely store code(html/js..) into database
  33. Creating and Using Tables in the WordPress Database
  34. How not to display ALL items of a database
  35. Connect a membership plugin to an external database
  36. Compare User meta_value with Product meta_value
  37. How to get the records from start with A to G in php and mysql
  38. Storing user’s data on external database on other server
  39. Link multiple user databases together?
  40. is it right choose to connect database in template page directly in WordPress site?
  41. How to insert a value to decimal type field using wpdb->prepare?
  42. Sql query to get all metadata for a post
  43. I wanted to Know that how can I give ingore to 0000-00-00 in my config file
  44. Set a cron job to delete a specific database table table every midnight
  45. Two separate wordpress installations at one domain
  46. Is there a way to edit the WP content database in an admin panel or external page?
  47. Where do I put my create_new_table function()?
  48. SQL database import #1046 error
  49. Get all top categories, then only 3 posts for each
  50. Having all “non-PHP” files on a different server
  51. syntax error for changing user role from database
  52. Error establishing a database connection in wordpress
  53. Where is the HTML-handler part in the wpdb class?
  54. Finding a page holding a specific string/URL that is used in the content
  55. “wordpress error in establishing database connection” and missing tables
  56. get_option() does unserialize and don’t remove \
  57. next comment id number wordpress
  58. Trying to login to my site redirects me to the first page
  59. Adding last value from Database as text in WordPress Page
  60. Want to update value in database. But it says update() on null
  61. Migrate not successful, DB is broken. How to fix, or at least output static HTML without plugins?
  62. Admin Login Checks
  63. Merging development site with live site
  64. Backup Restore turns carriage returns to literal strings
  65. I have a WordPress 4.6 database dump – how do I use it in a new install?
  66. Find/ascertain latest wordpress db from multiple database copies
  67. Local Content different from Remote Content
  68. Check if a database is well installed
  69. Checking if the data already exsis in the wp database – custom plugin
  70. live site do not update after importing sql database
  71. Transforming an wp_options database array into a javascript obect?
  72. save content in to wordpress wp_post table of database
  73. WordPress + Postgresql
  74. WordPress login process is hanging
  75. How can I retrieve data from alternate database using wpdb class?
  76. Database connection close
  77. Author ID mismatch from database
  78. MySQL Database User: Which Privileges are needed?
  79. Import Excel (or csv) Table with user-data as subscribers to wordpress
  80. Automatic add record after refreshing page
  81. User accounts for saving form data?
  82. Trying to edit a WP site locally using MAMP
  83. SQL query : Select a thumbnail for a media
  84. trying to install wp but i have no clue on hosting and servers [closed]
  85. What is table `wp_woocommerce_termmeta` for? [closed]
  86. WordPress API standard compliance and specification for external database [closed]
  87. Log IP of users who click a button? [closed]
  88. DROP TABLE IF EXISTS `wp_options` error?
  89. Problem with form database connectivity
  90. Server database problem
  91. Best way to search and replace within serialized database strings?
  92. How can i change the nicename and the displayname in a bulk in the database?
  93. cannot access wp-admin after options table crash and repair
  94. How to update multiple row by one query
  95. Have WordPress Use a Different Database for users
  96. WordPress post on home page of my website
  97. large number (bigint) for post ID issue in database
  98. Count views without get_post_meta
  99. How to stop wordpress from redirecting from the post’s old slug after changing title and slug?
  100. Error of ‘P404 Migration skipped. Already completed.’ on error_log file
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
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 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