problem building DBD::mysql omnios (opensolaris clone)

2014-06-15 Thread Natxo Asenjo
mysql_config. No problem, I can set it: === # perl Makefile.PL --mysql_config=/usr/local/mysql/5.6/bin/mysql_config --cflags="-m32" PLEASE NOTE: For 'make test' to run properly, you must ensure that the

Re: Passing multiple select statements to MySQL

2014-02-20 Thread SSC_perl
On Feb 19, 2014, at 4:20 AM, Dr.Ruud wrote: > my $sth_4; > ... > (untested) Thanks for the code but I still get the same error: DBD::mysql::st execute failed: You have an error in your SQL syntax; - Long pause for trial and error -- Well with the he

Re: Passing multiple select statements to MySQL

2014-02-19 Thread Dr.Ruud
On 2014-02-18 02:27, SSC_perl wrote: I'm helping someone retrieve some info from a MySQL db and I'm having trouble sending multiple select statements with Perl. Here's a portion of the code: use SQL::SplitStatement; my $query_4 = "CREATE TEMPORARY TABLE `tem

Passing multiple select statements to MySQL

2014-02-17 Thread SSC_perl
I'm helping someone retrieve some info from a MySQL db and I'm having trouble sending multiple select statements with Perl. Here's a portion of the code: use SQL::SplitStatement; my $query_4 = "CREATE TEMPORARY TABLE `temp_ip` AS (SELECT `ip` FROM `ip_address

Re: MySQL, Perl, and LaTeX: Trying to loop through results by DAY (as a LaTeX section) for custom PDF report

2013-09-15 Thread J M
Nevermind, I was thinking too hard... this was actually quite trivial. Here's what I added to the code: my $row;my $date = ''; # set the `logbook` variableswhile ($row = $sth->fetchrow_hashref()) {my $id = $row->{id};my $date_added = DateTime::Format::MySQL->parse_tim

MySQL, Perl, and LaTeX: Trying to loop through results by DAY (as a LaTeX section) for custom PDF report

2013-09-15 Thread J M
<http://stackoverflow.com/questions/18809731/mysql-perl-and-latex-trying-to-loop-through-results-by-day-as-a-latex-sectio#> I have written a Perl script (shown below) to loop through my MySQL database and then output a .tex file, as a sort of programmed custom report. As it stands, it

Re: DateTime::Format::MySQL not working as expected, throwing error

2013-09-04 Thread Dr.Ruud
On 05/09/2013 02:28, J M wrote: However, I'm running into a problem: the FIRST instance of DateTime::Format::MySQL works perfectly... but when I get to the second one, it throws me this error: Use of uninitialized value $input in concatenation (.) or string at /usr/local/share/perl/5

DateTime::Format::MySQL not working as expected, throwing error

2013-09-04 Thread J M
Hi! I'm writing a simple script to output data from a MySQL database... Eventually I'd like to pipe it all into a .tex file and make a custom pdf out of it. However, I'm running into a problem: the FIRST instance of DateTime::Format::MySQL works perfectly... but when I get to the

Perl Debugger: DBD::mysql::db do failed: MySQL server has gone away at

2013-07-30 Thread mimic...@gmail.com
In my script, I previous connected and disconnected to the database within every subroutine. Now I have made changes and it now connect/disconnect to mysql only once within main:: (at the start and end of script respectively). Although my script works fine, I am wondering whether this is the best

Apache::Session::MySQL - connection closing

2013-07-22 Thread Phil Smith
I've tried posting this to the perl-mysql mailing list but that list doesn't seem to have any traffic, so I'm hoping maybe someone on this list has some experience with Apache::Session::MySQL. Does anyone know if a call to untie on a tied hash to Apache::Session::MySQL will clo

Re: MySQL and Perl

2012-07-02 Thread Francisco Valladolid H.
Hi. On Mon, Jul 2, 2012 at 10:31 AM, David Precious wrote: > On Mon, 2 Jul 2012 23:22:47 +0800 > lina wrote: > > > Hi, > > > > Is this book old? > > > > http://www.kitebird.com/mysql-perl/ > > > > MySQL and Perl for the Web > > "New

Re: MySQL and Perl

2012-07-02 Thread David Precious
On Mon, 2 Jul 2012 23:22:47 +0800 lina wrote: > Hi, > > Is this book old? > > http://www.kitebird.com/mysql-perl/ > > MySQL and Perl for the Web "New Riders, August, 2001" Yes. Very much so. A lot of it will be very outdated information. DBI's own

