You are on page 1of 1

MYSQL INSTALLATION:

1) sudo apt-get install mysql-server php5-mysql


2) sudo mysql_install_db
3) sudo mysql_secure_installation (answer carefully)

At this point, your database system is now set up and we can move on.

Login into mysql:

mysql -u root -p

and the enter your password

creating database:

CREATE DATABASE menagerie;


Select database

use database_name;

MYSQL DRIVER INSTALLATION:

1) sudo apt-get install libmysql-java (for mysql driver installation)

2) gedit ~/.bashrc (open bashrc file in text editor)

3) export CLASSPATH=$CLASSPATH:/usr/share/java/mysql-connector-java.jar
(add this line at the end of bashrc file )

You might also like