9 $wikiuser_pass = `wikiuser_pass`
;
10 $wikiadmin_pass = `wikiadmin_pass`
;
11 $wikisql_pass = `wikisql_pass`
;
13 if ( @$argv[1] == 'yaseo' ) {
51 print "/*!40100 set old_passwords=1 */;";
52 print "/*!40100 set global old_passwords=1 */;";
54 foreach( $hosts as $host ) {
55 print "--\n-- $host\n--\n\n-- wikiuser\n\n";
56 print "GRANT REPLICATION CLIENT,PROCESS ON *.* TO 'wikiuser'@'$host' IDENTIFIED BY '$wikiuser_pass';\n";
57 print "GRANT ALL PRIVILEGES ON `boardvote%`.* TO 'wikiuser'@'$host' IDENTIFIED BY '$wikiuser_pass';\n";
58 foreach( $databases as $db ) {
59 print "GRANT SELECT, INSERT, UPDATE, DELETE ON `$db`.* TO 'wikiuser'@'$host' IDENTIFIED BY '$wikiuser_pass';\n";
62 print "\n-- wikiadmin\n\n";
63 print "GRANT PROCESS, REPLICATION CLIENT ON *.* TO 'wikiadmin'@'$host' IDENTIFIED BY '$wikiadmin_pass';\n";
64 print "GRANT ALL PRIVILEGES ON `boardvote%`.* TO wikiadmin@'$host' IDENTIFIED BY '$wikiadmin_pass';\n";
65 foreach ( $databases as $db ) {
66 print "GRANT ALL PRIVILEGES ON `$db`.* TO wikiadmin@'$host' IDENTIFIED BY '$wikiadmin_pass';\n";