So ever since got in to managing websites in my teenage years, I got in to a habit with databases and users as while I understood how to get them to work together, I didn't quite understand what their differences are. So since then, I have had a specific way of working and it's never changed since. My structure is:
Database: cpanel_forum
User: cpanel_forum
Password: forum
I would then link these two, and one database would always have the same name mirrored in to users. You would never see two users or mismatched names with a database.
However with security becoming a bigger issue, this method of handing databases and users did come in to my mind as a potential risk, so I'm here to discuss.
In fact to be quite honest (and albeit embarrassing to admit), I've done that method for so long, that even owning my own VPS, I still don't know the relationship and uses of a database and user and how they link.
Am I in any danger or generating any risk by organising my databases, users and passwords in this way? And how exactly does a user contribute to a database and what would the benefits be of different methods, like multiple users per database, or one user for all databases?
Thanks!
Database: cpanel_forum
User: cpanel_forum
Password: forum
I would then link these two, and one database would always have the same name mirrored in to users. You would never see two users or mismatched names with a database.
However with security becoming a bigger issue, this method of handing databases and users did come in to my mind as a potential risk, so I'm here to discuss.
In fact to be quite honest (and albeit embarrassing to admit), I've done that method for so long, that even owning my own VPS, I still don't know the relationship and uses of a database and user and how they link.
Am I in any danger or generating any risk by organising my databases, users and passwords in this way? And how exactly does a user contribute to a database and what would the benefits be of different methods, like multiple users per database, or one user for all databases?
Thanks!