Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qCfQb-0000Ux-Tl for pgsql-general@arkaria.postgresql.org; Fri, 23 Jun 2023 11:58:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qCfQZ-00007m-MJ for pgsql-general@arkaria.postgresql.org; Fri, 23 Jun 2023 11:58:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qCfQZ-000064-Aj for pgsql-general@lists.postgresql.org; Fri, 23 Jun 2023 11:58:11 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qCfQT-0000Qa-Qb for pgsql-general@lists.postgresql.org; Fri, 23 Jun 2023 11:58:10 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3f900cd3f96so6855555e9.2 for ; Fri, 23 Jun 2023 04:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1687521484; x=1690113484; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=JIHUPVLjy3+v2awBVFGW5qttGfUOMyirRayLUmmTLMc=; b=DoU4L0uNFq9eOnzuQ9Lw+Fhpsz4udtfOco+FU+GlyhYzgzys9BjOxXuw4uxAYt8AuR QDx4xZ4LMZuyBEPEpQjIRu0L2QUTQmStBHBkJe+fsjSCtlGA3VUNoDKkPd0bgZfpMqHZ oAT8iVOnwTcCxCCmfc7VrCETUmmYoTWajo/pBZCDK7TIC6LG0iilKrXlmJrLlEgQAXGC ZyFBGRxj8iIqOJx1ogu92eMHBR5crNO0UDxa9Cqjenr0HBn4FnIzIC2dm47rTnBvXvfz sHBkwTCxMnlA5XW9ex25Og+zFB2V4ttqIsiEW9eQ4J68RaYonot85OuZL6EEF4PV72i1 vUBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687521484; x=1690113484; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JIHUPVLjy3+v2awBVFGW5qttGfUOMyirRayLUmmTLMc=; b=JLC04omOXs1weeA+o/2GjbSRwdsHJAIvQDHj2papZGndRyJhf6XhljDeez0U8cAnQa whgzVmxJt6ccAkegeJ+00PeyrSqnYkqIsQiXpB0IGmVA90HrbU+AsPr2IUCv+PUn/eJ4 ouzwoSqkDRXXfa55K9Vw8+63CabYk3LAHwAnVcU2Rzuw/uV2WvNQzuGm+naVh1CV4ZvL tPkUkRdg7HRlamvoopfJe6OmcALjqPkIYa2Dc7LzbLQVE4+Q1qvyGg2yx+HoO4md9f1D KYq/ExQroWcq3S8Gmvhu5tGYF7rH5V8xTTcUm7iF6GYFUTWOCFX6nmsYqd6ESPXBqsF7 eVlg== X-Gm-Message-State: AC+VfDxTni20qi0aOiqVgYK/Lng9mvWd2xNKm4xtoUtAf5/1vyFYItZD ssK/SrX6a6/pzapXU9tmKRwaJA== X-Google-Smtp-Source: ACHHUZ6YVEJC4yLn6Q+W71o0XzpRyZfZHBwDrDG84J5MgMwAlg03m7EgXJew4q9YOJaGmAudoqh5Sg== X-Received: by 2002:a7b:c7d5:0:b0:3fa:792c:9a66 with SMTP id z21-20020a7bc7d5000000b003fa792c9a66mr2198082wmk.28.1687521483794; Fri, 23 Jun 2023 04:58:03 -0700 (PDT) Received: from [10.137.0.17] (static-84-42-175-93.bb.vodafone.cz. [84.42.175.93]) by smtp.gmail.com with ESMTPSA id l19-20020a1ced13000000b003f78fd2cf5esm2130657wmh.40.2023.06.23.04.58.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Jun 2023 04:58:03 -0700 (PDT) Message-ID: Date: Fri, 23 Jun 2023 13:58:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.1 Subject: Re: move databases from a MySQL server to Postgresql. To: Alfredo Alcala , pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/23/23 13:45, Alfredo Alcala wrote: > Hello > > I need to move some databases from a MySQL server to Postgresql. > > Can someone tell me the migration procedure, tools and recommendations? > I'm not an expect on this, but migrations tend to be somewhat application-specific. I'd suggest you take a look at this wiki page: https://wiki.postgresql.org/wiki/Converting_from_other_Databases_to_PostgreSQL#MySQL and maybe try some of the tools mentioned there (pgloader, mysql2pgsql, and so on). You'll have to give it a try on your databases, and then ask questions about practical issues you run ran into. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company