Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: wr0ngway/rubber
base: 741970583e
...
head fork: wr0ngway/rubber
compare: 5f4cf89cca
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Aug 24, 2012
@willkoehler willkoehler Delete anonymous MySQL user when bootstrapping the db. Fixes #185 ce84ff2
Commits on Aug 25, 2012
@nirvdrum nirvdrum Merge pull request #212 from willkoehler/mysql_5.5_fixes
Delete anonymous MySQL user when bootstrapping the db.
5f4cf89
Showing with 1 addition and 0 deletions.
  1. +1 −0  templates/mysql/config/rubber/deploy-mysql.rb
View
1  templates/mysql/config/rubber/deploy-mysql.rb
@@ -40,6 +40,7 @@
pass = "identified by '#{env.db_pass}'" if env.db_pass
rubber.sudo_script "create_master_db", <<-ENDSCRIPT
mysql -u root -e "create database #{env.db_name};"
+ mysql -u root -e "delete from mysql.user where user='' and host='localhost';"
mysql -u root -e "grant all on *.* to '#{env.db_user}'@'%' #{pass};"
mysql -u root -e "grant select on *.* to '#{env.db_slave_user}'@'%' #{pass};"
mysql -u root -e "grant replication slave on *.* to '#{env.db_replicator_user}'@'%' #{pass};"

No commit comments for this range

Something went wrong with that request. Please try again.