MySQL

How to change the root password
$ mysql -u root -p $ (Enter the current password) In MySQL, $ > use mysql; $ > update user set password=password('NEW_PASSWORD') where User='root'; $ > flush privileges; $ > exit; Again in prompt, $ sudo service mysql restart $ mysql -u root -p $ (Enter the new password)

JDBC driver
To use MySQL via Tomcat, install JDBC driver. $ sudo apt-get install libmysql-java Set the environmental variable in  . export CLASSPATH=$CLASSPATH:/usr/share/java/mysql.jar