[BETA-TESTER] Defining Databases

Ok, what is a web app without a database...to hack?

In Hack.me you can define as many databases as you want.

Just answer yes when you want to have Database support. Oh, btw, if you are just planning not to use this feature you can click Next and skip this step.

1. Yes! You want to use a database

http://hack.me/images/kb11.jpg

2. Add a new database

When you decide to use a Database you will need to first specify a name for it. You can do that by clicking Add

http://hack.me/images/kb10.jpg

Yes, you can select different DBMS's, as soon as we implement our sandobxing fu on it. For now please love MySQL.


http://hack.me/images/kb12.jpg

Please click on Import Data if you want to submit an .sql file through our editor. BTW we are working to allow you to create your database froma  a handy interface.

In the meantime please follow the next steps.

3. Import data into the database

http://hack.me/images/kb13.jpg

At this point you are ready to copy and paste your handy SQL file in the editor:

http://hack.me/images/kb14.jpg

Please do NOT insert CREATE DATABASE statement here. We have already created the database for you!

4. Define Database credentials and permissions


How does your application connect to the database?

Through the credentials you set up here:

http://hack.me/images/kb15.jpg

So you first add a new username and password pair (1). Then you define the permissions that each database user has to each database (2) through (3).

When you click on (3) you will be able to grant SELECT, INSERT, DELETE or ALL

http://hack.me/images/kb16.jpg

That's it!

You have your databases. 

You will have to use the credentials set up above to connect your web app to your database(s).


Feedback and Knowledge Base