siva kumar has asked for the wisdom of the Perl Monks concerning the following question:
The above code doesn't seems to be working. It result error asopen(FH,"xyz.sql"); $/ = EOF; $sql = <FH>; $sth = $dbh->prepare("$sql"); $sth->execute();
Please advice .. ThnxDBD::mysql::st execute failed: You have an error in your SQL syntax; c +heck the manual that corresponds to your MySQL server version for the + right syntax to use near '; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 S' at line 7 at resultsDBsource.pl line 34, <FH> chunk 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Import dump file into mysql DB using DBI
by Corion (Patriarch) on Oct 11, 2007 at 11:01 UTC | |
|
Re: Import dump file into mysql DB using DBI
by graff (Chancellor) on Oct 11, 2007 at 12:29 UTC | |
by siva kumar (Pilgrim) on Oct 11, 2007 at 12:46 UTC | |
by naikonta (Curate) on Oct 12, 2007 at 01:05 UTC | |
by moritz (Cardinal) on Oct 11, 2007 at 13:26 UTC | |
|
Re: Import dump file into mysql DB using DBI
by roboticus (Chancellor) on Oct 11, 2007 at 11:38 UTC | |
|
Re: Import dump file into mysql DB using DBI
by rayzit (Initiate) on Oct 11, 2007 at 12:17 UTC |