Thanks Monster!
Actually I copied this line from somewhere and thought it would work.
After I removed the array parameters for execute, there was another error:
Can I ask how I can get the code working ?
Dear Friends,
I am tryin to connect to the myql through perl scrip. I have already installed mysql and DBI modules to my Perl.
There versions are as follows,
DBD-mysql MySQL driver for the Perl5 Database
DBI Database independent interface for
It gives... (4 Replies)
Hi,
I have gps receiver, by using gpsd data i can read gps log data to my database(my sql).
Steps:
1. telenet localhost 2947 > gps.txt (press enter)
2. r (press enter) //then i will get the data like below in gps.txt file
Trying 127.0.0.1...
Connected to localhost.... (1 Reply)
Dear Scripting Gods
I've never done shell scripting before and have only recently got to grips with Perl, so apologies for my naivity. I've written a perl program which takes in two files as arguments (these are text documents which take in the information I need) The perl program spits out a... (1 Reply)
Hi, i have the following:
db="create database xxx;GRANT ALL PRIVILEGES ON xxx.* TO user@localhost IDENTIFIED BY 'password';FLUSH PRIVILEGES;quit;"
mysql -u root -p$mysql_pass -e "$db"
I don't understand why this is failing, it works fine when run from cmd but when is run in a bash script,... (1 Reply)
Welcome. I am writing a perl script. I have to design a database consisting of a single table (any subject) saved in a text file. (I make it vi command name and I am giving permission chmod u + x?) The table should contain at least four columns, including a column containing the ID (serial number )... (4 Replies)
Hi, im trying to make a script that backups mysql databases but apparently I am having trouble with the variables, or simply something I am missing.
Would appreciate any help, here is the script
#!/usr/bin/perl -w
use strict;
require File::Spec;
#VARIABLES
my $databasename =... (4 Replies)
Need assistance
Below script get the output correctly
I want to convert the date format .Below is the output . Any idea ?
#!/usr/bin/perl -w
use DBI;
# Get a database handle by connecting to the database
my $db = DBI->connect(... (3 Replies)
Sorry to disturb you, I would like to seek help on inserting data whenever the switch is on or off to my phpMyAdmin mySQL database from my Shell Script. I'm using Raspberry PI as my hardware and I have follow this LINK: instructables.com/id/Web-Control-of-Raspberry-Pi-GPIO/?ALLSTEPS to create my... (4 Replies)
Discussion started by: aoiregion
4 Replies
LEARN ABOUT DEBIAN
sendpage-db
SENDPAGE-DB(1p) User Contributed Perl Documentation SENDPAGE-DB(1p)NAME
sendpage-db - manipulate Sendpage recipient database
SYNOPSIS
sendpage-db [OPTIONS]
OPTIONS -c DB_TYPE
Specify the database connection type (e.g. "dbi:mysql").
-U DB_USER
Specify the database user to connect as (e.g. "sendpage").
-P DB_PASS
Specify the database password use when connecting.
-a Add an entry to the database, reading from stdin.
-d Delete an entry to the database, reading from stdin.
-p Show all database entries.
-v Run in verbose mode.
-h Display a summary of all the available command line options.
DESCRIPTION
This tool is used to manipulate the recipient database that can be optionally used by Sendpage.
AUTHOR
Todd T. Fries <todd@fries.net>
COPYRIGHT
sendpage-db is free software; it can be used under the terms of the GNU General Public License.
SEE ALSO perl(1), sendpage(1), snpp(1)perl v5.10.0 2009-05-19 SENDPAGE-DB(1p)