php - Why don't we have a specific database only for authentication and another one for the rest? -


i wanted know why isn't easier , more secure have 1 database service, dedicated user authentication (withholding usernames , passwords) secured (inputs sanitized etc.)

and database service other data in website possibly less secured , available serving web content.

wouldn't way prevent lot of sql injections happening these days?

i think need deeper rdbms protection layers better picture why better in same instance.

let's take example mysql database:

  • an instance made out of 3 + databases (mysql, information_schema, , others create).
  • so have separate database repo handling auth + user + pass - , mysql database.

there ways develop applications hacker free - when working mysql of coders use open sql code (inline sql) - , problem - hackers take advantage of this! fix use stored procedures (encapsulated).

inside database privileges problem - lazy developers or stupid dba give rights application users. idea redundant many points of view. more instances cost more money, more resources, etc.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -