My question is not about how to make a connection to ftp or mysql, as I'm not getting it.
I make the connection using the parameters like host, port, user and password. My source code stores this information. Thinking about the security issue, how is a connection implemented without this information being in the source code? I thought of creating a table in a database with the user and password and my app query this table, but in the connection I use the user and password of that database as a parameter.