Feature #77974
closed
Qualified Guessing database credentials during installation routine
Added by Falk Röder about 8 years ago.
Updated almost 7 years ago.
Description
Idea of this feature is, to check during the installation routine several places on the server for stored database connection credentials and of course databases. These could be suggestet to the installing user.
Questions is: Where to check? These credentials normally are stored very savely. In recommended files like my.cnf etc. no credentials are nor should be stored. Is there another way?
that was just an idea.
i guess, we will have dotenv within the core sooner or later. the install tool could then search for such a file and see if it finds variable definitions that look like db credentials.
i think there could be 2 guesses:
- check if a home dir is set via env vars. if so, look out for a ~/.my.cnf file.
- check for a .env file one directory above PATH_site (one above doc-root). if so, file_get_contents() it and see if there are TYPO3_DB_ variables.
- Target version changed from 8 LTS to 9.0
- Status changed from New to Closed
this has partially been implemented with other tickets by taking information from .env. closing this as 'nothing more to do here at the moment'.
Also available in: Atom
PDF