A repository for Pinba-related brews.
- Homebrew
- Homebrew-PHP (Optional, for phpXY-pinba brews)
- Snow Leopard, Lion, Mountain Lion, Mavericks. Untested everywhere else.
Run the following in your terimnal:
brew tap in2pire/pinba
Then if you are using mysql, run:
brew install mysql-engine-pinba
Or if you are using percona-server, run:
brew install percona-engine-pinba
After installing pinba engine, you need to install the plugin and default tables:
mysql -e "INSTALL PLUGIN pinba SONAME 'libpinba_engine.so';"
mysql -e "CREATE DATABASE pinba;"
# If you are using percona-server
mysql -D pinba < /usr/local/opt/percona-engine-pinba/default_tables.sql
# If you are using mysql
mysql -D pinba < /usr/local/opt/mysql-engine-pinba/default_tables.sql
Optional: If you need PHP extension, run:
brew install phpXY-pinba
with XY is your PHP version (see homebrew/php), don't forget to edit ext-pinba.ini to enable and set pinba server. After that, restart your web server.
- Create mariadb-engine-pinba for mariadb
Do anything you want :)