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 1jmLoP-0001cu-6d for pgsql-general@arkaria.postgresql.org; Fri, 19 Jun 2020 18:32:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jmLoN-0002gq-RK for pgsql-general@arkaria.postgresql.org; Fri, 19 Jun 2020 18:32:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jmLoN-0002gj-Jj for pgsql-general@lists.postgresql.org; Fri, 19 Jun 2020 18:32:23 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jmLoK-00068H-PV for pgsql-general@postgresql.org; Fri, 19 Jun 2020 18:32:22 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id B4C1E5C00A3; Fri, 19 Jun 2020 14:32:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 19 Jun 2020 14:32:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=l Ed7MDUD5XdbZQv0k0va45MuSRUXU2Tpx/7kt14jTKk=; b=EYxWhvpp89JN3xfyc eCskY95XMUXRKFk8Sjg+VXTGEEleL0qM7uBToZZRHN1BWX3E0QLqL13DCHKqEyOF ONVwSNQMOg5eifskOfzTte7njFCYhSR1d2ePG6nydA/PNyK0fBqcyiUGl51D83s5 1FBv1nqswl0zhC7cgVKYOd7uOIYtVQFLj+isyDUOUZxGfAwN7uOF7d6xS/qeEzWT gqUoBY8O0LxiDTDd2dx9ZNtSxe61RlKPiCOG2x0lvQxoMAz2fDrggUzaBSH4RJdg P5+sWnw+bBaDyYsm6QxLWVivMZCnxbhJza5qnFXTyumPMuCs2T/4+hnAuf0etGfa Fmwjg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=lEd7MDUD5XdbZQv0k0va45MuSRUXU2Tpx/7kt14jT Kk=; b=RNs/V5EpaDQ+bCgw3YjeLUhv00XkH6zfeN8d0ywdshBLr1szQF81iNFwf PEiEMMS+O7DbvL0hKZpcHIhZEwYZdQVaLBAjX5XWw2+2AEaDQvUr/4xoH2r9p8Yy WdAsUJ9czaWh+sd5ZXfX4xhXUsONT9Kev0lrayvnEgZ3u212AbROd/UlFLnMKmHE WcAWw09MGVBiAU7VfRcQeSTdOyfIexlZCzJKHwZfyT7NKer4gBMLHxW5lVcfAahv nB53cw2CegMj7MItw9ah+3YjN7dHWWt1iF2UKmr//jNZZ5ahHMVEx/Q/jAsQ99/k qFSAP+uddUuOnpV2tPF+ieoozhuEw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudejiedguddvjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepfeelfefgteefffduheeugfeijeejteehheekieel tdevuedtvdfggffghfeuffdtnecuffhomhgrihhnpehphhhprdhinhdprhgvrgguthhhvg guohgtshdrihhonecukfhppeejhedrudejvddrhedrvdefudenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrse grkhhlrghvvghrrdgtohhm X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 0D2B73061856; Fri, 19 Jun 2020 14:32:17 -0400 (EDT) Subject: Re: running a batch script To: Richard Bernstein , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: <58e1b1c5-a3e8-3e28-9edd-e00d91394fbd@aklaver.com> Date: Fri, 19 Jun 2020 11:32:17 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/19/20 8:30 AM, Richard Bernstein wrote: > I am trying to test out a package called phpGrid and I need to run > through its tutorial. But there are some "kinks". I am developing on my > ubuntu laptop in a docker container. The postgresql I need to test-to is > AWS RDS Postgresql.  I have an account and Server and can access it with > pgAdmin. The install instructs for phpGrid asked me to modify conf.php. > In my case I used app.conf which sets up the virtual host. I restarted > the containers. Next the tutorial wants me to "run" an sql batch script > to create the table. The batch script is pretty mySQL centric. I am > attaching it. > > Can I run this from pgAdmin the same way I would with phpMyAdmin in > mySQL? Do I need to modify the script for postgresql? Is this the Yes. This script is definitely MySQL specific. Some examples: USE `sampledb`; CREATE TABLE `changes` ( `n_r` int(11) NOT NULL AUTO_INCREMENT, <--That would be SERIAL or IDENTITY. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; <--No go. UNLOCK TABLES; and so on. > easiest way to create this sample table? I have one table that I have Take a look at: https://pgloader.readthedocs.io/en/latest/ref/mysql.html > created in pgAdmin called called imagesdatabase and I'd prefer not to > break that since it took some time with AWS support to get that going. -- Adrian Klaver adrian.klaver@aklaver.com