diff options
| author | Adam Vandenberg | 2011-04-04 16:56:47 -0700 | 
|---|---|---|
| committer | Adam Vandenberg | 2011-04-04 16:56:47 -0700 | 
| commit | 1fb85efce5e47a832f187f9c8ee12bc42649fa3a (patch) | |
| tree | bfaf9f7b0f5eb90f8d184179c0fa962621514240 /Library/Formula/mysql.rb | |
| parent | f9f90beaa129c78ab31a24c49960dce2455d9eda (diff) | |
| download | homebrew-1fb85efce5e47a832f187f9c8ee12bc42649fa3a.tar.bz2 | |
Rewrite caveats to new style.
To make it easier to copy and paste multiline scripts from caveats,
no longer use $ as a prompt marker.
Diffstat (limited to 'Library/Formula/mysql.rb')
| -rw-r--r-- | Library/Formula/mysql.rb | 27 | 
1 files changed, 14 insertions, 13 deletions
diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb index 98f80013d..48c444c99 100644 --- a/Library/Formula/mysql.rb +++ b/Library/Formula/mysql.rb @@ -65,37 +65,38 @@ class Mysql < Formula    def caveats; <<-EOS.undent      Set up databases to run AS YOUR USER ACCOUNT with: -      $ unset TMPDIR -      $ mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=#{var}/mysql --tmpdir=/tmp +        unset TMPDIR +        mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=#{var}/mysql --tmpdir=/tmp      To set up base tables in another folder, or use a differnet user to run      mysqld, view the help for mysqld_install_db: -      $ mysql_install_db --help +        mysql_install_db --help +      and view the MySQL documentation:        * http://dev.mysql.com/doc/refman/5.5/en/mysql-install-db.html        * http://dev.mysql.com/doc/refman/5.5/en/default-privileges.html      To run as, for instance, user "mysql", you may need to `sudo`: -      $ sudo mysql_install_db ...options... +        sudo mysql_install_db ...options...      Start mysqld manually with: -      $ mysqld_safe & +        mysqld_safe &      To connect: -      $ mysql -uroot +        mysql -uroot      To launch on startup:      * if this is your first install: -      $ mkdir -p ~/Library/LaunchAgents -      $ cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents/ -      $ launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist +        mkdir -p ~/Library/LaunchAgents +        cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents/ +        launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist      * if this is an upgrade and you already have the com.mysql.mysqld.plist loaded: -      $ launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist -      $ cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents/ -      $ launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist +        launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist +        cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents/ +        launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist -    You may need to edit the plist to use the correct "UserName". +    You may also need to edit the plist to use the correct "UserName".      EOS    end  | 