MySQL and Perl

2012-07-02 Thread lina
Hi, Is this book old? http://www.kitebird.com/mysql-perl/ MySQL and Perl for the Web Thanks with best regards, -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: DBD-mysql-4.020 on OS X 10.6.8: install problem

2011-10-21 Thread Phil Dobbin
On 21/10/11 at 10:12, phildob...@gmail.com (Phil Dobbin) wrote: On 20/10/11 at 17:35, phildob...@gmail.com (Phil Dobbin) wrote: I’m trying to install DBD-mysql-4.020 on OS X 10.6.8 with a fresh install of perl in /usr/local/ (perl 5.14.2) which is in my $PATH. [snip] If anybody’s

Re: DBD-mysql-4.020 on OS X 10.6.8: install problem

2011-10-21 Thread Phil Dobbin
On 20/10/11 at 17:35, phildob...@gmail.com (Phil Dobbin) wrote: I’m trying to install DBD-mysql-4.020 on OS X 10.6.8 with a fresh install of perl in /usr/local/ (perl 5.14.2) which is in my $PATH. [snip] [snip

DBD-mysql-4.020 on OS X 10.6.8: install problem

2011-10-20 Thread Phil Dobbin
Hi. I’m trying to install DBD-mysql-4.020 on OS X 10.6.8 with a fresh install of perl in /usr/local/ (perl 5.14.2) which is in my $PATH. I have a working MySql in /usr/local/ (MySQL 5.1.59) & the latest Bundle-DBI. I’ve tried from CPAN & compiling from source, scoured the Int

Re: Galbraith, P., 2009, "Developing Web Applications with Apache, MySQL, memcached, and Perl"

2011-06-06 Thread David Christensen
nd up rather than learning any particular framework. I'm considering buying: - Galbraith, P., 2009, "Developing Web Applications with Apache, MySQL, memcached, and Perl", http://www.wiley.com/WileyCDA/WileyTitle/productCd-0470414642.html . Has anyone read this book? Any com

Re: displaying data from mysql onto browser in correct format .. (using template toolkit )

2011-05-29 Thread Octavian Rasnita
From: "Agnello George" > > >> This interpolation of string variables into an SQL statement is an SQL >> injection attack waiting to happen: >> >> * http://en.wikipedia.org/wiki/SQL_injection >> >> * http://community.livejournal.com/shlomif_tech/35301.html >> >> * http://bobby-tables.com/ >> >> Pl

Re: displaying data from mysql onto browser in correct format .. (using template toolkit )

2011-05-29 Thread Agnello George
> > This interpolation of string variables into an SQL statement is an SQL > injection attack waiting to happen: > > * http://en.wikipedia.org/wiki/SQL_injection > > * http://community.livejournal.com/shlomif_tech/35301.html > > * http://bobby-tables.com/ > > Please avoid it by using placeholders.

Re: displaying data from mysql onto browser in correct format .. (using template toolkit )

2011-05-28 Thread Octavian Rasnita
From: "Agnello George" > great !! i used tinymce in my insert form that solved all my html alignment > problem :) It would be much great if you wouldn't quote more than 140 lines of previous messages just to answer a single line... :-) Octavian -- To unsubscribe, e-mail: beginners-unsubscr..

Re: displaying data from mysql onto browser in correct format .. (using template toolkit )

2011-05-28 Thread Agnello George
gt;> > Hi >>> > >>> > I am using TT to display my data from my db , >>> > >>> > >>> >

Re: displaying data from mysql onto browser in correct format .. (using template toolkit )

2011-05-28 Thread Agnello George
t;> > >> > i insert the following data from a Front end using () >> into >> > my database the data is like this in mysql : >> > >> > >> --- >> > --

Re: displaying data from mysql onto browser in correct format .. (using template toolkit )

2011-05-28 Thread Shlomi Fish
On Friday 27 May 2011 15:51:21 Agnello George wrote: > On Fri, May 27, 2011 at 6:05 PM, Shlomi Fish wrote: > > On Friday 27 May 2011 13:48:21 Agnello George wrote: > > > Hi > > > > > > > > > is there a way i can display on my browser with a new-line or > > > > First of all, make sure you avoi

Re: displaying data from mysql onto browser in correct format .. (using template toolkit )

