mysqli connect with mysql login path

[email protected] ("Gabriel Rau via php-general")
Newsgroups php.general
Message-ID <BN8PR19MB294791098C59C6018CD91551F98F9@BN8PR19MB2947.namprd19.prod.outlook.com>
I am trying to connect to mysql in my php code without having to pass in a password. I would like to use the mysql config editor to set the credentials once and then simply tell php to connect using that. Is there any way to do this in PHP?

Best,
Gabriel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.