aspose file tools*
The moose likes JDBC and the fly likes create mysql db for web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "create mysql db for web application" Watch "create mysql db for web application" New topic
Author

create mysql db for web application

Yahya Elyasse
Ranch Hand

Joined: Jul 07, 2005
Posts: 510

Hi
Sorry if my question seems silly..it should be very basic to experts like you

I want to create a mysql database that I will later connect to from a servlet under apache tomcat server.
my question : where should i put the mysql database ? should it go into WEB-INF directory of my application ?
what is the mysql SQL command i should type to put db int the right directory ?

thanks.
Maximilian Xavier Stocker
Ranch Hand

Joined: Sep 20, 2005
Posts: 381
When you connect to a MySQL database you connect to a server not the files directly. So the location of the actual files is not relevent. It only matters to your application that you can reach the mysql server through a socket from wherever you are running.

Are you confused about where to have the driver jar?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: create mysql db for web application
 
Similar Threads
Need External Back Up in Java Web Application
Unable to view uploaded files in Tomcat till server is refreshed
Where should i store .jsp pages
MySql Driver
Package Java app that uses MySQL