2011-05-27 Thread Agnello George
On Fri, May 27, 2011 at 6:05 PM, Shlomi Fish wrote: > On Friday 27 May 2011 13:48:21 Agnello George wrote: > > Hi > > > > I am using TT to display my data from my db , > > > > > > i insert the following data from a Front end using () > into > &

Re: displaying data from mysql onto browser in correct format .. (using template toolkit )

2011-05-27 Thread Shlomi Fish
On Friday 27 May 2011 13:48:21 Agnello George wrote: > Hi > > I am using TT to display my data from my db , > > > i insert the following data from a Front end using () into > my database the data i

displaying data from mysql onto browser in correct format .. (using template toolkit )

2011-05-27 Thread Agnello George
Hi I am using TT to display my data from my db , i insert the following data from a Front end using () into my database the data is like this in mysql

RE: :mysql::st execute failed

2011-02-14 Thread Ken Slater
>From: shawn wilson [mailto:ag4ve...@gmail.com] >Sent: Saturday, February 12, 2011 5:56 PM >To: beginners@perl.org >Subject: DBD::mysql::st execute failed > >i'm getting this error: >DBD::mysql::st execute failed: Column count doesn't match value count at row >1

DBD::mysql::st execute failed

2011-02-12 Thread shawn wilson
i'm getting this error: DBD::mysql::st execute failed: Column count doesn't match value count at row 1 at ./test-get.pl line 91, line 1. DBD::mysql::st execute failed: Column count doesn't match value count at row 1 at ./test-get.pl line 91, line 1. and i've been counting p

Re: Installation of Net::MySQL

2010-11-24 Thread BlackSwanMA
It probably had warnings and failed due to no password being passed on the test. I believe that Net::MySQL and DBI installed properly, now on to DBD, which seems to be failing due to the fact that it cannot locate some MySQL header files. -- To unsubscribe, e-mail: beginners-unsubscr

Re: Installation of Net::MySQL

2010-11-23 Thread Shlomi Fish
all DBD, DBI and Net::MySQL and all failed. It > is possible that the reason why the installs are failing is common to > all three, but I do not know that as a fact, so I am asking you to > look over and respond as to what I may be doing wrong in the > installation of Net::MySQL. > &g

Installation of Net::MySQL

2010-11-22 Thread BlackSwanMA
My installation of RedHat Linux server 5.3 came with PERL 5.8. I updated my version of PERL to 5.12, and my copy of PERL resides at / root/localperl/bin/perl I've attempted to install DBD, DBI and Net::MySQL and all failed. It is possible that the reason why the installs are failing is c

RE: MySQL database entry delta report

2010-10-23 Thread Jason Feng
rom: rvtol+use...@isolution.nl > Subject: Re: MySQL database entry delta report > > On 2010-10-18 05:42, Jason Feng wrote: > > > I am using > > Perl and MySQL to maintain a database of mobile network configuration about > > 30 > > tables and millions of ro

RE: PERL MYSQL query "IF EXISTS then UPDATE else INSERT"

2010-10-20 Thread Mimi Cafe
This is the wrong list for MySQL questiosn, but I believe you are probably looking to replace the matching record, use MySQL "INSERT REPLACE INTO tablename". Mimi => -Original Message- => From: S Pratap Singh [mailto:kdari...@gmail.com] => Sent: 20 Octob

Re: PERL MYSQL query "IF EXISTS then UPDATE else INSERT"

2010-10-20 Thread Peter Scott
how to achieve > this "IF EXISTS then UPDATE else INSERT" using a one liner MYSQL > statement . If someone can give me an example to write such query and > execute it from perl then it would be really appreciated. This isn't a Perl question, you're asking in the wrong pl

Re: PERL MYSQL query "IF EXISTS then UPDATE else INSERT"

2010-10-20 Thread Chris Knipe
: > > > SPS> Insert query works fine but I am not able to figure out how to > SPS> achieve this "IF EXISTS then UPDATE else INSERT" using a one > SPS> liner MYSQL statement . If someone can give me an example to > SPS> write such query and execute it from

Re: PERL MYSQL query "IF EXISTS then UPDATE else INSERT"

2010-10-20 Thread Uri Guttman
>>>>> "SPS" == S Pratap Singh writes: SPS> Insert query works fine but I am not able to figure out how to SPS> achieve this "IF EXISTS then UPDATE else INSERT" using a one SPS> liner MYSQL statement . If someone can give me an example to SP

PERL MYSQL query "IF EXISTS then UPDATE else INSERT"

