Setting Up Java 7 , Netbeans , MySQL and a JDBC Connection in Linux -2

Hi folks, this is the next part of setting up your Java environment on your cool Linux Machines . I hope you were successful in setting up Java . Now in this tutorial I am gonna tell you how install the MySQL client , server and admin . Yes you will install three things in just one post . But don't worry , this post is not lengthy at all . You just have to write three commands in your terminal and tadaaaa you will be successful in setting up MySQL . Just go to terminal and write -:

------------------------------------------------------------------------------------------------------------------------

sudo apt-get install mysql-server
--------------------------------------------------------------------------
----------------------------------------------
You will be prompted in the terminal once or twice to answer yes/no and enter the password for ur MySQL . Just enter any password you want but tell me because then I my try that password on you email id to hack your account (just joking , I don't even know the abc of hacking, as I said in my first post I am also new to Java and Linux ) . After the above installation completes write the second command -:

------------------------------------------------------------------------------------------------------------------------

sudo apt-get install mysql-client
------------------------------------------------------------------------------------------------------------------------
And after client installation also completes write the third command . This command is not necessary but if you want a graphical tool name MySQL Query Browser to make , create , edit and delete your databases then follow the third command

------------------------------------------------------------------------------------------------------------------------

sudo apt-get install mysql-admin
------------------------------------------------------------------------------------------------------------------------
Don't be so happy, I know I said just three commands , but don't you want to install an IDE to write your super duper cool and awesome Java applications . I am gonna tell you about Netbeans but you can do it for Eclipse also, it solely your choice which you follow , I am no one to tell you use this one or the other one cause I use both IDE's depending on what I am doing in Java .


For setting up your Netbeans IDE just go to http://netbeans.org/downloads/index.html

what you will find is the picture shown here



Either you download the second one i.e. Java EEor the last one i.e. All . When you will click on the button downloading will automatically start and a file with “.sh” extension will be downloaded . After completion of your download ,

1 . Open you terminal
2 . Go to the directory in which your Netbeans.sh file is saved
3 . Write
------------------------------------------------------------------------------------------------------------------------

sh netbeans-7.1.sh

------------------------------------------------------------------------------------------------------------------------

(u have to write your netbeans file name with extension)

and your installation will start . On the first page of your Downloading instruction dont just directly click next . There will be a “CUSTOMIZE” button . Click on it and Select “Apache TomCat Server” too and install Netbeans blindly .

And taddaaaaa your MySQL and Netbeans installation is also complete .

Now I think you should take some rest because you have accomplished a great task today . Have a cold drink or coffee and some snacks . Because there will be one more and last post on this in which the main task of setting up your JDBC connection will be done . Without JDBC connection MySQL is of no use . SO relax buddies I will write the post tomorrow because I am going to sleep now . Its 12:30 at night here while I am writing this post . So smarty pants reading this good night . I hope you got some help from these two posts .


Comments

Popular posts from this blog

What happened to the blog ?

Why I love to be a programmer ?