DEV Community

Dawx
Dawx

Posted on

How to use MySql database on github.io

Hello, I recently made app with php which is using mysql database, I was working on XAMPP localserver.
Is there a way I can host my app on my github.io pages? If not what are good alternatives?

Top comments (3)

Collapse
 
nathn profile image
Nathan •

Github pages only allow for static content, so you'd have to use something like Firebase in order to get a database. I am not very experienced with free hosting but I know that a lot of these platforms are pretty bad and will try to display ads on your site. That's why I recommend you to take a real hosting plan (around $2 per month) or to switch to Firebase (can take a lot of time to recode since this is a no-SQL database)

Collapse
 
ben profile image
Ben Halpern •

Yeah, it would either need to compile to static at build time— or an async call to the database for custom data directly from the DB

Collapse
 
easrng profile image
easrng •

You can't use GitHub pages, but glitch.com will work! Remix lamp-poc.