How to secure database passwords in PHP?

后端 未结 16 1197
闹比i
闹比i 2020-11-21 22:41

When a PHP application makes a database connection it of course generally needs to pass a login and password. If I\'m using a single, minimum-permission login for my applica

16条回答
  •  甜味超标
    2020-11-21 23:34

    If you are using PostgreSQL, then it looks in ~/.pgpass for passwords automatically. See the manual for more information.

提交回复
热议问题