2010-10-19 Thread S Pratap Singh
one liner MYSQL statement . If someone can give me an example to write such query and execute it from perl then it would be really appreciated. Thank you. Pratap

Re: MySQL database entry delta report

2010-10-18 Thread Dr.Ruud
On 2010-10-18 05:42, Jason Feng wrote: I am using Perl and MySQL to maintain a database of mobile network configuration about 30 tables and millions of rows. Every day, I’ll be importing new configuration data to the database. I’d like to create a delta report on which row and which column are

Re: MySQL database entry delta report

2010-10-17 Thread Jeff Peng
于 2010-10-18 11:42, Jason Feng 写道: Hello, I am using Perl and MySQL to maintain a database of mobile network configuration about 30 tables and millions of rows. Every day, I’ll be importing new configuration data to the database. I’d like to create a delta report on which row and which

MySQL database entry delta report

2010-10-17 Thread Jason Feng
Hello, I am using Perl and MySQL to maintain a database of mobile network configuration about 30 tables and millions of rows. Every day, I’ll be importing new configuration data to the database. I’d like to create a delta report on which row and which column are modified, which row is

RE: Example code for storing picture in MySQL DB

2010-07-22 Thread Mimi Cafe
(binary file) into the db table. The example on MySQL forum is discussing using the use of MySQL Query Browser to manually insert each picture into a database and that is not possible when the large number of pictures is involved or when users are to upload pictures using a web form. http

Re: Example code for storing picture in MySQL DB

2010-07-22 Thread Dr.Ruud
Mimi Cafe wrote: Anyone worked on a project where they have stored pictures in MySQL db from Perl program? I need to store pictures in MYSQL and my initial thought was a normal insert statement. Now I did a bit of search and people are making it completed out there. I have not tried it, but I

Re: Example code for storing picture in MySQL DB

2010-07-22 Thread Shlomi Fish
On Thursday 22 Jul 2010 06:48:08 Mimi Cafe wrote: > Anyone worked on a project where they have stored pictures in MySQL db from > Perl program? I need to store pictures in MYSQL and my initial thought was > a normal insert statement. Now I did a bit of search and people are making >

Re: Example code for storing picture in MySQL DB

2010-07-21 Thread Jeff Pang
2010/7/22 Mimi Cafe : > Anyone worked on a project where they have stored pictures in MySQL db from > Perl program?  I need to store pictures in MYSQL and my initial thought was > a normal insert statement. Nothing much about Perl, but the stuff related to Mysql itself. A referen

Example code for storing picture in MySQL DB

2010-07-21 Thread Mimi Cafe
Anyone worked on a project where they have stored pictures in MySQL db from Perl program? I need to store pictures in MYSQL and my initial thought was a normal insert statement. Now I did a bit of search and people are making it completed out there. I have not tried it, but I was thinking of

Re: Can't locate object method "TIEHASH" via package " Apache::Session::MySQL

2010-04-19 Thread Uri Guttman
> "MC" == Mimi Cafe writes: MC> yes, probably the space was the cause of the issue. I did not MC> notice it untill I went back to change the quotes. hopefully you have learned a lesson about quoting strings. but you haven't about quoting emails. my entire email was quoted below your repl

Re: Can't locate object method "TIEHASH" via package " Apache::Session::MySQL

2010-04-19 Thread Mimi Cafe
yes, probably the space was the cause of the issue. I did not notice it untill I went back to change the quotes. Mimi On 19 April 2010 19:16, Uri Guttman wrote: > > "MC" == Mimi Cafe writes: > > MC> Hmm, the single quotes did help. I am used to double quotes as > MC> they make me feel I

Re: Can't locate object method "TIEHASH" via package " Apache::Session::MySQL

2010-04-19 Thread Uri Guttman
> "MC" == Mimi Cafe writes: MC> Hmm, the single quotes did help. I am used to double quotes as MC> they make me feel I am properly quoting, but now I have learnt the MC> hard way. there is no reason single vs double quotes would make any difference as there was no interpolation going o

RE: Can't locate object method "TIEHASH" via package " Apache::Session::MySQL

2010-04-19 Thread Mimi Cafe
Subject: AW: Can't locate object method "TIEHASH" via package " Apache::Session::MySQL Owen wrote: > On Mon, 19 Apr 2010 00:14:44 +0100 > Mimi Cafe wrote: > > > I get following error when trying to open a session using > > Apache::Session::M

