在 Firebase 控制台中查看和修改 Realtime Database 数据
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
Firebase 控制台中的数据页面提供了 Realtime Database 实例中包含的数据的概览。当您首次设置数据库结构时,控制台的此页面会非常有用。
在此页面上,您可以导入或导出 JSON 格式的数据库数据,或者在网页界面中手动修改数据。如需详细了解有关数据结构的最佳实践,请根据所选平台参阅相应的“设计数据库的结构”页面:
iOS+ | Android | Web | Flutter | Unity | C++ | 服务器 | REST。
导出 JSON 数据
要以 JSON 格式导出数据,请执行以下操作:
选择要导出的节点。节点的所有子元素也都会导出。
依次点击 more_vert > 导出 JSON。
浏览器就会开始为您的数据库数据下载 JSON 文件。
导入 JSON 数据
要导入数据,请执行以下操作:
选择要向其中导入数据的节点。被导入数据中的子元素会自动创建。
依次点击 more_vert > 导入 JSON。
浏览到要导入的文件,然后点击导入。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-12。
[null,null,["最后更新时间 (UTC):2025-08-12。"],[],[],null,["\u003cbr /\u003e\n\nThe **Data** page in the Firebase console provides an overview of the data\ncontained in your Realtime Database instances. This page of the console can be\nhelpful when you're setting up your database structure for the first time.\n\nFrom this page you can import or export your database data in JSON format, or\nmanually edit data in the web interface. For more information on best-practices\nwith structuring your data, see the \"Structure Your Database\" page for the\nplatform of your choice: \n\n[iOS+](/docs/database/ios/structure-data) \\|\n[Android](/docs/database/android/structure-data) \\|\n[Web](/docs/database/web/structure-data) \\|\n[Flutter](/docs/database/flutter/structure-data) \\|\n[Unity](/docs/database/unity/structure-data) \\|\n[C++](/docs/database/cpp/structure-data) \\|\n[Server](/docs/database/admin/structure-data) \\|\n[REST](/docs/database/rest/structure-data).\n\nExport JSON data\n\nTo export data as JSON:\n\n1. Select the node that you want to export.\n This also exports all children of the node.\n\n2. Click more_vert **\\\u003e Export JSON**.\n\nYour browser will begin downloading a JSON file for your database data.\n\nImport JSON data\n\nTo import data:\n\n1. Select the node that you want to import data to.\n Child elements in the imported data are automatically created.\n\n2. Click more_vert **\\\u003e Import JSON**.\n\n3. Browse to the file that you want to import and click **Import**."]]