View Single Post
Old March 11th, 2006, 10:03 AM   #11 (permalink)
wingnut1
Member
Verified Customer
 
Join Date: Jun 2005
Location: Ireland
Posts: 50
Hi Chuck, when I gop to CPanel and click mysql, I see this for the Photopost sql database;

Users in photopost
goldwing_wowbb (Privileges: ALL PRIVILEGES)

Connection Strings
Perl $dbh = DBI->connect("DBI:mysql:goldwing_photopost:localhost","goldwing_wowbb","<PASSWORD HERE>");
PHP $dbh=mysql_connect ("localhost", "goldwing_wowbb", "<PASSWORD HERE>") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("goldwing_photopost");
JDBC (may not be available) <%@ page import="java.sql.*" %>
Connection connection = null;
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
connection = DriverManager.getConnection(
"jdbc:mysql://localhost/goldwing_photopost?user=goldwing_wowbb&password=<PASSWORD HERE>");
wingnut1 is offline   Reply With Quote