Say I have the mysql credentials
username: mysqlusername
password: letmein
In my code somewhere, I'm going to have to establish a connection to my database using these credentials.
However, if I'm using a public repository (e.g. github), I don't want to have a line of code that says
mysql_connect("localhost","mysqlusername","letmein","my_db");
because then anybody could see these credentials.
What is the best way to hide these credentials, while still having all my code in a public repository?