mysql> SET PASSWORD FOR 'usuario'@'host' = PASSWORD('contraseña');
Step 5: Create a start/stop/restart script for JBoss.
For our JBoss script we will simply copy the existing jboss_init_redhat.sh script located at at /usr/share/jboss-5.1.0.GA/bin, copy it to /etc/init.d and rename it to 'jboss':
1. Create a new file called java.sh
2. Within this file, initialize the necessary environment variables
… more variables
Now when you restart your machine, the environment variables within java.sh will be automatically initialized (checkout /etc/profile if you are curious how the files in /etc/profile.d/ are loaded) .
zip -9 -r <zip file> <folder name>
To zip a single file:
zip -9 <zip file> <filename>
Use "-9" for best compression. The compressed file works fine with Windows XP compression tool.