File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes Tomcat and MySQL on Ubuntu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Tomcat and MySQL on Ubuntu" Watch "Tomcat and MySQL on Ubuntu" New topic

Tomcat and MySQL on Ubuntu

Arjun Bajaj

Joined: Apr 21, 2010
Posts: 13
hey everyone,

i just ordered my book on JSP and Serverlets... The book explains how to install and run tomcat and mysql on windows... but not with linux...

i tried installing the stuff with ubuntu... but it didn't work properly...

tomcat and jdk now work... i can access my server at localhost:8080

but mysql is not working with tomcat... i dont know how to create a db and do something in a db...
i have installed mysql, mysql query browser and mysql admin in ubuntu...

can anyone help me to run mysql with tomcat...

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

Please take the time to choose an appropriate forum for your posts. This forum is for questions on JSP. For more information, please click this link ⇒ CarefullyChooseOneForum.

This post has been moved to a more appropriate forum.

[Asking smart questions] [About Bear] [Books by Bear]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032

Installing MySQL server should be easy. Just visit the MySQL site and download the necessary files and install it as you would like any other software. Get SqurrilSQL client and access the MySQL server. It is actually pretty easy.

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Pat Farrell

Joined: Aug 11, 2007
Posts: 4659

Joe Harry wrote:Installing MySQL server should be easy.

OP said he has MySql installed and working. But he doesn't know how to create a database.

That is done using
then to set the permissions, grants, etc. on the foo database. Then to create the tables.
I agree. Here's the link:
subject: Tomcat and MySQL on Ubuntu
It's not a secret anymore!