/[libdata]/branches/pear-db/my2pg/install.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /branches/pear-db/my2pg/install.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 48 - (hide annotations)
Fri Mar 5 13:45:55 2004 UTC (20 years, 2 months ago) by dpavlin
File MIME type: application/x-sh
File size: 421 byte(s)
moved mysql_ -> xx_ cludges to my2pg dir

1 dpavlin 35 #!/bin/sh
2    
3 dpavlin 40 dropdb libdata || (
4     sudo /etc/init.d/apache restart
5     dropdb libdata || exit;
6     )
7 dpavlin 35 createdb libdata
8    
9     psql libdata < libdata.pgsql
10     psql libdata < libstats.pgsql
11     psql libdata < libsession.pgsql
12    
13 dpavlin 40 # reset all passwords to libdata (password file format isn't compatibile
14     # because MySQL is using password function and we are using md5 hash
15     psql libdata -c "update staff set password=md5('libdata') where staff_id > 1"

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26