Browse Source

Trying to fix a few prod bugs

msmith-techempower 10 năm trước cách đây
mục cha
commit
e3a2073f36
2 tập tin đã thay đổi với 8 bổ sung3 xóa
  1. 7 2
      config/create.sql
  2. 1 1
      toolset/setup/linux/languages/php.sh

+ 7 - 2
config/create.sql

@@ -1,6 +1,11 @@
 # create benchmark user
-GRANT ALL ON *.* TO 'benchmarkdbuser'@'%' IDENTIFIED BY 'benchmarkdbpass';
-GRANT ALL ON *.* TO 'benchmarkdbuser'@'localhost' IDENTIFIED BY 'benchmarkdbpass';
+REVOKE ALL ON *.* FROM 'benchmarkdbuser'@'%';
+REVOKE ALL ON *.* FROM 'benchmarkdbuser'@'localhost';
+
+GRANT ALL ON hello_world.world TO 'benchmarkdbuser'@'%' IDENTIFIED BY 'benchmarkdbpass';
+GRANT ALL ON hello_world.world TO 'benchmarkdbuser'@'localhost' IDENTIFIED BY 'benchmarkdbpass';
+GRANT SELECT ON hello_world.fortune TO 'benchmarkdbuser'@'%' IDENTIFIED BY 'benchmarkdbpass';
+GRANT SELECT ON hello_world.fortune TO 'benchmarkdbuser'@'localhost' IDENTIFIED BY 'benchmarkdbpass';
 
 # modified from SO answer http://stackoverflow.com/questions/5125096/for-loop-in-mysql
 DROP DATABASE IF EXISTS hello_world;

+ 1 - 1
toolset/setup/linux/languages/php.sh

@@ -12,7 +12,7 @@ VERSION="5.5.17"
 PHP_HOME=$IROOT/php-$VERSION
 
 # Precaution, unlikely to happen.
-rm -rf $IROOT/php
+rm -rf $IROOT/php PHP_HOME cphalcon
 
 fw_get -o php-${VERSION}.tar.gz http://php.net/distributions/php-${VERSION}.tar.gz
 fw_untar php-${VERSION}.tar.gz