Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't access mysql (4.1.11) db using IIS on win2k...mysql works tho...

Status
Not open for further replies.

spewn

Programmer
May 7, 2001
1,034
0
0
i set up mysql on the comp and am using mysqlcc to manipulate.

however, i'm unable to access the databases that i have set up.

the server is gServer2, the database is 'ccc' and the table is 'offers'...

this worked previous, i don't know what the issue it.

Code:
#!/usr/bin/perl
use CGI qw(:standard);
use DBI;
use CGI::Session;
$cgi = new CGI;
print $cgi->header();
$dbh2 = DBI->connect('dbi:mysql:ccc','','');
$sth2 = $dbh2->prepare("select offerID from offers where bannerImg = 'yes'");
$sth2->execute;
use constant COUNT0 => 0;
$count2 = $sth2->rows;
$test22=$row[COUNT0];
while (@row = $sth2->fetchrow_array()) {
print $test22;
}
print << "EOF";
<html>
<head>
<body>
hello world
</body>
</html>
EOF

any ideas?

- g
 
okay, i was able to reload everything from scratch and this time it works and i'm able to access the DB tables.

however, when i was setting up the mysql instance configuration, i was asked whether to start as windows service and whether to start the server automatically.

i used to be able to manually start and stop the server by using the command prompt, going to the respective directory and typing 'mysqld'. this used to initiate the server and all was well.

now i don't know how to set up the configuration. should i set up as windows service? (seems that's 'mysqld-nt')...how can i set it up so that i am the one to start and stop the server, not auto load on system start.

any ideas?

- g
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top