MySQL credentials in a text file
#1

ɴᴏᴛᴇ: ᴍʏsǫʟ ʀᴇʟᴀᴛᴇᴅ ǫᴜᴇsᴛɪᴏɴ
Hello, Crucial here with a quick question.

I want to prevent my MySQL Credentials from being at danger if the .amx file from my server is leaked, the solution to this which I have already seen in multiple scripts is having the credentials on a text file which the script reads from. So if the .amx is leaked nobody could see my database credentials from it!

My question is how do I do it? Do I just '#include' the text file at the top of the script? I've seen the VX-RP script where there was a .txt file in the 'scriptfiles' folder in the following format:
Quote:
SQL_HOST | SQL_USER | SQL_PASS | SQL_DB
The file had nothing but the IP address of the host, the username, password and database name with pipelines seperating them. Thanks in advance to anyone whose willing to help!
Reply


Messages In This Thread
MySQL credentials in a text file - by Crucial - 06.02.2014, 14:35
Re: MySQL credentials in a text file - by Camacorn - 06.02.2014, 14:38
Re: MySQL credentials in a text file - by RajatPawar - 06.02.2014, 14:38
Re: MySQL credentials in a text file - by PowerPC603 - 06.02.2014, 15:13

Forum Jump:


Users browsing this thread: 1 Guest(s)