您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

MySQL的文件系统_MySQL

2024/3/15 2:57:34发布21次查看
这个文件系统还处于实现中,还不是正式产品。
这是一款正在开发中的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/
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product