A
A
Aison2022-02-22 00:08:28
DLE
Aison, 2022-02-22 00:08:28

Which option is better to use for subdomains of the main site?

There is a main domain and there is a desire to make a second site, but already on a subdomain of this domain. I wanted to connect these two sites to one database by adding a perfix so that the tables are separate. (DLE capability). Is this approach normal or is it better to create a separate database? Perhaps and most likely there will be more such sites on subdomains. I want to know how normal this is?

I am using fastpanel.

I now have 4 sites there and for each a separate database with its own user. Is this the norm? When I did this, I thought about security, saying that if one is hacked, then other databases use other passwords. Although, as for me, if the database of one site is hacked, then I think they are "within a stone's throw" to others)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
ge, 2022-02-22
@Aison

I would like to make a single registration, if they create an account on the basis, then they can easily go to subdomains and the same data. Tell me, is there any point in such acts, or is it better to make a separate database for them?

Yes, why not. Do it. The main thing is to clearly understand how it works in order to be able to solve them in case of problems. It will be absolutely great if you also make regular backups (and make a backup right before setting up the whole thing).
I would also like to know, now I have 4 sites there and each site has its own database and each database uses its own user, is this approach normal or is it better to make one user for all these databases?

This is fine. So much safer and easier to maintain.
Also, each site has its own owner, and not one common one, does this somehow affect server performance?

No, it doesn't. This is also the norm and is also done for safety.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question