freebsd-ports/databases/mysqlard/files/pkg-message.in
Gabor Kovesdan b12b87e98e - Use /bin/sh and do not depend on bash
PR:		ports/109768
Submitted by:	Pankov Pavel <pankov_p@mail.ru>
Approved by:	maintainer timeout
2007-03-17 22:22:19 +00:00

25 lines
766 B
Text

==============================================================================
1) Add the 'mysqlar' user with USAGE privileges to your mysql server:
$ mysql -u root -p mysql
mysql> GRANT USAGE ON *.* TO mysqlar@localhost;
mysql> FLUSH PRIVILEGES;
2) Add the mysqlard crontab to root's crontab:
*/5 * * * * /usr/bin/env hourly=1 daily=1 weekly=1 monthly=1 \
%%PREFIX%%/bin/mysqlar_graph > /dev/null
3) Add a line like this to your apache's httpd.conf:
Alias /mysqlar/ %%PREFIX%%/www/mysqlard/
<Directory "%%PREFIX%%/www/mysqlard">
Options Indexes FollowSymLinks MultiViews ExecCGI
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex mysqlar.php
</Directory>
==============================================================================