background preloader

Configure JDBC with postgreSQL

Facebook Twitter

AWS: Install PostgreSQL on Amazon Linux (quick and dirty) - imperialWicket. I am going to break this into two articles.

AWS: Install PostgreSQL on Amazon Linux (quick and dirty) - imperialWicket

The first article will use yum (and the default amazon repositories) for the installation, all defaults, and the ec2 instance EBS root device. Some more in-depth installation techniques are in the next post (Install PostgreSQL 9.0 on Amazon Linux). It seems likely to me that you want some hybrid of the two versions, but this one will get you up and running in a few minutes. The goal is to install a PostgreSQL server on Amazon Linux, and to allow external access to that database server. Launch an instance Login, navigate to EC2 tab. Install and configure the PostgreSQL server Use yum to install the PostgreSQL utils, libs, and server.

Primeros pasos con PostgreSQL en Debian. Fecha de publicación del tutorial: 2008-02-20 Todos, o la mayoría hemos usado en mayor o menor medida mysql, ya sea para desarrollar o para aplicaciones en producción.

Primeros pasos con PostgreSQL en Debian

Tutorial de PostgreSQL - Clave primaria. Una clave primaria es un campo (o varios) que identifica un solo registro (fila) en una tabla.

Tutorial de PostgreSQL - Clave primaria

Para un valor del campo clave existe solamente un registro. Veamos un ejemplo, si tenemos una tabla con datos de personas, el número de documento puede establecerse como clave primaria, es un valor que no se repite; puede haber personas con igual apellido y nombre, incluso el mismo domicilio (padre e hijo por ejemplo), pero su documento será siempre distinto. Si tenemos la tabla "usuarios", el nombre de cada usuario puede establecerse como clave primaria, es un valor que no se repite; puede haber usuarios con igual clave, pero su nombre de usuario será siempre diferente.

1: Character Types. Table 8-4.

1: Character Types

Character Types Table 8-4 shows the general-purpose character types available in PostgreSQL. SQL defines two primary character types: character varying(n) and character(n), where n is a positive integer. Both of these types can store strings up to n characters in length. An attempt to store a longer string into a column of these types will result in an error, unless the excess characters are all spaces, in which case the string will be truncated to the maximum length. If one explicitly casts a value to character varying(n) or character(n), then an over-length value will be truncated to n characters without raising an error. Note: Prior to PostgreSQL 7.2, strings that were too long were always truncated without raising an error, in either explicit or implicit casting contexts.

PuTTY for SSH Tunneling to PostgreSQL Server. What is PuTTY PuTTY was developed by Simon Tatham and is a very common light-weight MIT-Licensed free and open source Secure Shell (SSH) client for connecting to Linux/Unix systems via a Teletype (TTY) terminal emulation mode console.

PuTTY for SSH Tunneling to PostgreSQL Server

Currently there are ports for Microsoft Windows, other unix like systems, and ports in progress for Mac OSX and Symbian mobile phone OS. PuTTY fits into that class of tools we affectionately call Swiss Army Knives because it is Light, Multi-Purpose, and Good Enough. As an added benefit it is free and open source with a generous license so it is commonly embedded in commercial apps. PuTTY comes in handy both as an SSH terminal console and as a SSH Tunneling tool which allows you for example to use PgAdmin III from a local windows workstation against a remote PostgreSQL server even in cases where the linux/unix PostgreSQL pg_hba.conf and postgresql.conf file only allow local connections or non-SSH traffic is blocked by firewall. Connecting with PgAdmin III. Cómo trabajar con PostgreSQL pgAdmin en Amazon EC2 - 23 Marzo 2012 - Blog - loc2log. PostgreSQL's command line client (psql) is indispensable, but visual tools definitely have their perks.

Cómo trabajar con PostgreSQL pgAdmin en Amazon EC2 - 23 Marzo 2012 - Blog - loc2log

Here how I’ve got my local pgAdmin III working with my Amazon EC2 machine. pgAdmin III - is a GUI client to administer and develop PostgreSQL databases. The official downloads page is at I used pgAdmin III version 1.14.2 for MS Windows. pgAdmin III installation is really trivial: On your local computer, download a version for your OS, unzip, start the msi. Follow the wizard. In order to connect to the postages instance in the cloud, I chose localhost tunnel ssh option as secure and not requiring any tweaks to the PostgreSQL config.

Ssh client is needed to establish the tunnel. Ls -l /home/your_user_name/.ssh/id_rsa-rw------- 1 your_user_name ... id_rsa. AWS: Install PostgreSQL 9.0 on Amazon Linux - imperialWicket. AWS: Install PostgreSQL 9.0 on Amazon Linux [UPDATE: Since writing this, Amazon has updated their repos (several times) for Amazon Linux. You can still use pgrpms and get the latest and greatest PostgreSQL, and that’s a fine technique. Introducci n al uso de PostgreSQL. Crear/eliminar tablas Volver atrs Concepto de tabla.

Introducci n al uso de PostgreSQL

Articulos - java - Conectando PostgreSQL con Java. File Browser. Skip site navigation (1) Skip section navigation (2) Peripheral Links File Browser Top → pgadmin3 → release → v1.14.3 → win32 Directories Files Current Maintainer.

File Browser

PostgreSQL Java tutorial. Home This is a Java tutorial for the PostgreSQL database.

PostgreSQL Java tutorial

It covers the basics of PostgreSQL programming with Java. In this tutorial, we use the PostgreSQL JDBC Driver driver. It is the official JDBC driver for PostgreSQL. The examples were created and tested on Ubuntu Linux. JDBC is an API for the Java programming language that defines how a client may access a database. Setting Up MySQL/JDBC Driver on Ubuntu « The Coded One. Assuming that you already have MySQL installed, the next step is to install the connector driver.

Setting Up MySQL/JDBC Driver on Ubuntu « The Coded One

You can do this easily on the CLI by using the following command: JDBC: Conectar Java con PostgreSQL « LiNpOx. JDBC (Java Data Base Connectivity), es el API para la conexión a bases de datos desde el lenguaje Java, lo que nos permite ejecutar operaciones sobre bases de datos, realizando estas operaciones con lenguaje SQL de la base de datos. Para realizar esta conexion aparte de conocer el lenguaje Java y tener todo lo necesario para compilar y ejecutar programas en este lenguaje, necesitamos tener instalado del driver JDBC en nuestra PC, para eso vamos al gestor de paquetes synaptic y descargamos el paquete libpg-java Luego que tenemos el driver instalado, creamos un archivo con nuestro editor de texto preferido y pegamos el siguiente codigo: Conexión a postgres desde Java « Blog de César Avila. Conexión a postgres desde Java Hace tiempo tuve la necesidad de conectarme a Postgres desde Java.

En esa ocasión tuve algunos problemas para hacerlo, por lo que hago esta pequeña guía para todos aquellos que se inicien en JDBC. PGConnection. Tutorial Java - 53 - Manipulando tablas de la Base de Datos. Download. About Binary JAR file downloads of the JDBC driver are available here and the current version with Maven Repository. Because Java is platform neutral, it is a simple process of just downloading the appropriate JAR file and dropping it into your classpath. Source versions are also available here for recent driver versions. Prior to the 8.0 release the JDBC driver was distributed with the server source code. Current Version. Preparing the Database Server for JDBC. PostgreSQL JDBC Driver. Chapter 5. Issuing a Query and Processing the Result. Setting up the jdbc driver in linux.