Re: error 13

2012-10-18 Thread kalin
laptop On Thu, Oct 18, 2012 at 1:19 AM, kalin ka...@el.net mailto:ka...@el.net wrote: thanks amanda... the local worked for some reason... in about 10 years of using mysql i have never had to do that. i still wonder why would the thing not stat it. file and dir are both 777

Re: error 13

2012-10-17 Thread kalin
: SELinux ? -Original Message- From: Lixun Peng [mailto:pengli...@gmail.com mailto:pengli...@gmail.com] Sent: Tuesday, October 16, 2012 9:03 PM To: kalin Cc: Michael Dykman; mysql@lists.mysql.com mailto:mysql

error 13

2012-10-16 Thread kalin
hi all.. this hasn't happened before... i'm in as root on the command line cleint. trying to load data infile '/path/to/file' file is owned by mysql and it has 777 permissions. the directory where the file is is also owned by mysql. when i do: mysql load data infile '/path/to/file'

Re: error 13

2012-10-16 Thread kalin
On 10/16/12 10:44 PM, Lixun Peng wrote: Hi, What's the dir permissions? was 755. now 777. same result. For example, if we have a file in /a/b/file, dir a is 644, even though file is 777, we can't access file, too. On Wed, Oct 17, 2012 at 10:31 AM, kalin ka...@el.net mailto:ka...@el.net

Re: error 13

2012-10-16 Thread kalin
a file in /a/b/file, dir a is 644, even though file is 777, we can't access file, too. On Wed, Oct 17, 2012 at 10:31 AM, kalin ka...@el.net wrote: hi all.. this hasn't happe... -- Senior MySQL Developer @ Taobao.com Mobile Phone: +86 18658156856 (Hangzhou) Gtalk: penglixun(at)gmail.com Twitter

file privilege

2012-01-30 Thread kalin m
hi... so i have this user in the user table in the mysql db that has all the privileges but grant. now i need for that user to have the file privilege so it can do into outfile. thing is i don't see that privilege anywhere in the db table. i know that i have to do the grant file on

Re: file privilege

2012-01-30 Thread kalin m
. Carlos On Mon, Jan 30, 2012 at 10:56 PM, kalin m ka...@el.net mailto:ka...@el.net wrote: hi... so i have this user in the user table in the mysql db that has all the privileges but grant. now i need for that user to have the file privilege so it can do into outfile

Re: MYD, MYI and TMD files

2012-01-26 Thread kalin m
thanks. it took about 15 hrs. but right now everything seems ok. does the check last as long as the repair? On 1/24/12 3:51 AM, Johan De Meersman wrote: - Original Message - From: kalin m ka...@el.net ok. thanks. i thought so. it's been about 8 hrs so far. and the TMD file is about

Re: MYD, MYI and TMD files

2012-01-23 Thread kalin m
hey. this list used to be pretty active. did anything change? is there another place to ask questions like these? thanks... On 1/23/12 5:02 PM, kalin m wrote: hi all.. i started a repair on a table that has an MYD file of 9.2 gigs. the MYI file is 7.7 gigs. the TMD file, which i'm

Re: MYD, MYI and TMD files

2012-01-23 Thread kalin m
: This is still the list although more quiet than it used to be. Repairing a table is already a fragile process.. I would not try to interrupt it if the data has no backup. - michael dykman On Mon, Jan 23, 2012 at 11:04 PM, kalin m ka...@el.net wrote: hey. this list used to be pretty active

Re: update and times

2010-10-06 Thread kalin m
Simcha Younger wrote: On Mon, 04 Oct 2010 16:11:08 -0400 kalin m ka...@el.net wrote: what i'm trying to do is update the column only of one of those times isn't yet passed. and it works. except sometimes... like these 2 unix times: this was in the table under unix time

update and times

2010-10-04 Thread kalin m
hi all... i'm doing tests with a table that gets updated based on random unix times it contains. there is a column that has a bunch or random times that look like: +-+---+ | date_time | unix_time|

Re: update and times

2010-10-04 Thread kalin m
have in your table. Try posting the SHOW CREATE TABLE table \G output, and a sample INSERT statement to populate the table. That way someone can try to reproduce the behavior you're seeing. -Original Message- From: kalin m [mailto:ka...@el.net] Sent: Monday, October 04, 2010 1:11 PM

subquery multiple rows

