My favorites | Sign in
Project Logo
                
Search
for
Updated Sep 22, 2008 by ybishr
Labels: Phase-Deploy
SetupGnizrDatabase  
Prepare MySQL database for gnizr installation

This page describes the steps to prepare MySQL database for gnizr installation. These steps must be performed before running the gnizr web application.

Requirement

  1. Install MySQL 5.0
  2. Create a database schema for gnizr
  3. Create a database account for gnizr, and make sure this account has all the necessary privileges to manage and access the gnizr database schema
  4. Download and unpack a gnizr release

Note: We assume that you have properly installed MySQL database. If you need addition help on using MySQL, see http://dev.mysql.com

Create database tables and stored procedures

  1. Go to the SQL script directory
  2. Run BASH script to setup database
  3. Done!

Upgrade database tables and stored procedures

Instructions described in this section are for upgrading gnizr software from an existing installation. If you install gnizr for the first time, follow instructions in "Create database tables and stored procedures".

Upgrading to gnizr 2.3.0

If you are currently running gnizr 2.2.x or 2.3.0 milestones, do the following:

  1. Backup your existing database -- always a good idea :-)
  2. Go to the SQL script directory
  3. Run BASH script to upgrade database
  4. Done!

Related


Comment by wxleida, Nov 18, 2007

安装好了,但是还不知道怎么具体用哦,哈哈

Comment by harry.chen, Nov 28, 2007

〉安装好了,但是还不知道怎么具体用哦,哈哈

你可以看看 http://code.google.com/p/gnizr/wiki/GetStarted

如果someone可以翻譯this document, 哪就好了!

Comment by rrezinas, Jan 03, 2008

Suggested addition to Upgrading... 0. Always backup your database (I didn't have a problem, but having a backup is peace of mind.)

Comment by rrezinas, May 29, 2008
Accidentally blew out my db and had to restore from backup when I hurried through the upgrade instructions. This suggestion is for a code addition to loadsch.sh before it starts doing anything to check for the existence of tables:

rows=mysql -u $USER -p${PASS} -e "show tables" $DB |wc -l

if $rows -gt 0

then echo "Looks like the gnizr has already been installed...Maybe you'd prefer to
upgrade with loadup.sh?"
echo "Otherwise clear out the database to do a full install" exit 1
fi

Comment by rrezinas, May 29, 2008

just noticed that the wiki removed my backticks...they should be surrounding the entire statement afters rows=

Comment by harry.chen, May 29, 2008

rrezinas, thank you for the suggestion. i will try to merge your code into the install scripts in the next release.

Comment by mvoorhis, Aug 25, 2008

"make sure this account has all the necessary privileges to manage and access the gnizr database schema"

What privs ARE necessary? Creating the account is only a one line command in MySQL, perhaps we could have an example?

Comment by mvoorhis, Sep 03, 2008

It appears that the assertion "MySQL 5.0+" is incorrect. The thread at

http://groups.google.com/group/gnizr-users/browse_thread/thread/0b414ba735b5f760

Shows that an error is thrown at step 3 (./loadupg.sh gnizr_db gnizr gnizrpass) using 5.1.23. I also encountered this error (3 September 2008).

The "REQUIREMENT" above should be altered so that others don't need to encounter the same problems.

Comment by livingbody, Nov 24, 2008

how to install sql under winXP


Sign in to add a comment
Hosted by Google Code