From 97a88e1944a9eeac1c23ae27ee22a1946118b5a3 Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 25 Nov 2020 23:59:06 +0700 Subject: [PATCH] modified: doc/Migrate.md --- doc/Migrate.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/doc/Migrate.md b/doc/Migrate.md index 8fc4193ba1..4093928d0c 100644 --- a/doc/Migrate.md +++ b/doc/Migrate.md @@ -1,4 +1,4 @@ -Migrating to a different Server +Migrating to a new server =============== * [Home](help) @@ -28,6 +28,22 @@ This process may take a long time depending on the size of your storage. [Removing expired items] + +To review the size of your database, log into MySQL with ``mysql -p`` run the following query: + +``SELECT table_schema AS "Database", SUM(data_length + index_length) / 1024 / 1024 / 1024 AS "Size (GB)" FROM information_schema.TABLES GROUP BY table_schema;`` + +You should see an out like this: + +```` ++--------------------+----------------+ +| Database | Size (GB) | ++--------------------+----------------+ +| friendica | 8.054092407227 | +| [..........] | [...........] | ++--------------------+----------------+ +```` + ### Configuration files