由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - MySQL configuration file in windows?
相关主题
MySQLMySQL 安装求助
mysql high hand please help!!!!install mysql
help: questions about MySqlHow to install mysql server on Linux?
Problem in installing DBI?where to find oracle9i personal edition?
Cannot connect to the mysql server insidmySQL就是安装不上-service cannot be started
MySQL向远程服务器的查询是明文传输的吗?Perl DBI & DBD
MySQL: cannot connectODBC to Drive SQL on Text Files?
configuration about mysql!!!请教: 如何用Perl连接Oracle数据库?
相关话题的讨论汇总
话题: mysql话题: file话题: dbi话题: password
进入Database版参与讨论
1 (共1页)
j***y
发帖数: 2074
1
Hi, all:
I tried two scripts, which are to use a configuration file to free users from
inputing username, password, etc manually.
Here is the file "my.cnf":
# My configuration file
[client]
user=root
password=rochester
Here is the file "mysql_connect2.pl":
#!d:/perl/bin/perl
# Use what needs to be used.
use DBI;
use strict;
# Connect to the database.
my $user;
my $password;
my $dbh =
DBI->connect('DBI:mysql:mylibrary;mysql_read_default_file=c:\my.cnf', $user,
$password, {RaiseError => 1});
# Rep
1 (共1页)
进入Database版参与讨论
相关主题
请教: 如何用Perl连接Oracle数据库?Cannot connect to the mysql server insid
Help: Perl DBI to access oracleMySQL向远程服务器的查询是明文传输的吗?
getting connected to Oracle in PerlMySQL: cannot connect
use DBI in Apacheconfiguration about mysql!!!
MySQLMySQL 安装求助
mysql high hand please help!!!!install mysql
help: questions about MySqlHow to install mysql server on Linux?
Problem in installing DBI?where to find oracle9i personal edition?
相关话题的讨论汇总
话题: mysql话题: file话题: dbi话题: password