Greyhole and MySQL
Posted: Fri May 07, 2010 8:17 am
Are there any plans to use MySQL with Greyhole on Amahi in the future? Most of the problems I've run into are due to the r/w locks.
Code: Select all
tail -f /var/log/greyhole.log
Code: Select all
hda-create-db-and-user greyhole
mysql -ugreyhole -pgreyhole greyhole < /usr/share/greyhole/schema-mysql.sql
Code: Select all
db_engine: mysql
# options for mysql db engine
db_name: greyhole
db_user: greyhole
db_pass: greyhole
db_host: localhost
Code: Select all
fd=`sqlite3 /var/cache/greyhole.sqlite "select value from settings where name = 'last_read_log_smbd_line'"`
mysql -uroot -phda -e "update settings set value = '$fd' where name = 'last_read_log_smbd_line'" greyhole
Thank you very much. This makes a big difference in my ability to Amahi.I'm personally using MySQL instead of sqlite.
Greyhole was developed using a MySQL backend.
Only the Amahi version of Greyhole uses SQLite.
To use MySQL yourself:
Create a greyhole MySQL database:Then edit /var/hda/platform/html/config/greyhole.yml:Code: Select all
hda-create-db-and-user greyhole mysql -ugreyhole -pgreyhole greyhole < /usr/share/greyhole/schema-mysql.sql
Finally, restart Greyhole:Code: Select all
db_engine: mysql # options for mysql db engine database: greyhole username: greyhole password: greyhole host: localhost
PS Sorry about the very late response... I didn't use a Google Alerts for greyhole posts in this forum before today!Code: Select all
service greyhole restart
Never thought anyone would ever need or want such a thing. Why?related question from left field - any thoughts of supporting postgres?
Partly curiosity, and partly because it's just been my professional experience that MySQL is a pile of turdNever thought anyone would ever need or want such a thing. Why?related question from left field - any thoughts of supporting postgres?