MySQL数据库的配置文件“my.cnf”,请参考
以下主要介绍“LD_PRELOAD”高性能的使用方法,其它使用方式请参考“快速入门“栏目中的#初始化MySQL数据库。
#DBFS_HOME的中值,通过dbfs_get_home_path.sh fsid得到,其中fsid为“db8acoqte8r9”,以下类同。
DBFS_HOME="/opt/dbfs/data/44a2444a-9c11-4612-93b2-916dedad1b0f/server/db8acoqte8r9" \
LD_PRELOAD="/usr/lib64/libdbfs_hook.so" /mnt/dbfs/v-bp196g0zi82d0pqte8r9/mysql-5.7.26/bin/mysqld --defaults-file=/mnt/dbfs/v-bp196g0zi82d0pqte8r9/my3307/my.cnf --initialize-insecure --user=root
#初始化完成后的data目录
[root@iZbp156ycm6s06xjdb8acoZ data]# ls -lrt
总用量 4160512
-rw-r----- 1 root root 1073741824 11月 18 19:27 ibdata1
-rw-r----- 1 root root 1073741824 11月 18 19:27 ibdata2
-rw-r----- 1 root root 524288000 11月 18 19:28 ib_logfile0
-rw-r----- 1 root root 524288000 11月 18 19:28 ib_logfile1
-rw-r----- 1 root root 524288000 11月 18 19:29 ib_logfile2
-rw-r----- 1 root root 524288000 11月 18 19:29 ib_logfile3
-rw-r----- 1 root root 56 11月 18 19:29 auto.cnf
drwxr-x--- 1 root root 0 11月 18 19:29 performance_schema
drwxr-x--- 1 root root 0 11月 18 19:29 mysql
drwxr-x--- 1 root root 0 11月 18 19:29 sys
-rw-r--r-- 1 root root 406 11月 18 19:29 ib_buffer_pool
-rw-r----- 1 root root 12582912 11月 18 19:30 ibtmp1
-rw-r--r-- 1 root root 5 11月 18 19:30 dbfs-node-1.pid
drwxr-x--- 1 root root 0 11月 18 19:32 sbtest