MySQL password has not been changed for a long time. I changed it today and suddenly found a problem:
There are about a dozen websites on the server. Every time you change the password, you need to enter the configuration of each website program. Changing the password of each program in the file feels very troublesome and time-consuming.
I wonder how everyone solves this problem?
过去多啦不再A梦2017-05-16 13:12:04
I usually bind my account to IP, so there are basically no security issues. You can also consider using it this way
大家讲道理2017-05-16 13:12:04
Using the configuration center, simply write a web interface to obtain the mysql address, account, and password. When other websites start up, they can access the configuration center to obtain the configuration of the mysql connection and then connect to mysql