Sky-fi scientist
Sky-fi scientist

Reputation: 19

Is there any File-System based database in PHP?

I am using a server, which has a restriction on the database usage i.e. I can't use more than 10mb of data, in the MySQL tables. So, I am searching for a alternate way of storing data, I need a database which stores data in form of files and it is also easy to use too.

Upvotes: 0

Views: 1307

Answers (3)

Umashankar Das
Umashankar Das

Reputation: 601

Everything uses files in the end. You could overcome the server limitation by having mysql in a separate server which does not have this restriction. Anyhow, if your data increases, this 10 MB limit will get exceeded.

PHP allows you to connect to external systems for database connectivity. Just set the servername variable in the connection query.

Upvotes: 0

kopaty4
kopaty4

Reputation: 2296

I suggest to use SQLite. This is a lightweight database that works natively in PHP and includes many of the functions that you are used to using in MySQL.

Upvotes: 5

Alexios Tsiaparas
Alexios Tsiaparas

Reputation: 910

You could try using XML files in order to save your data.

Regarding the database limit, MySQL saves the data in files as well, so that must be a limitation on MySQL itself. You could ask them if you could use another DBMS, like PostgreSQL.

Upvotes: 0

Related Questions