View Single Post
  #6 (permalink)  
Old 07-02-2009, 02:52 PM
cpdan cpdan is offline
cPanel Staff
 
Join Date: Mar 2004
Posts: 645
cpdan is on a distinguished road
Quote:
Originally Posted by sdstein7 View Post
So basically we are trying to connect to a mysql database
Thanks, I do understand that, the point is though that there should be no need to connect to the database as it's all handled for you. So the question isn't "how" but *why* do you need to connect to the data base? What are you wanting to accomplish with $dbh?

It appears you are wanting to connect to a global data base (i.e not the one associated with the install) to, perhaps, register an installation in some manner?

If so your best bet is to have an external script do it:

system("/usr/bin/my_register_install_with_koho_db", @args);

That will work around any compilation issues and also potential more-than-one-db-connection issues.
Reply With Quote