Skip to content
Sign upLog in
← Back to Community

How to create Database for PHP Web Server

Profile icon
gkarthikkumar

How to create Database for PHP Web Server

Voters
Profile icon
SteamCommunity1
Comments
hotnewtop
Profile icon
bintulabun
Profile icon
RowanFromBJC

To set a key value, use curl $REPLIT_DB_URL -d 'key=value', which will create/edit a key named key with a value of value.
If you need to get the value of a key, use curl $REPLIT_DB_URL/key which will return value, because we set that earlier.
To list every key, use curl "$REPLIT_DB_URL?prefix=key".
Now if you don't want to use a key anymore, use curl -XDELETE $REPLIT_DB_URL/key

Profile icon
gkarthikkumar

Hi

I tried but am not clear on how to use a built-in database.

Could you please share me the steps or any reference link to use a built-in database.

Thanks & Regards
G. Karthik Kumar

Profile icon
gkarthikkumar

Hi

I tried but am not clear on how to use a built-in database.

Could you please share me the steps or any reference link to use a built-in database.

Thanks & Regards
G. Karthik Kumar

Profile icon
RowanFromBJC

There is something called repl.it database, if you click on this icon:
image


It gives you a guide on how to use a built-in database!

Profile icon
RhinoRunner

@RowanFromBJC
oh thats what that button is for

Profile icon
RowanFromBJC

@RhinoRunner
Yup