From: http://www.cnblogs.com/jobs/archive/2004/11/01/59428.html
I installed PostgreSQL 8.0.0 beta 4 today. It seems to be good. PostgreSQL 7.x requires a simulator to be installed to run on windows. In MySQL 8.0, it supports windows directly.
Follow these steps to solve the problem by referring to the online method. (Which step is required? So far it is not very clear. O (∩ _ ∩) O Haha ~)
1. When PostgreSQL is installed for the first time, the database cluster initialisation failed is
Localization: Refers to cultural preferences related to characters, sorting, digit formats, currency symbols, etc.
PostgreSQL provides Localization support in two ways:
1. Obtain localization preferences through the OS used
Super User: similar to SA, root, sysdba of other systems
The name of the first superuser created during initdb.exe Initialization is the same as the OS account used for executing initdb.exe.
Oid of the first superuser = 10
Superuser is not
As follows:
The first egg?Postgres. BKI and *. SQL files under. \ share \
Initdb.exe initializes the database storage cluster according to the ipvs. BKI and *. SQL files under. \ share. The initialization cluster contains three databases and one
Environment: Operating System: Ubuntu server 10.10 PostgreSQL version: 8.4.51. Switch to the root account, create the softwares directory under the root directory, and grant the corresponding Permissions
2. Download PostgreSQL 8.4.5
Wget
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Create
Function
Join_two_with_comma (
Text
,
Text
)
Returns
Text
Language SQL
As
$ _ $
Select
Case
When
$
Installation environment:
Ubuntu 10.04-desktop-i386
PostgreSQL 8.4
1. Install PostgreSQL
Enter the following command
Sudo apt-Get install PostgreSQL
The system prompts you to install the required disk space. Enter "Y" to
First, I declare that I have just entered the PostgreSQL camp from the MSSQL camp. I have been deeply impressed by MSSQL over the past few days!
Go to the topic. In MSSQL, you can easily use select * From otherdb for cross-database (same server or
Preface:
As an excellent collaborative development software in the Open Source world, gforge provides a complete software development platform for open source software development, developers are encouraged to make full use of this open platform to
Backup:
Pg_dumpall-u Postgres> backup_file
Recovery:
Psql-u Postgres
Upgrade (of course, migrate the previous data to the new system ):
The PostgreSQL version I used on Windows XP is 8.1. Now that the new version 8.3.4 is available, I want
PostgreSQL is not very familiar with it. I don't know if there is any good way to retrieve the number of records in all tables and tables in the data. Please tell us if you have any good methods. Thank you !!
There was a database with more than 2
MySQL has a clustering function group_concat, which can concatenate fields by group ID, such
Table:ID name---------------12 B1 B
Select ID, group_concat (name) from XXX group by IDThe result is
Id group_concat (name)---------------------------1 A, B2
Connect to the PostgreSQL database through ODBC and C #Using system;
Namespace Test{Class mainclass{Static void main (){System. Data. ODBC. odbcconnection conn = new system. Data. ODBC. odbcconnection ();System. Data. ODBC. odbccommand cmd = new
Overview
PostgreSQL 8.0.2 has been officially released. This version is widely recommended and has been directly supported by the windows2k/xp platform since 8.0, the pgadmin III Graphic Interface database management tool (open-source) is attached
Create a project and reference npgsql to define the connection parameters.
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->String strconn = @ "Server = 127.0.0.1; database = template_postgis;
After taking a lot of detours, I finally fixed this issue and posted it here to share with you.
1: download and install the PostgreSQL ODBC driverHttp://www.postgresql.org/ftp/odbc/versions/msi/2: Configure ODBC to connect to the PostgreSQL
Initial Application of postgresql
1. initialize the database: initdb-D/usr/local/pgsql/Data
2. Start the posgresql Database: postmaster-I-d/usr/local/pgsql/Data
3. Create a spatial database: createdb gisdb
4. Open the GIS database: Psql gisdb, and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service