[Labs-l] Connecting to MySQL in PHP

Emilio J. Rodríguez-Posada emijrp at gmail.com
Tue Jun 17 16:34:52 UTC 2014


Hello;

I need to connect to a MySQL database using PHP. I have a replica.my.cnf
that I guess I have to use. What is the best way to connect to MySQL using
this file, without exposing the user/pass in the PHP code?

There is no help about this in the tutorial.[1]

Thanks

[1] https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools/Help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wikimedia.org/pipermail/labs-l/attachments/20140617/647e3f63/attachment.html>


More information about the Labs-l mailing list