Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-21-2004, 02:19 AM   #1 (permalink)
slappy
Registered User
 
Join Date: Aug 2004
Posts: 1
slappy is on a distinguished road
MySql connect error message

When I try to run my perl script in SSH; I get this error message:

DBI->connect using 'old-style' syntax is deprecated and will be an error in future
versions at ScriptV.pl line 9

I've checked line 9 and it has the "new style" syntax:

$dbh=DBI->connect("dbi:MySQL:$database", $user, $pass);

so I'm not sure what else it could be.

What is required before the perl can connect to the mysql tables.

Thanks.
slappy is offline   Reply With Quote
Old 08-23-2004, 10:26 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,489
sde is on a distinguished road
after you connect to mysql, you usually need to select a datbase. it looks like that is what your class is doing, but i don't know perl.
__________________
Mike
sde is offline   Reply With Quote
Old 08-23-2004, 07:02 PM   #3 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
I have a script at work that uses perl DBI to connect to mysql. I'll see what its doing and post a sample later. (although its old, so it might be using the old stuff)

-r
idx is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
cant connect to mysql databases using php eran PHP 11 08-07-2004 08:02 AM
and on to mysql .. sde Linux / BSD / OS X 2 01-18-2003 07:39 PM
c++ gui with db connect sde Standard C, C++ 3 09-12-2002 12:22 PM


All times are GMT -8. The time now is 08:08 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting