I've not examined this on more recent versions of wordpress, but previously which has labored. You may also range from the wpconfig file if you wish to apply certain of individuals variables, like the database connection information.