in reply to Database access on your site, or "Where the hell is mysql?"
"Once there, the application runs without apparent error, but I don't think it is updating the database properly."
This is a good indication that you are not checking return code and SQLCODE in your code. Better fix the code. For any database operation, always always check the SQLCODE. For any perl function call, always check return code.
You must have some code similar to this:
$dsn = "DBI:mysql:database=$database;host=$hostname;port=$port"; $dbh = DBI->connect($dsn, $user, $password);
Change $hostname to where your MySQl resides. Make it configurable.
Also you have to configure mysql so that it allows remote access. (I guess your development box probably is the same where mysql sits.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Database access on your site, or "Where the hell is mysql?"
by SkipHuffman (Monk) on Oct 01, 2005 at 17:16 UTC | |
by herveus (Prior) on Oct 03, 2005 at 12:02 UTC | |
by SkipHuffman (Monk) on Oct 03, 2005 at 15:32 UTC |