Home > Database > Mysql Tutorial > MySQL的文件系统_MySQL

MySQL的文件系统_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:55:22
Original
922 people have browsed it

这个文件系统还处于实现中,还不是正式产品。

这是一款正在开发中的Linux 文件系统,能把Linux 上的MySQL 数据库作为文件系统来处理。开发小组希望能得到更多的建议,下面的文章翻译自: http://no.spam.ee/~tonu/mysqlfs.html

--------------------------------
实际上,这不是通常意义上的文件系统,它没有磁盘空间,而是使用MySQL 守护程序来存储数据。可以把SQL 表和一些函数通过文件系统来实现。

一、怎样实现?

让我们来看使用实例:

[root@localhost /root]# mount -t corbafs -o `cat /tmp/mysqlcorbafs.ior` none
/mnt/mysql/

[root@localhost /root]# mount
/dev/hda3 on / type ext2 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda1 on /mnt/win type vfat (rw,mode=777)
/dev/hda4 on /mnt/linux type vfat (rw,noexec,nosuid,nodev,mode=777)
none on /mnt/mysql type corbafs
(rw,IOR:01e50d401b00000049444c3a436f72626146532f46696c6553797374656d3a312e 300000010000000000000030000000010100000a0000003132372e302e302e310008041800
0000000000009224bc335663462a01000000ef7ae13c0943c59f)

[root@localhost /root]# ls -la /mnt/mysql/

total 0

-r-xr-xr-x 1 root root 4096 dets 29 22:21 .uptime
dr-xr-xr-x 1 root root 4096 dets 29 22:21 test
dr-xr-xr-x 1 root root 4096 dets 29 22:21 mysql

[root@localhost /root]# cat /mnt/mysql/.uptime

1994

[root@localhost /root]# cat /mnt/mysql/mysql/user/Host

cpq.spam.ee
cpq.spam.ee
localhost
localhost
localhost
localhost
localhost
localhost

[root@localhost /root]# cat /mnt/mysql/mysql/user/Insert_priv
N
N
N
N
N
N
Y
Y

[root@localhost /root]# umount /mnt/mysql/

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template