MySQLfs is Linux userspace filesystem which stores data in a MySQL database. The project uses FUSE to interface with the kernel.
Build:
If compiling from CVS run ./cvs-bootstrap first.
For both CVS and tarball version run:
./configure
make
Usage:
1. Create database and account
mysql> CREATE DATABASE mysqlfs;
mysql> GRANT SELECT, INSERT, UPDATE, DELETE ON mysqlfs.* TO mysqlfs@"%" IDENTIFIED BY 'password';
mysql> FLUSH PRIVILEGES;
2. Create tables
mysql -uroot -p mysqlfs < schema.sql
3. Mount database as a filesystem
mkdir fs
./mysqlfs -ohost=localhost -ouser=user -opassword=pass -odatabase=mysqlfs fs
4. Instead of setting connection options on the command line you may create a [mysqlfs] section in your ~/.my.cnf file and set the parameters there.
Options:
-ohost=< hostname >
MySQL server host
-ouser=< username >
MySQL username
-opassword=< password >
MySQL password
-odatabase=< db >
MySQL database name
Product's homepage
Requirements:
· MySQL
· Filesystem in Userspace
What's New in This Release: [ read full changelog ]
· Fixed all open bugs, and responded to one of two Feature Requests
· Doxygen'd API, regression-tests pass on Linux
· Reworked data storage. Instead of one huge record for each file we now store the data in 4kB blocks. That greatly improves performance, storage efficiency and overcomes problems when storing files larger than 1MB. As a side effect it allows storing "sparse" files.