首页 > 解决方案 > 更改在 Kubernetes Pod 中运行的 SQLite 的默认存储位置

问题描述

Kubernetes Pod 中 SQLite 数据库的默认存储位置是/home/me/. 当我每次创建数据库时,它都会存储在/home/me/目录中。

我想将其更改为/home/database.

我尝试通过尝试像这样更改 data_store_directory 来自己更改它

PRAGMA data_store_directory; 

PRAGMA data_store_directory = 'directory-name';

但这不会在 data_store_directory 中写入任何内容。

任何人都可以指定如何自定义在 kubernetes 的 pod 内运行的 SQLite 数据库的存储位置。

标签: sqlitekubernetes

解决方案


推荐阅读