I really don't think you should be doing whatever you're doing if you don't know what a database is.
Also, if you're planning on releasing your server to the public to play: you won't be able to use localhost as they wouldn't be able to connect to your local database. Use a website such as Free Web Hosting, Free Templates, Free Tutorials and More - Zymic or a paid host if you have one. Then of course wherever your code in the server part attempts to connect to a database, change it your MySQL host, username, password, and database.