Please note that this documentation now only refers to version 1.0 of GurbaniDB
- Small SQL Files - http://www.sikher.com/sql/ - This is the recommended way of using GurbaniDB because you can customize what you want to include in your database. The rest of this readme is designed only for these small SQL files
- One Big SQL File - This method is no longer supported
Please note: As of 20th of October 2013, ShabadID is now supported in GurbaniDB. Thanks to Harvinder Singh from khojgurbani.org for this data. ShabadID can be found in tblscripture which is part of gurbanidb_core.sql
-
gurbanidb_er.pdf
- This entity-relationship diagram maps all the primary and foreign key relationship between the tables -
gurbanidb_core.sql
- This contains all the core gurbanidb tables and so it should be installed first. Then you can pick and choose which translations or transliterations to add to your database by just dropping them in! -
In order to find a specific translation or transliteration please use the Translation Key or Transliteration Key at the bottom of this README to find the correct {number}:
http://www.sikher.com/sql/1.0/tbltranslation-{number}.sql
Or...
http://www.sikher.com/sql/1.0/tbltransliteration-{number}.sql
After downloading the files simply use the MySQL command-line to dump it
straight into your tbltranslation
or tbltransliteration
tables. If you are
unsure how to do this, it shall be explained later on in this README.
- Make sure you first know the path to your MySQL command-line. On Windows, if you have XAMPP installed this may be:
C:\xampp\mysql\bin\mysql.exe
. On Linux, this will usually be justmysql
. - Make sure you know your MySQL username, password and hostname. If working locally, your hostname will usually just be
localhost
. - Find out the link to your PhpMyAdmin installation. Again if using XAMPP, this will usually be
http://localhost/phpmyadmin/
.
-
Download the
gurbanidb_core.sql
file which gives you all the basic tables you need -
Use
phpmyadmin
to create a new database with the collationutf8_unicode_ci
. You can name the database anything you want, but a suggestion would begurbanidb
. -
Open up a new terminal or command prompt and
cd
into the directory yourgurbanidb_core.sql
file is located in -
Then run the following command in the terminal or command prompt, replacing the values with your MySQL connection details (and using the path to mysql we defined earlier in the Setup):
mysql
-uusername
-ppassword
-hhostname
database
< gurbanidb_core.sql
-
Let's do a quick data integrity check. Just make sure tblscripture has 60,403 rows in phpmyadmin. If it does, let's continue.
-
Now download the translations or transliterations you want to add to your database from
http://www.sikher.com/sql/
and put them in the same folder as before (wheregurbanidb_core.sql
is located). -
Now run the same command as before, but this time inputting the new translation/transliteration file:
mysql
-uusername
-ppassword
-hhostname
database
< translation-{number}
.sqlmysql
-uusername
-ppassword
-hhostname
database
< transliteration-{number}
.sql
-
Ok fantastic! Now time for another data integrity check. Please check each transliteration or transliteration has EXACTLY 60,403 rows in phpmyadmin, so if you have two translations, this should amount to exactly 120,806 rows.
-
Take a look at
gurbanidb_er.pdf
in order to determine how all the tables link together -
Success! You have installed GurbaniDB. More information on the database fields can be found in the developer guide here:
http://media.sikher.com/files/GurbaniDB_Cloud_Documentation.pdf
- Afrikaans
- Albanian
- Arabic
- Belarusian
- Bulgarian
- Catalan
- Chinese Simplified
- Chinese Traditional
- Croatian
- Czech
- Danish
- Dutch
- English
- Estonian
- Filipino
- Finnish
- French
- Galician
- German
- Greek
- Haitian
- Hebrew
- Hindi
- Hungarian
- Icelandic
- Indonesian
- Irish
- Italian
- Japanese
- Korean
- Latvian
- Lithuanian
- Macedonian
- Malay
- Maltese
- Norwegian
- Persian
- Polish
- Portuguese
- Romanian
- Russian
- Serbian
- Slovak
- Slovenian
- Spanish
- Swahili
- Swedish
- Thai
- Turkish
- Ukrainian
- Vietnamese
- Welsh
- Yiddish
- Arabic
- Armenian
- Bengali
- Cyrillic
- Devanagari
- Georgian
- Greek
- Gujarati
- Hangul
- Hebrew
- Hiragana
- Jamo
- Kannada
- Katakana
- Latin
- Malayalam
- Oryia
- Syriac
- Tamil
- Telugu
- Thaana
- Thai
- Email us - info {at} sikher {dot} com