佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 777|回复: 0

用perl连接mysql时出现的问题。。。。

[复制链接]
发表于 29-5-2006 12:52 PM | 显示全部楼层 |阅读模式
以下是我的source code:

#!usr/bin/perl

use DBI();
use DBD::mysql;
use strict;

my ($name,$databaseHandle,$query,$statementHandle,$password_in_db,@password,$exit);

print "Please input your name : ";
chomp($name = <STDIN>);

$databaseHandle = DBI->connect("DBI:mysql:test", "root","******",{RaiseError=>1});

$query = "SELECT password FROM users ";

$statementHandle = $databaseHandle->prepare($query);
$statementHandle->execute();
.
.
.
.
.
.


请问有什么问题???
出现的error:
"DBI connect('test','root',....)failed: Can't connect to MySQL server on 'localhost' (100610 at connect_db.pl line 12"
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 14-11-2024 06:45 PM , Processed in 0.120223 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表