sqlite - 更改在 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 数据库的存储位置。
解决方案
推荐阅读
- google-maps - 使用矩形位置偏差的 Google Places API 附近搜索
- android - 如何在 android studio 中调试 React Native 原生模块?
- python - 处理由 npy 文件组成的大型数据集
- here-api - 我可以从 api 中获取历史天气数据吗?
- tfs - 如何进行 TFS 2015 总备份并将它们还原到另一台服务器
- php - 如何在 pecl zip 安装操作(使用旧版 PHP)中跟踪编译错误的原因?
- php - 令牌身份验证的钠加密身份验证与哈希等于
- omnet++ - INET错误:无法加载库“../../src//libINET.dll”:找不到指定的模块
- oracle - java.library.path 中没有 ocijdbc11 - 错误消息,无法连接
- android - 如何从 java 片段类中调用 kotlin 片段