PostgreSQL

Let’s use PostgreSQL #1 Installing PostgreSQL on Ubuntu 12.10 & Getting started

января 8, 2013  |  Published in In English, PostgreSQL, Базы данных

postgresql_logoA few months ago I throught about migrating from MySQL to PostgreSQL. PostgeSQL has more features and is fast, stable and secure relative DB. And it is also free, open-source and has many different extensions. The main drawback of PostgreSQL is that it is more complicated than MySQL, so you should spend more time to learn how to work with it or hire an admin.

In this series of articles I want to describe how to drop MySQL, start to use PostgreSQL and how to be happy with this powerfull solution without hiring a DBA (only if you doesnt work with big and high-loaded projects).

Let’s start by installing PostgreSQL on your development machine.

I work on Ubuntu Linux 12.10 so I will describe process of installing PostgreSQL on Ubuntu 12.10. To install PostgreSQL 9.2 on your Ubuntu you should use this command in your terminal:

$ sudo apt-get install postgresql-9.2

After installing PostgreSQL you can check PostgreSQL version on your machine:

$ psql —version
psql (PostgreSQL) 9.2.2

So now you have PostgreSQL installed on your Ubuntu 12.10 machine. Read the rest of this entry »

Tags: , ,

Установка PostgreSQL 9.1 на Ubuntu Linux

марта 27, 2012  |  Published in PostgreSQL, Базы данных

postgresql_logo1. Открываем консоль и вбиваем  команду инсталяции:

$ sudo apt-get install postgresql-9.1 postgresql-server-dev-9.1

2. После того, как установка завершилась устанавливаем драйвер для Ruby:

$ gem install pg
Successfully installed pg-0.13.2

3. Пробуем запустить консоль PostgreSQL:

$ psql
psql: FATAL: role «vladimir» does not exist
$ sudo psql
psql: FATAL: role «root» does not exist Read the rest of this entry »

Tags: , , ,