Cita:
Mensaje de error:
install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted. Compilation failed in require at (eval 59) line 3. at E:/xampp/htdocs/testperl.com/www/index.pl line 13
install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted. Compilation failed in require at (eval 59) line 3. at E:/xampp/htdocs/testperl.com/www/index.pl line 13
Código:
Quiero conectarme a la Base de Datos pero todos mis intentos son en vano. #!E:\xampp\perl\bin\perl.exe -w print "Content-Type: text/html\n\n"; print '<html>'; print '<head>'; print '<meta name="author" content="Kay Vogelgesang">'; print '<link href="../xampp/xampp.css" rel="stylesheet" type="text/css">'; print '</head>'; print '<body>'; use DBI; my $dbh = DBI->connect("dbi:mysql:informaq",'root','') || &error('conect','DataBase'); print "estoy conectado!!!!!"; $dbh->disconnect || &error('disconect','database'); die "Failed to connect to mySQL server: $DBI::errstr\n" unless defined $dbh; print '<br><br> <br> <br>'; print "</body>"; print "</html>";