updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / libpreludedb / libpreludedb.install
blob20f45afce41464845c25460b59b53e22ab2157ba
1 post_install() {
2 cat << EOF
3 >>>
4 >>> To populate the Prelude IDS database, you need to follow several steps.
5 >>> First create a database. Login to the mysql command prompt.
6     $ mysql -u root -p
7     mysql> CREATE database prelude;
8 >>> Next, you need to create a Prelude user. At the same MySQL prompt:
9     mysql> GRANT ALL PRIVILEGES ON prelude.* TO prelude@'localhost' IDENTIFIED BY 'passwd';
10 >>> Replacing passwd with your chosen password.
11 >>> Finally, populate the database. Log out of mysql. At the shell: 
12     $ mysql -u prelude prelude -p < /usr/share/libpreludedb/classic/mysql.sql
13 >>> Enter the password you set in the previous step, and the database should be populated.
14 EOF
17 op=$1
18 shift
19 $op $*