DBIx-Custom / t / _run / common-postgresql.run /
Newer Older
37 lines | 0.701kb
added run file
Yuki Kimoto authored on 2011-08-13
1
### CentOS5
2

            
3
# Install
4
yum -y install postgresql-server
5
yum -y install postgresql
6
yum -y install postgresql-devel
7
chkconfig --level 2345 postgresql on
8

            
9
# Start server
10
service postgresql start
11

            
12
# Change config file
13
vi /var/lib/pgsql/data/pg_hba.conf
14
  # "local" is for Unix domain socket connections only
15
  local   all         all                               trust
16

            
updated private test
Yuki Kimoto authored on 2012-02-28
17
createuser dbix_custom
added run file
Yuki Kimoto authored on 2011-08-13
18
  # Shall the new role be a superuser? (y/n) -> y
19

            
20
createdb dbix_custom -U dbix_custom
21

            
22
# Connect to database
23
psql -U dbix_custom dbix_custom
24

            
25
# Install DBD::pg
26
cpanm DBD::Pg
27

            
updated private test
Yuki Kimoto authored on 2012-02-28
28

            
29

            
30

            
31
########### Memo ##############
added run file
Yuki Kimoto authored on 2011-08-13
32

            
33
# Drop user
34
dropuser dbix_custom
updated private test
Yuki Kimoto authored on 2012-02-28
35

            
36
Ctrl + D でデータベースからでることができる。
37