There are two primary databases that are used in the BatCave. One database collects the real-time data from the Alfred and alfserver processes. A second database contains the SQL queries to access this data and HTML templates to display the data.
NOTE: A basic understanding of MySQL database administration is expected to be able to set up the BatCave. Information on database administration can be found online at the MySQL website: http://dev.mysql.com/doc/mysql/en/mysql-database-administration.html.
It is assumed that you have already chosen a database server, and have installed MySQL server. The BatCave should work with any MySQL version from 4.1 on, but has been tested more extensively with MySQL version 4.1.7.
Locate the script titled createtables.sql
For example:
mysql -u alfsqluser alfsqldatabase <
createtables.sql
NOTE: The database which contains the Templates and Queries tables MAY be the same database which the active Alfred data is collected. However, placing these tables in a separate database may reduce traffic slightly. Because the BatCave software treats this as two separate database connections, this allows you the freedom to install the Templates and Queries in a different database, which can be used for editing new templates, prior putting them into production.
For example:
mysql -u alfsqluser alfsqldatabase <
createtemplates.sql
NOTE: A basic understanding of PostgreSQL database administration is expected to be able to set up the BatCave. Information on database administration can be found online at the PostgreSQL website: http://www.postgresql.org/docs/7.4/interactive/admin.html.
It is assumed that you have already chosen a database server, and have installed PostgreSQL server. The BatCave should work with any PostgreSQL version from 7.4 on, but has been tested more extensively with version 7.4.12.
Locate the script titled createtables.psql
For example:
psql -U alfsqluser alfsqldatabase < createtables.psql
NOTE: The database which contains the Templates and Queries tables MAY be the same database which the active Alfred data is collected. However, placing these tables in a separate database may reduce traffic slightly. Because the BatCave software treats this as two separate database connections, this allows you the freedom to install the Templates and Queries in a different database, which can be used for editing new templates, prior putting them into production.
For example:
psql -U alfsqluser alfsqldatabase < createtemplates.psql
|
Pixar Animation Studios
|