Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 620799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:48:13+00:00 2026-05-13T18:48:13+00:00

I am developing a website that has user profiles, accounts, account settings, inboxes, etc.

  • 0

I am developing a website that has user profiles, accounts, account settings, inboxes, etc. just like Facebook or LinkedIn and I’m wondering how to set up the mySQL tables for it.

Should I create a table for every user for each function (profile, inbox, etc.)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:48:13+00:00Added an answer on May 13, 2026 at 6:48 pm

    You really need to think about everything you put into a database in terms of relationships (as mentioned by other posters). In the example you gave a user is going to have a one to many relationship with things like mail, they will have a one to one relationship with their user profile, and they will have a many to one relationship with something like ‘locations’ where many users live in one city.

    As you are designing your database always ask yourself which relationship type you need to build and make an attempt to never duplicate data in multiple tables when you don’t need to.

    When you set up something like a users table make sure that every row is equal to a user (as opposed to every user being a table) and that every row has a unique auto-increment id. This user id (that is generated by MySQL) is going to be the reference that you use in other tables to link your data together.

    So when you setup your mail table you might have 15 rows containing email data, but each of those rows will contain a field named something like user_id that will contain the unique id of that user from the users table.

    Start getting familiar with things like LEFT JOIN–this is how you will run a single query and get, for example, your user’s data AND all of his email at once.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.