LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Where to put mysql-connector-java folder (https://www.linuxquestions.org/questions/linux-general-1/where-to-put-mysql-connector-java-folder-215106/)

dukehazord 08-08-2004 05:51 PM

Where to put mysql-connector-java folder
 
I have Suse Linux 8.0 installed on my system. I have downloaded the mySQL connector so that I will be able to connect to mySQL database through JavaScript. I have no idea where to put that folder. so that I may be able to connect to the database. I also need to know the command line to connect the mySQL database please. it's urgent

el_pajaro! 09-10-2004 11:30 AM

Are you sure you can connect to mysql with javascript? Are you using java script as a server side script?

Normaly you access a database from a server and you use something like php or jsp. To access the database, you have to connect to the database. For example in php you use something like:

<?php

$bd = mysql_connect("localhost", "dbUsername", "password");

mysql_select_db("$dbName",$bd);

?>

Hope I was helpful


All times are GMT -5. The time now is 02:28 PM.