2010-04-07 Thread kalin m
hi all... i have a bit of a problem with this: table products: -- prod | category | -| boots | winter| boots | summer | boots | spring | shoes | spring | shoes | winter| shoes | fall | shoes | summer | --

Re: subquery multiple rows

2010-04-07 Thread kalin m
-0700, kalin m wrote: hi all... i have a bit of a problem with this: table products: -- prod | category | -| boots | winter| boots | summer | boots | spring | shoes | spring | shoes | winter| shoes | fall | shoes | summer

user expires?

2008-10-22 Thread kalin m
hi all... i had a weired thing happened is it possible for a user privileges to expire?! suddenly today an application stopped working and i was getting the message that the user can't login. now, i did mess with it last night trying to give it file privileges but since i would have

select into outfile php problem

2008-10-21 Thread kalin m
hi all... i have a strange problem with a simple script that is doing select into outfile... the thing just does that. it does a select into an outfile. if i print the query that's passed to mysql_result in the script and then copy it and paste it z`into the mysql client it works fine but

Re: if count

2008-09-24 Thread kalin m
right null did it... thanks... Leonardus Setyabudi wrote: try something like : count(if(a.type = 'SBR', 1, null)) count will ignore null value .. and only count the one with 'SBR' value br, Leo On 24/09/08 12:09, kalin m wrote: no, not really... sum is part of the query: count

if count

2008-09-23 Thread kalin m
hi all... can somebody explain why a conditional count like this one doesn't work: count(if(a.Type = Signature Based Return, a.amount,'')) group by order by or if(a.Type = Signature Based Return, count(a.amount),'') group by order by... thanks... -- MySQL

Re: if count

2008-09-23 Thread kalin m
wrote: On Tue, Sep 23, 2008 at 9:29 PM, kalin m [EMAIL PROTECTED] wrote: count(if(a.Type = Signature Based Return, a.amount,'')) group by order by I think you're looking for sum(). - Perrin

conditional sum

2008-09-05 Thread kalin m
hi... how do i do conditional sums? like: select a.job, sum(if b.amount 0 then amount end if ) from t1 as a left join t2 as b on a.account=b.accoun where a.account = b.account group by a.job; or select a.job, if b.amount 0 then sum(b.amount) end if from t1 as a left join t2 as b on

Re: conditional sum

2008-09-05 Thread kalin m
... any ideas?!. thanks. kalin m wrote: hi... how do i do conditional sums? like: select a.job, sum(if b.amount 0 then amount end if ) from t1 as a left join t2 as b on a.account=b.accoun where a.account = b.account group by a.job; or select a.job, if b.amount 0 then sum

mysql cli 5.0.51b

2008-07-04 Thread kalin m
hi all... i just build from source 5.0.51b on a freebsd 7... works fine. but the cli displays \40 for white space on remembered commands. like in flush\040privileges;. pretty annoying specially for long ones. how to fix? thanks -- MySQL General Mailing List For list archives:

Re: mysql cli 5.0.51b

2008-07-04 Thread kalin m
i use the cli exclusively... how can i fix this?! kalin m wrote: hi all... i just build from source 5.0.51b on a freebsd 7... works fine. but the cli displays \40 for white space on remembered commands. like in flush\040privileges;. pretty annoying specially for long ones. how to fix

Re: mysql cli 5.0.51b

2008-07-04 Thread kalin m
the \40 is all over the .mysql_history?!? kalin m wrote: i use the cli exclusively... how can i fix this?! kalin m wrote: hi all... i just build from source 5.0.51b on a freebsd 7... works fine. but the cli displays \40 for white space on remembered commands. like in flush\040privileges

Re: Database for a library

2008-07-04 Thread kalin m
assuming this is for books/pages to be displayed on line... how about if you just keep just important stuff in mysql like chapter titles and how many pages the book has, author, edition, etc then you keep files for each page (or book) in the filesystem - xml, txt, etc - and you just make a

mysql 5.0.51b and ssl

