Re: Default data dir

2002-10-14 Thread nellA hciR
i have this as part of /etc/my.cnf, all data file are in the directory /my. be sure to set your permissions on /my to the mysql user [mysqld] datadir=/my - hcir On Monday, Oct 14, 2002, at 10:19 America/Anchorage, Niranjan Patel wrote: I get that point but is there any other way we can

Re: information about the tables in the database

2002-10-09 Thread nellA hciR
show tables; On Wednesday, Oct 9, 2002, at 05:43 America/Anchorage, Inbal Ovadia wrote: Hi all, There is a way to know if I have table x in my db? Let's say some catalog tables that hold information about the db like tables name etc. and i can do query like select tables from

Re: fetching specific date from datetime field

2002-10-09 Thread nellA hciR
select * from table where substring(timestampField,1,8) = 'MMDD' from Perl, execute this statement and then process each returned row - hcir My mysql database is set up having a field cdate - cdate datetime has the format -00-00 00:00:00 If I want to fetch rows for say the

Re: Error with LOAD DATA INFILE

2002-10-07 Thread nellA hciR
check the permissions of the enclosing directory - hcir On Monday, Oct 7, 2002, at 17:43 America/Anchorage, Unidux (MIS) - K Sudhir wrote: Hi, When i try to query ... load data infile ... i am getting the following error ... ERROR 13: Can't get stat of 'upload_fct_HQ_CA001S.txt'

Re: Problems with LOAD DATA LOCAL INFILE

2002-10-07 Thread nellA hciR
the permissions on the file and the enclosing directory (all the way up to the root dir) must allow for execution also, my.cnf need to have [mysqld] local-infile=1 #!/usr/bin/perl use DBI; $dbh = DBI-connect( dbi:mysql:databasename, 'user', 'password', { PrintError = 0 } ) or die

Re: Get the total of a feild

2002-10-01 Thread nellA hciR
sounds like you need SUM(field name) - hcir Hi, I wanting to know what the sql statement is that will let me get the total of database. The feild is amount. I have tried a couple of sql statement and have even looked at mysql 6.3.3.1 Arithmetic Operations. But I am lost.

Re: Get the total of a feild

2002-10-01 Thread nellA hciR
sounds like you need SUM(field name) - hcir Hi, I wanting to know what the sql statement is that will let me get the total of database. The feild is amount. I have tried a couple of sql statement and have even looked at mysql 6.3.3.1 Arithmetic Operations. But I am lost.

Re: Create Tables Dynamically

2002-09-24 Thread nellA hciR
since your are already using Perl, check out DBI at www.cpan.org - hcir On Monday, Sep 23, 2002, at 17:52 America/Anchorage, William Martell wrote: Hello All, I am building a web robot in perl that will find equipment from various manufacturers and will get information about that

load data local infile

2002-09-12 Thread nellA hciR
i have read several archives/docs on this but still can not get this to work from the mysql command line, load data local infile DOES work, am trying to get this to work from Perl $sth = $dbh-prepare(load data local infile '/users/hcir/desktop/t2/0001' into table s0001); $sth-execute() or

Re: load data local infile

2002-09-12 Thread nellA hciR
THANKS!! that works! - hcir I have had luck by removing the word LOCAL from the statement. -=Bryan=- from the mysql command line, load data local infile DOES work, am trying to get this to work from Perl $sth = $dbh-prepare(load data local infile '/users/hcir/desktop/t2/0001' into

compiling 4.0.3 on OS X 10.2

2002-09-04 Thread nellA hciR
iH getting the following after issueing ./configure --mandir=/usr/local/share/man/ --with-innodb make ld: Undefined symbols: _tgoto _tputs _tgetent _tgetflag _tgetnum _tgetstr make[2]: *** [mysql] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive-am] Error 2 anyone have

Re: changing coulmn

2002-07-02 Thread nellA hciR
mysql create table mytest ( - my_1 varchar(5) - ); Query OK, 0 rows affected (0.32 sec) mysql alter table mytest change my_1 my_file_1 varchar(5); Query OK, 0 rows affected (0.23 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql show columns from mytest;

Perl/DBI load data local

2002-06-21 Thread nellA hciR
iH running mySQL 3.23.51, i have a my.cnf file with local-infile=1 and am able to use the load data local file command when running run the interactive mysql app (command line). my problem is that i can not use the load data local command from a Perl script. i am connecting as the same user