Quote:
Originally Posted by sdstein7
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.