A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
how to set property of jdbc?
Joined: Feb 18, 2006
Feb 25, 2006 01:52:00
how to write code in "???" in the following code:
//special location of database on filesystem
//load database driver class
//establish connection to database
i can't find answer in sun
the database i want load is located in"D:\Program Files\MySQL\MySQL Server 5.0\data\test"
[ February 25, 2006: Message edited by: Bear Bibeault ]
Joined: May 26, 2003
Feb 25, 2006 14:29:00
Where's the code to actually get a connection? That's usually where you specify the database.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
Joined: Oct 14, 2005
Feb 26, 2006 14:25:00
And with MySQL, you don't specify the location of the database. You specify the location of the MySQL server (machine and port) and the name of the database only.
All of this is covered in the documentation for the MySQL
I agree. Here's the link:
subject: how to set property of jdbc?
Connection to MySQL
loading driver in JSP
batch file script problem
Problems retrieving utf8 encoded fields from mysql database
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014