2008-06-23 Thread kalin m
hi all... i just installed openssl 0.9.8h and trying to build mysql 5.0.51b with it on a freebsd 7 machine. i get this: /usr/bin/ld: /usr/local/ssl/lib/libssl.a(t1_srvr.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/local/ssl/lib/libssl.a:

Re: mysql 5.0.51b and ssl

2008-06-23 Thread kalin m
flags i can change in the Makefile for the mysql build? does it have to be a 'shared'? static?! thanks... kalin m wrote: hi all... i just installed openssl 0.9.8h and trying to build mysql 5.0.51b with it on a freebsd 7 machine. i get this: /usr/bin/ld: /usr/local/ssl/lib/libssl.a

indexes and speeds

2008-05-21 Thread kalin m
hi all... just wondering what is the performance difference between: PRIMARY KEY [/|index_type|/] (/|index_col_name|/1,/|index_col_name|/2) at the time of the table creation or create index index_name1 on table_name (/|index_col_name|/1); create index index_name2 on table_name

default my.cnf?

2008-03-18 Thread kalin m
hi all... i have a 5.0.33 build from source on a freebsd 4.10 machine... i'm looking for a my.cnf file. ps tells me that the base dir is /usr/local but there is no my.cnf there. and i cant find one anywhere. i can get all the variables set up from the cli but i need to change some of them.

Re: maximum number of records in a table

2007-06-12 Thread kalin mintchev
to have about 8 gigs of ram to successfully use a table like that. either that or cluster 2 machines with 4 gigs each and split the table. does this sound reasonable? is my logic flawed somehow? i'll appreciate any comments on this subject thanks... On 6/11/07, kalin mintchev [EMAIL

Re: maximum number of records in a table

2007-06-12 Thread kalin mintchev
kept in ram or both .MYD and .MYI? multiplying 90x100 is what the size of the MYI + MYD will be, right? is that all living in ram? thanks Olaf On 6/12/07 3:24 AM, kalin mintchev [EMAIL PROTECTED] wrote: hi david.. thanks... i've done this many times and yes either trough php, perl

Re: maximum number of records in a table

2007-06-12 Thread kalin mintchev
at the same time, do you have to join other tables in for your queries, etc? Olaf On 6/12/07 3:24 AM, kalin mintchev wrote: hi david.. thanks... i've done this many times and yes either trough php, perl, python or on the mysql cl client. but my question here is not about doing it and insert

Re: maximum number of records in a table

2007-06-12 Thread kalin mintchev
at the same time, do you have to join other tables in for your queries, etc? Olaf On 6/12/07 3:24 AM, kalin mintchev wrote: hi david.. thanks... i've done this many times and yes either trough php, perl, python or on the mysql cl client. but my question here is not about doing it and insert

Re: maximum number of records in a table

2007-06-12 Thread kalin mintchev
You should be fine. 100 000 000 is not that much. Just make sure you set the right keys (and then query by them) on the table and even more importantly, set caches and buffers to utilize your RAM appropriately. thanks. Olaf On 6/12/07 11:09 AM, kalin mintchev [EMAIL PROTECTED

maximum number of records in a table

2007-06-11 Thread kalin mintchev
hi all... from http://dev.mysql.com/doc/refman/5.0/en/features.html: Handles large databases. We use MySQL Server with databases that contain 50 million records. We also know of users who use MySQL Server with 60,000 tables and about 5,000,000,000 rows. that's cool but i assume this is

Re: maximum number of records in a table

2007-06-11 Thread kalin mintchev
id... trying to answer only based upon row count is NONSENSICAL, IMO. On 6/11/07, kalin mintchev [EMAIL PROTECTED] wrote: hi all... from http://dev.mysql.com/doc/refman/5.0/en/features.html: Handles large databases. We use MySQL Server with databases that contain 50 million records

Re: mysql limits

2007-02-07 Thread kalin mintchev
Search speeds and CPU with MyISAM is quite good. I tried InnoDb and insert speeds was far too slow because of its row locking versus MyISAM's table locking. Some people have been able to fine tune InnoDb but it requires even more RAM because InnoDb works best when the entire table fits into

Re: mysql limits

2007-02-05 Thread kalin mintchev
Message - From: kalin mintchev [EMAIL PROTECTED] To: mysql@lists.mysql.com Sent: Monday, February 05, 2007 9:14 AM Subject: mysql limits hi all... i just wanted to ask here if somebody has experience in pushing the mysql limits... i might have a job that needs to have a table (or a few

Re: mysql limits

2007-02-05 Thread kalin mintchev
Put as much memory in the machine as possible. Building indexes for a table of that size will consume a lot of memory and if you don't have enough memory, building the index will be done on the hard disk where it is 100x slower. I've had 100M row tables without too much problem. However when

mysql limits

2007-02-04 Thread kalin mintchev
hi all... i just wanted to ask here if somebody has experience in pushing the mysql limits... i might have a job that needs to have a table (or a few tables) holding about a 100 million records. that's a lot of records is there any limitation of some kind that wouldn;t allow mysql to handle

group by problem

2006-10-16 Thread kalin mintchev
hi all... i have an issue with group by and ordering. apparently group by ignores 'order by id DESC'?! an example is a table that has an id and a category fields. there are a few categories under which records can be filed. so what i want is the latest record from each category by doing

Re: group by problem

2006-10-16 Thread kalin mintchev
Basically you can't do what you want either without temporary tables or using a subselect. Subselects are only available in mysql 4.1+ (I think - check the docs) so that may or may not be an option. thanks... pardon my ignorance - how would i do that using subselects? -- MySQL General

Re: group by problem

2006-10-16 Thread kalin mintchev
but that will get you all records for that category not just the most recently updated. that's the main problem, isn't it? what i'm looking for is the last record for EACH of the categories in the table. i'm aware of the aformentioned options. my problem with group by is that ignores the

select random ids from list

2006-07-31 Thread kalin mintchev
hi all... how can i do a query on a list of ids without doing individual queries for each one of them? something like: select id,title from content where id = 100,106,109; of course this doesn't work... is it possible somehow? thanks -- MySQL General Mailing List For list

Re: select random ids from list

2006-07-31 Thread kalin mintchev
select id,title from content where id IN(10,20,30); cool thanks.. what if i want it to be random ordering like: select id,title from content where id IN(20,10,30); and i would like the order of the ids and the in() to be kept in the result array. what 'order by' would i use?! -- MySQL

binary select - case sensitive

2006-07-05 Thread kalin mintchev
hi all... i found this on the mysql dev manual site: MySQL 4 and later string comparisons, including DISTINCT, aren't case sensitive unless the field is declared as BINARY or you use BINARY in your comparison. so here i tried it but no good. any ideas?! the field is not declared binary but i do

Re: binary select - case sensitive

2006-07-05 Thread kalin mintchev
http://dev.mysql.com/doc/refman/5.1/en/charset-binary-op.html It has some good examples. got it thanks... -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

mysql for freebsd 6.0

2006-03-22 Thread kalin mintchev
hi all... i can't see the mysql 5 version for freebsd 6.0 on the mysql developer site? am i blind or it's on purpose?!?! curious... and actually need it... thanks... -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

data backup

2006-03-05 Thread kalin mintchev
hi all... what's the best way to periodically back up mysql data? so that databases and tables can be still usable even after a mysql upgrade? thanks... -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

simple load query

2006-01-17 Thread kalin mintchev
hi all... whats the problem with this: load data infile 'stores.txt' into table useyourcash_sports_us (chain, store, address1, address2, city, state, zip,web) FIELDS TERMINATED BY '\t' i get: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server

Re: is this normal?

2005-12-07 Thread kalin mintchev
Sorry I first misread yor question (I hope I cancelled prev. post on time). I thought you have problems connecting to mysql while actual problem is: Why it is so easy for everyone (even from outside) to connect? Yes this is normal: default user is root *without password* if you wan't to secure

Re: is this normal?

2005-12-07 Thread kalin mintchev
Yes you're right! you can safely delete those - but first make some changes... as it seems you've set up root password only for : [EMAIL PROTECTED] - right? that's why you can't login using localhost (mysql without -h host option assumes -h localhost and if you only changed password for

is this normal?

2005-12-06 Thread kalin mintchev
system freebsd 4.10 mysql is binary: mysql-standard-5.0.15-freebsd4.7-i386 after mysql installation and root password set up i can type: /usr/local/mysql/bin/mysql -u no_matter_what_user_here and i get right in. even if i type -p. i do get the password prompt but doesn't matter

data export

2005-04-11 Thread kalin mintchev
hi all... is there a simple way to export data from mysql tables? like the opposite of 'load data infile'? i was looking around in the manual but without success... thanks. -- -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

insert

2005-01-07 Thread kalin mintchev
hi all... i need some help. can somebody explain why is this insert/select not working? insert into the_db (place,address,number) values(stuff,stuff2,select this from that where one=two); i tried ()s around the 'select' too but it didn't work. thanks. -- -- MySQL General Mailing List

Re: insert

2005-01-07 Thread kalin mintchev
(place, address, number,number_too) select stuff,stuff2, this, this_too from that where one=two; thanks... i may yet have the syntax wrong, but its close. kalin mintchev wrote: hi all... i need some help. can somebody explain why is this insert/select not working? insert into the_db (place

Deleted: 0 Skipped: 0 Warnings: a lot

2004-12-09 Thread kalin mintchev
hi all... where can i see what these warnings are. i get them when i do load data infile. i was looking for some kind of log under /var/logs/ or mysql/var/log but there isn't a log file for mysql at any of those locations. and the mysql/var/ doesn't exist at all. i created it and redid the load

RE: Deleted: 0 Skipped: 0 Warnings: a lot

2004-12-09 Thread kalin mintchev
to old for show warnings!? (J.R., sorry about the double post...) J.R. -Original Message- From: kalin mintchev [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 6:53 PM To: [EMAIL PROTECTED] Subject: Deleted: 0 Skipped: 0 Warnings: a lot hi all... where can i see what

RE: Deleted: 0 Skipped: 0 Warnings: a lot

2004-12-09 Thread kalin mintchev
help out. there is no such file on this machine... thanks J.R. -Original Message- From: kalin mintchev [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 7:29 PM To: J.R. Bullington Subject: RE: Deleted: 0 Skipped: 0 Warnings: a lot Command is SHOW WARNINGS; You

RE: Deleted: 0 Skipped: 0 Warnings: a lot

2004-12-09 Thread kalin mintchev
after you run your query (or LOAD DATA). That may be why you can't use it. Also, try looking under HOSTNAME.ERR instead of a log file. That might help out. J.R. -Original Message- From: kalin mintchev [mailto:[EMAIL PROTECTED] Sent: Thursday, December 09, 2004 7:29 PM To: J.R

Re: syntax question..

2004-11-15 Thread kalin mintchev
- Original Message - From: kalin mintchev [EMAIL PROTECTED] To: Adam [EMAIL PROTECTED] Cc: MySQL General [EMAIL PROTECTED] Sent: Sunday, November 14, 2004 11:33 PM Subject: Re: syntax question.. Kalin, Kalin thanks to all... yes, Rhino - i'm new. my first Kalin post

syntax question..

2004-11-14 Thread kalin mintchev
hi everybody.. can somebody please explain what is wrong with this command: select t1.data from table1 as t1 where t1.zip=(select * from table2 as t2 where t2.chain like %carmike%); thank you... -- -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

RE: syntax question..

2004-11-14 Thread kalin mintchev
. you may also cause a conflict by using the database alias (t1) as the name of the result Peter -Original Message- From: kalin mintchev [mailto:[EMAIL PROTECTED] Sent: 14 November 2004 23:06 To: [EMAIL PROTECTED] Subject: syntax question.. hi everybody.. can somebody please explain

Re: syntax question..

2004-11-14 Thread kalin mintchev
Kalin, Kalin thanks to all... yes, Rhino - i'm new. my first Kalin post. the version is the problem indeed. it's Kalin 4.0.13-standard. how would i achieve the same Kalin query in this version?... You'll need to provide the following: (1) What is the result you want to achieve? well

terminated by '\r'....

2003-07-04 Thread Kalin Mintchev
hi all, load data infile doesn't work with escaped by '\\' line terminated by '\r' the problem is the '\r' . doesn't work with '\r\n' either. if i replace the \r with \n in the the text file itself then it works fine the files i'm trying to load are tab delimited txt files generated by

cant grant privileges?!

2003-06-03 Thread Kalin Mintchev
hi everybody... i just installed mysql 4.0.13 on a redhat linux 8.0 when i create a database as root and then grant privileges to another user like this: GRANT ALL ON somedb.* TO [EMAIL PROTECTED] IDENTIFIED BY passwd; everything seems to be fine but then if i log in as user and try to get to

Re: cant grant privileges?!

2003-06-03 Thread Kalin Mintchev
in this case. Best regards Nils Valentin Tokyo/Japan 2003年 6月 3日 火曜日 11:31、Kalin Mintchev さんは書きました: hi everybody... i just installed mysql 4.0.13 on a redhat linux 8.0 when i create a database as root and then grant privileges to another user like this: GRANT ALL ON somedb.* TO [EMAIL