AW: Can't locate object method "TIEHASH" via package " Apache::Session::MySQL

2010-04-19 Thread Thomas Bätzler
Owen wrote: > On Mon, 19 Apr 2010 00:14:44 +0100 > Mimi Cafe wrote: > > > I get following error when trying to open a session using > > Apache::Session::MySQL. > > > > > > > > Here is what I have > > > > > > > > 38

Re: Can't locate object method "TIEHASH" via package " Apache::Session::MySQL

2010-04-19 Thread Owen
On Mon, 19 Apr 2010 00:14:44 +0100 Mimi Cafe wrote: > I get following error when trying to open a session using > Apache::Session::MySQL. > > > > Here is what I have > > > > 38 tie %session, " Apache::Session::MySQL", undef,{ >

Can't locate object method "TIEHASH" via package " Apache::Session::MySQL

2010-04-18 Thread Mimi Cafe
I get following error when trying to open a session using Apache::Session::MySQL. Here is what I have 38 tie %session, " Apache::Session::MySQL", undef,{ 39 Handle => $dbh, 40 LockHandle => $dbh 41 }; Could not create ne

Re: DBD::mysql::st execute failed: MySQL server has gone away

2009-12-13 Thread Dr.Ruud
Ryan Chan wrote: Sometimes, my sql is running for a quite long time, e.g. 1 hour The perl script will warn "DBD::mysql::st execute failed: MySQL server has gone away at ..." and my script failed. I have already set the auto reconnect, e.g. $dbh->{mysql_auto_reconnect} = 1;

DBD::mysql::st execute failed: MySQL server has gone away

2009-12-12 Thread Ryan Chan
Hello, Sometimes, my sql is running for a quite long time, e.g. 1 hour The perl script will warn "DBD::mysql::st execute failed: MySQL server has gone away at ..." and my script failed. I have already set the auto reconnect, e.g. $dbh->{mysql_auto_reconnect} = 1; But problem sti

Re: Mysql and storage

2009-10-09 Thread Ian
On Fri, Oct 9, 2009 at 12:24 PM, Noah wrote: > Hi there, > > I am just starting with Mysql and perl and would like to know how to store > things in a database. Is there any suggested existing code out there that > does this already that I can view to get an understand

Mysql and storage

2009-10-09 Thread Noah
Hi there, I am just starting with Mysql and perl and would like to know how to store things in a database. Is there any suggested existing code out there that does this already that I can view to get an understanding of the data structures? Is there a good how to help page out there

Re: Installing Perl DBD, DBI::mysql Modules

2009-02-27 Thread Francisco Valladolid
ow can I install Perl DBD, DBI::mysql > Modules > > I have an Intel Mac OS X (10.5.6) Leopard with Perl v5.8.8 built for > darwin-thread-multi-2level > -- Francisco Valladolid H. -- http://bsdguy.net - Jesus Christ follower. -- To unsubscribe, e-mail: beginners-unsubscr...@

Installing Perl DBD, DBI::mysql Modules

2009-02-27 Thread juliaaaa . 1
Hi there, I would like to know how can I install Perl DBD, DBI::mysql Modules I have an Intel Mac OS X (10.5.6) Leopard with Perl v5.8.8 built for darwin-thread-multi-2level

Re: DBI: Add column to mysql table

2008-12-07 Thread Chas. Owens
e ADD 546 VARCHAR( 250 ) NULL"); > ---->is a numeric column label and throwsback the following > error: > > DBD::mysql::db do failed: You have an error in your SQL syntax; check > the manual that corresponds to your MySQL server version for the right > syntax to use nea

DBI: Add column to mysql table

2008-12-07 Thread hotkitty
>is a non-numeric column label and works fine. However, changing "testname" to a number results in an error.. $dbh->do("ALTER TABLE goodtable ADD 546 VARCHAR( 250 ) NULL"); >is a numeric column label and throwsback the following error: DBD::mysql::d

Re: MySQL statement with REGEX / RLIKE containing a scalar variable possible?

2008-11-16 Thread Wolf
On Nov 13, 4:56 pm, [EMAIL PROTECTED] (Deviloper) wrote: > I have a SQL-Statement with a Regular Expression and I want to use a scalar > in that expression: (Looking for something like "$tool =~ m/\Q$x\E/" ) > > #Find tools with xx in the name: > $dbh->prepare ("SELECT name FROM toolbox WHERE

MySQL statement with REGEX / RLIKE containing a scalar variable possible?

2008-11-13 Thread Deviloper
I have a SQL-Statement with a Regular Expression and I want to use a scalar in that expression: (Looking for something like "$tool =~ m/\Q$x\E/" ) #Find tools with xx in the name: $dbh->prepare ("SELECT name FROM toolbox WHERE name REGEX '$x'"); #or $dbh->prepare ("SELECT name FROM toolbox

RE: mysql conect doesn't work for web application

2008-09-18 Thread Bob McConnell
From: Qinying Xu > > I am coding an web appliction, which should connect to > Mysql DB. I tried the connection source cold on Linux, > it works well. But when I run it through the web, the > scripts just stopped. I found it died after runing the > line: > my $conn =

mysql conect doesn't work for web application

2008-09-18 Thread Qinying Xu
I am coding an web appliction, which should connect to Mysql DB. I tried the connection source cold on Linux, it works well. But when I run it through the web, the scripts just stopped. I found it died after runing the line: my $conn = Mysql->connect($self->{db_host},$self->{db_na

Re: using mysql NULL with IF statement

2008-07-14 Thread Huub
if (! defined($myvar)) { The NULL in the database is mapped to an undef. Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery Thank yo

RE: using mysql NULL with IF statement

2008-07-13 Thread Thomas Bätzler
Huub <[EMAIL PROTECTED]> asked: > I'm adapting a Perl script using MySQL connectivity, and have > to compare a variable, e.g. $myvar, with the value NULL from > the database. In MySQL, I have to use the query 'where myvar > is null', which works great. > B

Re: using mysql NULL with IF statement

2008-07-13 Thread Jenda Krynicky
From: Huub <[EMAIL PROTECTED]> > I'm adapting a Perl script using MySQL connectivity, and have to compare > a variable, e.g. $myvar, with the value NULL from the database. In > MySQL, I have to use the query 'where myvar is null', which works great. > But

using mysql NULL with IF statement

2008-07-13 Thread Huub
Hi, I'm adapting a Perl script using MySQL connectivity, and have to compare a variable, e.g. $myvar, with the value NULL from the database. In MySQL, I have to use the query 'where myvar is null', which works great. But when I try this in Perl, like 'if ($myvar == null)

Re: mysql data store in to a FILE

2008-07-04 Thread Dr.Ruud
luke devon schreef: > I just tried to store some mysql-queried data in to a file. but it > wont work. Actually i wanted to do not just writing , it should be > APPEND at each time when that perl scripts runs. > > Can some body help me , if you all can provide me a sample or a

Re: mysql data store in to a FILE

2008-07-03 Thread David Romero
pen file: $!"; > > #read each line of query results > foreach my $line(@$data){ > print FILE "$line->{field1}, $line->{field2}\n"; > } > > #close file > close (FILE) > > #disconnect from database > $dbh->disconnect; > > > On Thu, Jul 3,

Re: mysql data store in to a FILE

2008-07-03 Thread David Romero
ield1}, $line->{field2}\n"; } #close file close (FILE) #disconnect from database $dbh->disconnect; On Thu, Jul 3, 2008 at 2:46 AM, luke devon <[EMAIL PROTECTED]> wrote: > Hi , > > I just tried to store some mysql-queried data in to a file. but it wont > work. Actua

mysql data store in to a FILE

2008-07-03 Thread luke devon
Hi , I just tried to store some mysql-queried data in to a file. but it wont work. Actually i wanted to do not just writing , it should be APPEND at each time when that perl scripts runs. Can some body help me , if you all can provide me a sample or a example would be a great help Many

Re: Installing DBD::mysql??

2008-04-18 Thread Josh Miller
sanket vaidya wrote: I cannot instead module using ppm or MCPAN (office proxy wont allow me to do this) & I have never installed a perl module manually. I am installing DBD::mysql module. When I get into the module directory & type "perl makefile.pl" I get error as below: F

Installing DBD::mysql??

2008-04-17 Thread sanket vaidya
Hi, I cannot instead module using ppm or MCPAN (office proxy wont allow me to do this) & I have never installed a perl module manually. I am installing DBD::mysql module. When I get into the module directory & type "perl makefile.pl" I get error as below: Failed to dete

Re: Returning multiple MySQL rows from module

2007-11-28 Thread Steve Bertrand
> In your new code you retrieve each record as a hash, keyed by field > name. Then, instead of your subroutine returning the result as it did > before, you copy the hash elements directly into your object. Correct. Essentially what I want is to absolutely minimize any work I have to do outside of

Re: Returning multiple MySQL rows from module

2007-11-27 Thread Rob Dixon
Steve Bertrand wrote: > Tom Phoenix wrote: >> Steve Bertrand wrote: The current setup feels very 'kludgy' to me. The code snip below comes out of the module. I hope there is enough context to see why I think it can be improved. Actually, the snippet you submitted seems pretty straightforward

Re: Returning multiple MySQL rows from module

2007-11-27 Thread Steve Bertrand
Tom Phoenix wrote: > On 11/27/07, Steve Bertrand <[EMAIL PROTECTED]> wrote: > >> The current setup feels very 'kludgy' to me. The code snip below comes >> out of the module. I hope there is enough context to see why I think it >> can be improved. > > Actually, the snippet you submitted seems pret

Re: Returning multiple MySQL rows from module

2007-11-27 Thread Tom Phoenix
On 11/27/07, Steve Bertrand <[EMAIL PROTECTED]> wrote: > The current setup feels very 'kludgy' to me. The code snip below comes > out of the module. I hope there is enough context to see why I think it > can be improved. Actually, the snippet you submitted seems pretty straightforward. It could b

Returning multiple MySQL rows from module

2007-11-27 Thread Steve Bertrand
Hi all, I am trying to modularize some standard MySQL queries that I frequently do against our RADIUS DB. The current setup feels very 'kludgy' to me. The code snip below comes out of the module. I hope there is enough context to see why I think it can be improved. Essentially,

RE: :mysql::st execute failed: Column count doesn't match value count at row 1 a

2007-11-16 Thread Jo for Groups and Lists
Lists [mailto:[EMAIL PROTECTED] Sent: Friday, November 16, 2007 9:23 AM To: beginners@perl.org Subject: RE: :mysql::st execute failed: Column count doesn't match value count at row 1 a my $sql="insert into $table values ('2345','4355','834','894,&#x

perl with mysql which takes a file as a input that contains t he info to create the tables

2007-11-16 Thread prady
hi all > > i am creating a perl script which takes the input from the file to > create tables, inserting values into the database. As you all know the > only procedure for taking input from a file (using perl script) into > MySQL database is through (?) place holders. > for examp

Re: DBD::mysql::st execute failed: Column count doesn't match value count at row 1 a

2007-11-16 Thread Jeff Pang
er tables I am able to > isnert data > > > > -- > > DBD::mysql::st execute failed: Column count doesn't match value count

RE: :mysql::st execute failed: Column count doesn't match value count at row 1 a

2007-11-16 Thread Jo for Groups and Lists
my $sql="insert into $table values ('2345','4355','834','894,'766'); You have an unmatched double quote here. Jo <>

Re: perl with mysql which takes a file as a input that contains t he info to create the tables

2007-11-16 Thread Chas. Owens
On Nov 16, 2007 1:52 AM, Pradeep Kumar <[EMAIL PROTECTED]> wrote: snip > NOW I WANTED TO KNOW THE PROCEDURE FOR TAKING THE CODE AS INPUT FROM A > TEXT FILE & CREATE THE SPECIFIED TABLE snip Don't yell. Warning, this is untested code and may blow up in your face. Second warning, this code is very

DBD::mysql::st execute failed: Column count doesn't match value count at row 1 a

2007-11-16 Thread Siva Prasad
-- DBD::mysql::st execute failed: Column count doesn't match value count at row 1 a t db_access.pm line 63. Below is my script my $XML_FILE="E:/Project/scripts/Master.xml"; my $ref = eval {

perl with mysql which takes a file as a input that contains t he info to create the tables

2007-11-16 Thread Pradeep Kumar
hi all > > i am creating a perl script which takes the input from the file to > create tables, inserting values into the database. As you all know the > only procedure for taking input from a file (using perl script) into > MySQL database is through (?) place holders. > for

Re: errror while installing DBD::MYSQL.

2007-11-13 Thread Dr.Ruud
Gunnar Hjalmarsson schreef: > Tom Phoenix: >> Generally, top-posting is preferred in public forums. > > s/top-posting/bottom-posting/ http://en.wikipedia.org/wiki/Top-posting#Inline_replying -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: errror while installing DBD::MYSQL.

2007-11-13 Thread Gunnar Hjalmarsson
Tom Phoenix wrote: Generally, top-posting is preferred in public forums. s/top-posting/bottom-posting/ -- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org

Re: errror while installing DBD::MYSQL.

2007-11-13 Thread John W . Krahn
On Tuesday 13 November 2007 14:53, Tom Phoenix wrote: > > Generally, top-posting is preferred in public forums. It is? That's news to me! :-( John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.p

Re: errror while installing DBD::MYSQL.

2007-11-13 Thread Tom Phoenix
On 11/12/07, Siva Prasad <[EMAIL PROTECTED]> wrote: > I am still stuck up with the below problem. Generally, top-posting is preferred in public forums. Begin by quoting the minimum, relevant, context; follow with whatever is new. > Please help me in intalling DBD::mysql on WinXP H

Re: loading scripts to mysql

2007-11-13 Thread Pau Marc Munoz Torres
hi, Tanks for your help, finally i found the "source" command. It work like this: mysql> source /Lhome/geruppa/mhc/Pack_Ref_web/prova.sql 2007/11/9, Michael Gargiullo <[EMAIL PROTECTED]>: > > On Fri, 2007-11-09 at 13:22 +0100, Pau Marc Munoz Torres wrote: > &

RE: errror while installing DBD::MYSQL.

2007-11-12 Thread Siva Prasad
I am still stuck up with the below problem. Please help me in intalling DBD::mysql on WinXP Thanks PP -Original Message- From: Siva Prasad [mailto:[EMAIL PROTECTED] Sent: Thursday, November 01, 2007 11:09 AM To: 'Tom Phoenix' Cc: 'beginners@perl.org' Subje

Re: errror while installing DBD::MYSQL.

2007-11-01 Thread Tom Phoenix
On 10/31/07, Siva Prasad <[EMAIL PROTECTED]> wrote: > I use correct capital words and also used perl Makefile.pl --help could not > figure out where I am wrong? Are you still getting the message "Can't locate DBD/mysql.pm in @INC"? If so, the module isn't properly installed yet. Cheers! --Tom P

RE: errror while installing DBD::MYSQL.

2007-10-31 Thread Siva Prasad
: beginners@perl.org Subject: Re: errror while installing DBD::MYSQL. On 10/31/07, Siva Prasad <[EMAIL PROTECTED]> wrote: > so I downloaded perl DBD::MYSQL and tried installing the module with no > luck. Perl is case-sensitive with regard to module names. Be sure to use the correct capitaliza

Re: errror while installing DBD::MYSQL.

2007-10-31 Thread Tom Phoenix
On 10/31/07, Siva Prasad <[EMAIL PROTECTED]> wrote: > so I downloaded perl DBD::MYSQL and tried installing the module with no > luck. Perl is case-sensitive with regard to module names. Be sure to use the correct capitalization in your code. > Failed to determine directory of

errror while installing DBD::MYSQL.

2007-10-31 Thread Siva Prasad
l); print "$data\n"; --SCRIPT. I got the below error. ---- ----- install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at (eval 4) line 3. Perhaps the DBD::mysql perl module hasn't been fully installed, or perhaps the cap

Re: perl with mysql which takes a file as a input that contains the info to create the tables

2007-10-31 Thread Pradeep Kumar
shud be inserted in to its table & one more script the other way round like by getting the (retrieving) the data from the mysql database using some queries & creating a file in the above specified INPUT.txt format. could u please help me in this regard thanx Regards Prady On 10/30/07,

Re: perl with mysql which takes a file as a input that contains the info to create the tables

2007-10-30 Thread Jenda Krynicky
file (using perl script) > > into MySQL database is through (?) place holders. > > > That is not correct. Right. > > for example , > > > > $sth=$dbh->prepare > > ("INSERT INTO checkin (firstname, lastname, > > destin

Re: perl with mysql which takes a file as a input that contains the info to create the tables

2007-10-30 Thread Klaus Jantzen
prady wrote: hi all i am creating a perl script which takes the input from the file to create tables, inserting values into the database. As you all know the only procedure for taking input from a file (using perl script) into That is not correct. MySQL database is through (?) place

Re: perl with mysql which takes a file as a input that contains the info to create the tables

2007-10-30 Thread Rob Coops
[EMAIL PROTECTED]> wrote: > > hi all > > i am creating a perl script which takes the input from the file to > create tables, inserting values into the database. As you all know the > only procedure for taking input from a file (using perl script) into > MySQL database is th

  1   2   3   4   5   6   7   >