Changeset 10314
- Timestamp:
- 2005-07-26T14:19:28+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/build.xml
r10311 r10314 281 281 proxy.port=${proxy.port} 282 282 mysql.installed.path=${mysql.installed.path} (this is the location of mysql if it is already installed) 283 mysql.admin.user=${mysql.admin.user}284 283 mysql.port=${mysql.port} 285 284 If these are not acceptable, please change them and rerun this target. Continue [y/n]?" /> … … 708 707 <exec executable="${mysql.home}/bin/mysql" dir="${mysql.home}"> 709 708 <arg value="--user=root"/> 710 <arg value="--execute=GRANT SELECT,INSERT,DELETE,UPDATE,DROP,CREATE ON *.* TO gsdl3admin@localhost identified by 'greenstone';"/> 711 </exec> 709 <arg value="--execute=GRANT SELECT,INSERT,DELETE,UPDATE,DROP,CREATE ON *.* TO gsdl3admin@localhost identified by '${mysql.admin.password}';"/> 710 </exec> 711 <!--<exec executable="${mysql.home}/bin/mysql" dir="${mysql.home}"> 712 <arg value="- -user=root"/> 713 <arg value="- -execute=GRANT SELECT,INSERT,DELETE,UPDATE,DROP,CREATE ON *.* TO gsdl3admin@'%';"/> 714 </exec>--> 712 715 <exec executable="${mysql.home}/bin/mysql" dir="${mysql.home}"> 713 716 <arg value="--user=root"/> 714 <arg value="--execute=GRANT SELECT,INSERT,DELETE,UPDATE,DROP,CREATE ON *.* TO gsdl3admin@'%';"/> 715 </exec> 716 <exec executable="${mysql.home}/bin/mysql" dir="${mysql.home}"> 717 <arg value="--user=root"/> 718 <arg value="--execute=GRANT SELECT ON *.* TO gsdl3reader@localhost identified by 'greenstone';"/> 717 <arg value="--execute=GRANT SELECT ON *.* TO gsdl3reader@localhost identified by '${mysql.reader.password}';"/> 719 718 </exec> 720 719 <!-- load in the demo collection database --> … … 779 778 </target> 780 779 781 <target name="stop-mysql" depends="init " if="mysql.islocal"780 <target name="stop-mysql" depends="init,setup-mysql-root-password" if="mysql.islocal" 782 781 description="Shutdown only mysql"> 783 <echo>Shutting down the mysql server. At the p rompt, enter the mysql root password.</echo>782 <echo>Shutting down the mysql server. At the password prompt (linux only), enter the mysql root password.</echo> 784 783 <exec executable="${mysql.home}/bin/mysqladmin" dir="${mysql.home}" 785 784 failonerror="true" os="${os.linux},{os.mac}"> … … 789 788 <arg value="shutdown"/> 790 789 </exec> 790 <!-- on windows it doesn't work unless the password is specified here --> 791 791 <exec executable="${mysql.home}/bin/mysqladmin" dir="${mysql.home}" 792 792 failonerror="true" os="${os.windows}"> 793 793 <arg value="--user=root"/> 794 <arg value="-p "/>794 <arg value="-p${mysql.root.password}"/> 795 795 <arg value="shutdown"/> 796 796 </exec>
Note:
See TracChangeset
for help on using the changeset viewer.