Re: InnoDB Foreign Key Constraint Issue

2003-09-18 Thread Heikki Tuuri
David, - Original Message - From: "David Griffiths" <[EMAIL PROTECTED]> Newsgroups: mailing.database.myodbc Sent: Friday, September 19, 2003 4:07 AM Subject: InnoDB Foreign Key Constraint Issue > The following constraint is failing: > > ALTER TABLE address_list ADD CONSTRAINT FOREIGN KE

Re: Can't Show Warnings

2003-09-18 Thread Matt W
Hi Randy, 4.1.1 hasn't been released yet unfortunately. The devs have said that they've started release testing or whatever it's called. I think they said it will hopefully be released in 4-6 weeks. :-) Matt - Original Message - From: "Randy Chrismon" Sent: Thursday, September 18, 2003

Re: Replication question

2003-09-18 Thread Andrey Kotrekhov
SQL > Andrey Kotrekhov <[EMAIL PROTECTED]> wrote: > > > > Sorry. I am wrong. Situation is worse. > > Both tables aren't replicate to the slave. > > But query try run it on slave :( > > > > slave: mysql-4.0.13 > > master: mysql-4.0.14 > > What replication options do you use? Full scheme is:

Re: Can't Show Warnings

2003-09-18 Thread Randy Chrismon
> For LOAD DATA, it works better in 4.1.1, as indicated here: I read that and immediately went looking on the MySQL site for 4.1.1. All I can find is 4.1.0-alpha. Where can I get 4.1.1? Thanks. Randy -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:

RE: migrate data from myisam to innoDB

2003-09-18 Thread Hsiu-Hui Tseng
Thank you. So, the Rows in show table status is meaningless. One more question, the data_length for small table in show table status are all 16384, even the tabel without any data? thank you again Hsiu-Hui -Original Message- From: Daniel Kasak [mailto:[EMAIL PROTECTED] Sent: Thursday,

Re: Help needed with MySQL C API-based client (segfault)

2003-09-18 Thread Ganbold
Here is the corrected version:) Take a look at Paul DuBois book. Don't use gets. Instead use fgets. That's safe. I didn't change your gets call:) hth, Ganbold #include #include #include #if defined(_WIN32) || defined(_WIN64) #include #endif #ifdef WIN32 #pragma comment(lib,"ws2_32") #inc

Re: migrate data from myisam to innoDB

2003-09-18 Thread Daniel Kasak
Hsiu-Hui Tseng wrote: Hello, I migrated all my tables to innoDB from MyIsam. After migrated, I ran "Show TAble Status". Why the row count is change. In MyIsam table status.rows = 316202 the new InnoDB table status.rows = 287341 When doing select count(*) from TABLE. I go 316202 rows. Why this hap

migrate data from myisam to innoDB

2003-09-18 Thread Hsiu-Hui Tseng
Hello, I migrated all my tables to innoDB from MyIsam. After migrated, I ran "Show TAble Status". Why the row count is change. In MyIsam table status.rows = 316202 the new InnoDB table status.rows = 287341 When doing select count(*) from TABLE. I go 316202 rows. Why this happening? Is there any

Help needed with MySQL C API-based client (segfault)

2003-09-18 Thread Vikram Vaswani
Hello, I need to write a simple C client for a project. I am using the MySQL C API. Attached is the code. It occassionally segfaults with no visible pattern. Could someone help me figure out why? Or any other comments on the code to help me make it better? /* client.c */ #include #include int

Re: using OR in select statement with distinct results

2003-09-18 Thread Sam Folk-Williams
Thanks everyone, I suspected it was something quite simple. Sam Matt W wrote: - Original Message - From: "Paul DuBois" Sent: Thursday, September 18, 2003 8:17 PM Subject: Re: using OR in select statement with distinct results At 7:47 PM -0500 9/18/03, Sam Folk-Williams wrote: Hi,

Re: using OR in select statement with distinct results

2003-09-18 Thread Matt W
- Original Message - From: "Paul DuBois" Sent: Thursday, September 18, 2003 8:17 PM Subject: Re: using OR in select statement with distinct results > At 7:47 PM -0500 9/18/03, Sam Folk-Williams wrote: > >Hi, > > > >I keep having this fundamental problem. It seems like this should be > >e

Re: using OR in select statement with distinct results

2003-09-18 Thread Kelley Lingerfelt
Won't putting the first OR in parenthesis, fix it up? SELECT t1.title, t2.auth_name FROM t1, t2, WHERE (cat_id = 1 OR cat_id = 2) AND t1.auth_id = t2.auth_id KL Sam Folk-Williams wrote: > Hi, > > I keep having this fundamental problem. It seems like this should be > easy enough, but whenever I

Re: using OR in select statement with distinct results

2003-09-18 Thread Paul DuBois
At 7:47 PM -0500 9/18/03, Sam Folk-Williams wrote: Hi, I keep having this fundamental problem. It seems like this should be easy enough, but whenever I have a query where I'm using OR in the WHERE clause and the query is performed on multiple tables, I get strange results. For example: SELECT

Re: Simple Stored Procedure Emulation with PHP/mySQL

2003-09-18 Thread daniel
> Have you seen this? > > http://www.sklar.com/page/article/myphp > Man this is a filth idea, there is potential here until stored procs come into effect, can it be used to create php stored procedure functions at all ? Like is there a better example than that, like its obvious its creating a fun

Re: Lock tables in myisam

2003-09-18 Thread daniel
> Hi, > > No, ROLLBACK doesn't work with MyISAM. Jeremy meant that you can add > logic/code between LOCK/UNLOCK to "simulate" ROLLBACK. e.g. queries > that "undo" what you did if something goes wrong. Of course this won't > cover you if mysqld dies, is killed, or you lose the connection etc. as > r

using OR in select statement with distinct results

2003-09-18 Thread Sam Folk-Williams
Hi, I keep having this fundamental problem. It seems like this should be easy enough, but whenever I have a query where I'm using OR in the WHERE clause and the query is performed on multiple tables, I get strange results. For example: SELECT t1.title, t2.auth_name FROM t1, t2, WHERE cat_id =

InnoDB Foreign Key Constraint Issue

2003-09-18 Thread David Griffiths
The following constraint is failing: ALTER TABLE address_list ADD CONSTRAINT FOREIGN KEY (address_type_id) REFERENCES address_type (address_type_id); The address_list table looks like: mysql> desc address_list; +--+--+--+-+-+---+ | Field

Design Suggestion

2003-09-18 Thread Adam Clauss
I have several fields in which I will be strong text. Various categories, and for each category, its related subcategories. Each subcategory then contains various items. My question is, for performance, would it be better to assign each category/subcategory pair a unique ID number and then anyti

Re: Simple Stored Procedure Emulation with PHP/mySQL

2003-09-18 Thread Jeremy Zawodny
On Fri, Sep 12, 2003 at 03:35:55PM +0200, Mikhail Entaltsev wrote: > Hi, > > IMHO it's nice idea... > > http://www.ashleyit.com/blogs/brentashley/archives/000339.html Have you seen this? http://www.sklar.com/page/article/myphp Jeremy -- Jeremy D. Zawodny | Perl, Web, MySQL, Linux Maga

Re: Replication and mysqldump issues

2003-09-18 Thread Jeremy Zawodny
On Thu, Sep 18, 2003 at 01:47:04PM -0400, [EMAIL PROTECTED] wrote: > I have a database called abc-100 which seems to cause problems with > replication and importing sql files created with mysqldump. > > First, if on the master we create a temporary table (because we > don't have subselects yet) it

Re: Round Robin Replication, Add a server; Renumber

2003-09-18 Thread Jeremy Zawodny
On Thu, Sep 18, 2003 at 10:07:22AM +0200, Franky wrote: > Jeremy Zawodny wrote: > > > On Tue, Sep 02, 2003 at 05:34:12PM -0500, Lewis Watson wrote: > > > >>I currently have three mysql machines replication from A-B-C-A type > >>fashion. I need to replace A. I am thinking that I could add D and ha

Re: Lock tables in myisam

2003-09-18 Thread Jeremy Zawodny
On Thu, Sep 18, 2003 at 11:38:17AM +1000, electroteque wrote: > rollback works on myisam ? this is mysql4 anyway, sweet i'll give it a > try. No. That's what I meant about having to put extra smarts in your code. It needs to be able to undo its actions. > On Fri, 2003-09-19 at 08:01, Jeremy Zawo

Re: Lock tables in myisam

2003-09-18 Thread daniel
Righty, so if error unlock table hehe, i have found i need to produce my error first then do a rollback for an error to display in php as it wouldnt show a mysql error after a rollback, i guess i could add an unlock table in my trigger error function too. > At 11:38 AM +1000 9/18/03, electroteque

RE: Lock tables in myisam

2003-09-18 Thread daniel
> > No rollback does not work on myisam Jeremy was stating that you don't > have to do what you suggested to implement a correct ROLLBACK in mySQL. > Use INNODB. > > http://www.mysql.com/doc/en/COMMIT.html > > Hmm if you got my other post i am trying to simulate innodb in myisiam for projects tha

Re: Lock tables in myisam

2003-09-18 Thread Matt W
Hi, No, ROLLBACK doesn't work with MyISAM. Jeremy meant that you can add logic/code between LOCK/UNLOCK to "simulate" ROLLBACK. e.g. queries that "undo" what you did if something goes wrong. Of course this won't cover you if mysqld dies, is killed, or you lose the connection etc. as real transacti

Re: Update question

2003-09-18 Thread Paul DuBois
At 5:14 PM -0500 9/18/03, <[EMAIL PROTECTED]> wrote: I'm not quite sure why I haven't run across this in the past, but now that I have I am stumped. I am needing to update a table based on criteria found in it and one other table, but I am uncertain how to proceed. If I had subselects I would run t

Re: Lock tables in myisam

2003-09-18 Thread Paul DuBois
At 11:38 AM +1000 9/18/03, electroteque wrote: rollback works on myisam ? this is mysql4 anyway, sweet i'll give it a try. Rollback *doesn't* work with MyISAM, that's why Jeremy said you have to put the necessary logic in your application if you want to achieve the same effect. At least, that's wha

RE: Lock tables in myisam

2003-09-18 Thread Dathan Vance Pattishall
- Dathan Vance Pattishall - Sr. Programmer and mySQL DBA for FriendFinder Inc. - http://friendfinder.com/go/p40688 -->-Original Message- -->From: electroteque [mailto:[EMAIL PROTECTED] -->Sent: Wednesday, September 17, 2003 6:38 PM -->To: [EMAIL PROTECTED] -->Subject: Re: Lock t

Update question

2003-09-18 Thread jaydrake
I'm not quite sure why I haven't run across this in the past, but now that I have I am stumped. I am needing to update a table based on criteria found in it and one other table, but I am uncertain how to proceed. If I had subselects I would run the query as follows, I believe: UPDATE suppliercatl

RE: Platform vs. Performance

2003-09-18 Thread Andy Eastham
Harald, How often do you read 200 rows by key in a daya to day application? How often do you insert 350768 rows in an application that you're considering Win98 as the platform? I've never deployed MySql on Wintel, except for developing on my laptop. I always use Solaris or Redhat for serious

Re: Bug in finding Duplicates with Group By?

2003-09-18 Thread Paul DuBois
At 4:56 PM -0500 9/18/03, Allen wrote: DISTINCT key_field is fine. I don't think it will make a difference. My example was using only one field. Your example was using three fields by my count. DISTINCT field1 is likely to yield a different result than DISTINCT field1, field2, field3. What form

Re: Lock tables in myisam

2003-09-18 Thread electroteque
rollback works on myisam ? this is mysql4 anyway, sweet i'll give it a try. On Fri, 2003-09-19 at 08:01, Jeremy Zawodny wrote: > On Thu, Sep 18, 2003 at 03:00:17PM +1000, [EMAIL PROTECTED] wrote: > > Hi there i have a couple of projects which required fulltext searching so > > was unable to setup

Re: mysql memory usage

2003-09-18 Thread Jeremy Zawodny
On Thu, Sep 18, 2003 at 02:53:29PM -0400, Gabriel Ricard wrote: > Is there any way to see what MySQL is storing in memory? Like, for > instance, what is stored in the query cache, or at least what tables > have data stored in the query cache, and how much they have stored? Nothing other than wha

Re: Fragmentation problem with MYD/MYI files

2003-09-18 Thread Jeremy Zawodny
On Thu, Sep 18, 2003 at 01:57:17PM +0300, Mikko Noromaa wrote: > Hi, > > Is it possible to configure MySQL so that it would allocate a large amount > of extra space for the MYD/MYI files, and then use this space as necessary? I don't know of any. > This way the files would need to be grown only

Re: Can't Show Warnings

2003-09-18 Thread Paul DuBois
At 1:43 PM -0400 9/18/03, Randy Chrismon wrote: Here's a snapshot from a mysql environment: mysql> LOAD DATA LOCAL INFILE 'c:/mysql/miamibilling-Cash.txt' -> REPLACE INTO TABLE ln_cash -> FIELDS TERMINATED BY '|' -> ENCLOSED BY '~' -> LINES TERMINATED BY '\r\n' -> ;

Re: Lock tables in myisam

2003-09-18 Thread Jeremy Zawodny
On Thu, Sep 18, 2003 at 03:00:17PM +1000, [EMAIL PROTECTED] wrote: > Hi there i have a couple of projects which required fulltext searching so > was unable to setup innodb on these. I was wondering if lock tables is a > secure way to make the transaction on these tables and does this prevent > bein

Re: Bug in finding Duplicates with Group By?

2003-09-18 Thread Allen
DISTINCT key_field is fine. I don't think it will make a difference. My example was using only one field. Paul DuBois wrote: At 4:22 PM -0500 9/18/03, Allen wrote: Ok. I looked through google and saw a couple examples of how to find the duplicates in a table that looked like this... SELECT

Re: Bug in finding Duplicates with Group By?

2003-09-18 Thread Paul DuBois
At 4:22 PM -0500 9/18/03, Allen wrote: Ok. I looked through google and saw a couple examples of how to find the duplicates in a table that looked like this... SELECT date, time, id, count(*) as n from session GROUP BY date,time,id HAVING n > 1; Ok. So I tried it. I have a table of 13,128,178 r

Bug in finding Duplicates with Group By?

2003-09-18 Thread Allen
Ok. I looked through google and saw a couple examples of how to find the duplicates in a table that looked like this... SELECT date, time, id, count(*) as n from session GROUP BY date,time,id HAVING n > 1; Ok. So I tried it. I have a table of 13,128,178 rows (not a small example). I ran a DIST

Re: Replication and Auto_Increment

2003-09-18 Thread Fred van Engen
On Thu, Sep 18, 2003 at 01:14:47PM -0400, Christopher Ferry wrote: > We're running bi-directional replication between two servers running > MySQL 3.23.56. > > One server being active the other a hot standby. > Wanting to switch to the hot standby I noticed that replication had > ceased on the HS s

Failed connectionattempts

2003-09-18 Thread Anders Bruun Olsen
Hi, I have a server which has been running for about a year now. It started with kernel 2.4.19 and mysql 3.x it has since been continually upgraded so that it is now kernel 2.4.20 and mysql 4.0.13. The server is a Compaq server with dual Pentium II (Deschutes) 400MHz 512Kb cache CPUs, 320Mb RAM an

Re: Need help writing query

2003-09-18 Thread Patrick Shoaf
I loaded MySQL 4.1, but now the text is gibberish in the Group_Concat field SELECT Cat_Item_Img,Cat_Price,Product.Item_Code,GROUP_CONCAT(Item_Size SEPARATOR ";") as sizes,Item_Img, Description,Category,Retail_Price,Short_Desc,Product.Item_Color FROM Cat_Items,Product WHERE cat_code ="BoltTech" an

add this to a wish list please.

2003-09-18 Thread Dathan Vance Pattishall
Sometimes I get this error on a slave... for unknown reasons Error 'Incorrect key file for table: 'hasit'. Try to repair it' on query 'REPLACE INTO hasit If there is a wish list could the error report 'db.table'? Also why doesn't mysql automatically fix the error itself when the error

MySQL-4.0.15a packages now available

2003-09-18 Thread Lenz Grimmer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, several binary packages of the initial release of MySQL 4.0.15 did not include the embedded server library "libmysqld.a", because of a compile/linking error with the compilers used on these platforms. As a workaround, the creation of the embedded

Re: Does Null == ""?

2003-09-18 Thread Bob Hall
On Thu, Sep 18, 2003 at 12:44:10PM +0100, Haydies wrote: > I have only one thing to say really on this. Data never has any meaning at > all. It is simply data, and not information. Information is extracted from > data and is then given meaning by the viewer of the data. True. We were arguing about

mysql memory usage

2003-09-18 Thread Gabriel Ricard
Is there any way to see what MySQL is storing in memory? Like, for instance, what is stored in the query cache, or at least what tables have data stored in the query cache, and how much they have stored? -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

I asked a question about slave compatibility between versions

2003-09-18 Thread Dathan Vance Pattishall
FYI I want to share this with others JIC you didn't know. I asked a question about slave compatibility between masters and slaves of different versions. Here is the compatibility matrix chart found. http://www.mysql.com/doc/en/Replication_Implementation.html Master Master Master Maste

Upgrade from 3.23.52 to 4.0.15 all my database show up as empty.

2003-09-18 Thread Daevid Vincent
I'm not normally one to panic, and I know I can revert back to an old 3.23.57 version, but this is concerning and was hoping a guru could tell me what is wrong here. After the rpm upgrade, all my databases show up (ie. In phpMyAdmin for example), but they all show (-) for the tables -- in otherwor

RE: MySQL/Cron problem

2003-09-18 Thread Jason Linden
The same thing happens whether or not I use the PHP script or a standard SQL script as described in my original post, so I don't think it is a PHP problem. Below is two snapshots, one @ 2:06 and the second @ 2:11, if this is hard to read due to formatting let me know and I can send it to you as an

Re: Slow query join problem

2003-09-18 Thread Allen
Yes, you are correct. I was thinking that wouldn't be the case, but it makes sense now. I added indexes and then the query returned in a few seconds. Definitely have to have indexes. Thanks! Dan Nelson wrote: In the last episode (Sep 18), Allen said: I have two tables. One table is 13 milli

Replication and mysqldump issues

2003-09-18 Thread jschmidt
I have a database called abc-100 which seems to cause problems with replication and importing sql files created with mysqldump. First, if on the master we create a temporary table (because we don't have subselects yet) it causes the slave to die with the following. Relay log says: DROP /*!40005

Can't Show Warnings

2003-09-18 Thread Randy Chrismon
Here's a snapshot from a mysql environment: mysql> LOAD DATA LOCAL INFILE 'c:/mysql/miamibilling-Cash.txt' -> REPLACE INTO TABLE ln_cash -> FIELDS TERMINATED BY '|' -> ENCLOSED BY '~' -> LINES TERMINATED BY '\r\n' -> ; Query OK, 16374 rows affected (20.83 sec) Recor

RE: MySQL/Cron problem

2003-09-18 Thread Dathan Vance Pattishall
What do you mean it doesn't release itself? Can you provide some free examples of before and after then 5 min after that? The indication from the content of the below message is that the PHP version in use has a memory leak. 1st you need to make sure that the memory is not being put into a cache p

RE: MySQL/Cron problem

2003-09-18 Thread Jason Linden
Somebody suggested that I create the cron job as a php scripts, so I did: include("dbinfo.inc.php"); $connect = MYSQL_CONNECT($hostname, $username, $password) OR DIE("Unable to connect to the database"); @mysql_select_db( "$dbName") or die( "Unable to select database"); $insert = "INSERT INTO sys

Re: LOAD DATA

2003-09-18 Thread upscope
Well I figured out what was going on, MS uses a LF,CR instead of just a Line feed. The was corrupting the first column. I added a LINES TERMINATED BY statement and put in the '\r\n'. Now everything works fine. Thanks again. - Original Message - From: "upscope" <[EMAIL PROTECTED]> To: "MySq

Replication and Auto_Increment

2003-09-18 Thread Christopher Ferry
We're running bi-directional replication between two servers running MySQL 3.23.56. One server being active the other a hot standby. Wanting to switch to the hot standby I noticed that replication had ceased on the HS server. The show slave status: | 192.168.1.10 | mysql_replicator | 3309

Re: Platform vs. Performance

2003-09-18 Thread Chris Nolan
Are these numbers still valid? Those documents are quite old - well before the time of 4.0 being declared production ready and before the inclusion of InnoDB tables. Since then, the Windows port has had a lot of work done on it and many of the "TODO" sections at the bottom have been taken care of.

Re: Funny behaviour with '?' - SQL, SELECT

2003-09-18 Thread Victoria Reznichenko
"Franz, Fa. PostDirekt MA" <[EMAIL PROTECTED]> wrote: > > I tried > SELECT * FROM WHERE LIKE '%?%'; > to find out if german umlauts (???) are imported. > > In the resultset where some ds with '?' and some with 'y'. > So the charset itself seems to be OK but why did I get 'y'. > They sound some

Re: optimize tables and innodb

2003-09-18 Thread Chris Nolan
Recently, the great Heikki said that the following directive should also defragment your InnoDB tables: ALTER TABLE table_name TYPE=InnoDB; How was it put...ah yes, a "table no-op". Regards, Chris On Fri, 2003-09-19 at 01:32, Gustavo A. Baratto wrote: > from the manual: > - > 7.5.12.3

RE: random access denied

2003-09-18 Thread James M Kupernik
Thank you, I have checked all of the above. I have set the max connections to 200, but that didn't help any. The connection per hour is not a factor because it doesn't lock out the user, it just fails to authenticate, but as soon as you refresh the page or try to connect via the command line to go

Re: Selecting only the exact record from double

2003-09-18 Thread Victoria Reznichenko
"Chris" <[EMAIL PROTECTED]> wrote: > >Quick question... I need to be able to send a query like: > > select cd,fid,s_from,s_to from ima where '3355443200' between s_to and > s_from > > Thats fine and all, but when I get my results I pull 2 records: > > MA smith 335544320 352321535 > BS m

Re: Large number of Databases

2003-09-18 Thread Jeremy Zawodny
On Thu, Sep 18, 2003 at 12:49:09PM -0300, Gustavo A. Baratto wrote: > I already use linuxthreads for freebsd... Ah, okay. Most don't, which is why I mentioned it. > Do you think mysql would run well with the new threads for freebsd 5.XX? > Did anybody try it? In theory, yes. In practice, not

RE: random access denied

2003-09-18 Thread mos
At 11:17 AM 9/18/2003, you wrote: It's not a continued access denied, because it can accept connections all day long, but randomly it will just deny one, but the accept it on the next try. I've googled this problem to death, I don't know what else I can do James, Are you sure it's not something si

RE: random access denied

2003-09-18 Thread James M Kupernik
It's not a continued access denied, because it can accept connections all day long, but randomly it will just deny one, but the accept it on the next try. I've googled this problem to death, I don't know what else I can do -Original Message- From: mos [mailto:[EMAIL PROTECTED] Sent: Wedn

Re: Another permission question...

2003-09-18 Thread Victoria Reznichenko
"Tore Bostrup" <[EMAIL PROTECTED]> wrote: > > MySQL 3.23.36 (yeah, I know it's getting old...): > > What permission do I need to run the following query: > > REVOKE ALL > ON mydb.* FROM 'sdaf'@'%'; > > I get an error 1044: > "Access denied for user: 'Admin@' to database 'mydb'" > > My user ha

Re: Large number of Databases

2003-09-18 Thread Dan Nelson
In the last episode (Sep 18), Gustavo A. Baratto said: > I already use linuxthreads for freebsd... > > Do you think mysql would run well with the new threads for freebsd > 5.XX? Did anybody try it? I've been running mysql 4.1 on a -current box with likse threads and haven't had any problems. I

Re: Slow query join problem

2003-09-18 Thread Joseph Bueno
Allen wrote: I have two tables. One table is 13 million rows the other is about 250,000. I am trying to join the two to find users. The tables are not indexed and I know that will effect the speed, but the join never completes. I let it run for about 10 hours and the process was stuck in th

Re: Replication question

2003-09-18 Thread Egor Egorov
Andrey Kotrekhov <[EMAIL PROTECTED]> wrote: > > Sorry. I am wrong. Situation is worse. > Both tables aren't replicate to the slave. > But query try run it on slave :( > > slave: mysql-4.0.13 > master: mysql-4.0.14 What replication options do you use? > >> >> I have 2 servers. 1-st is master, 2

Re: Large number of Databases

2003-09-18 Thread Gustavo A. Baratto
I already use linuxthreads for freebsd... Do you think mysql would run well with the new threads for freebsd 5.XX? Did anybody try it? thanks Jeremy Zawodny wrote: On Thu, Sep 18, 2003 at 10:51:49AM -0300, Gustavo A. Baratto wrote: no problem for me... 1000+ DBs on RH linux (ext3 fs), then mov

Re: Slow query join problem

2003-09-18 Thread Dan Nelson
In the last episode (Sep 18), Allen said: > I have two tables. One table is 13 million rows the other is about > 250,000. I am trying to join the two to find users. The tables are not > indexed and I know that will effect the speed, but the join never > completes. I let it run for about 10 h

Re: Large number of Databases

2003-09-18 Thread Jeremy Zawodny
On Thu, Sep 18, 2003 at 10:51:49AM -0300, Gustavo A. Baratto wrote: > no problem for me... 1000+ DBs on RH linux (ext3 fs), then moved it to > freebsd 5.1 (almost 1500). Linux is probably faster because of the > kernel based thread, but I like BSD. If you use LinuxThreads on FreeBSD, it's nearly

Re: Unique Key Violation - How to determine which key

2003-09-18 Thread Jeremy Zawodny
On Thu, Sep 18, 2003 at 08:20:00AM -0700, Scot Campbell wrote: > O.K., I understand. And I have always coded in this manner. > > Throw the data at the system and see if it sticks. In most cases it will. > > However, when it does fail, it would be nice to determine the error w/o > issuing more

Re: optimize tables and innodb

2003-09-18 Thread Gustavo A. Baratto
from the manual: - 7.5.12.3 Defragmenting a Table If there are random insertions or deletions in the indexes of a table, the indexes may become fragmented. By fragmentation we mean that the physical ordering of the index pages on the disk is not close to the alphabetical ordering of the

Re: optimize tables and innodb

2003-09-18 Thread Gustavo A. Baratto
from the manual: - 7.5.12.3 Defragmenting a Table If there are random insertions or deletions in the indexes of a table, the indexes may become fragmented. By fragmentation we mean that the physical ordering of the index pages on the disk is not close to the alphabetical ordering of the

Slow query join problem

2003-09-18 Thread Allen
I have two tables. One table is 13 million rows the other is about 250,000. I am trying to join the two to find users. The tables are not indexed and I know that will effect the speed, but the join never completes. I let it run for about 10 hours and the process was stuck in the "sending" state

optimize tables and innodb

2003-09-18 Thread Franky
Hi all, for myisam tables we have "optimize table" that can be cronned to run at night, but is there something like this for the innodb table type as well? Franky -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTE

Re: Unique Key Violation - How to determine which key

2003-09-18 Thread Scot Campbell
O.K., I understand. And I have always coded in this manner. Throw the data at the system and see if it sticks. In most cases it will. However, when it does fail, it would be nice to determine the error w/o issuing more calls. So, the school solution is, "When a unique constraint is violated,

Re: Replication question

2003-09-18 Thread Andrey Kotrekhov
Hi, All! SQL, mysql Sorry. I am wrong. Situation is worse. Both tables aren't replicate to the slave. But query try run it on slave :( slave: mysql-4.0.13 master: mysql-4.0.14 > > I have 2 servers. 1-st is master, 2-d - slave. > But slave store only some tables of master. > For example, master h

RE: Platform vs. Performance

2003-09-18 Thread Andy Eastham
Alec, My point was that in a 40,000 row database, server speed is irrelevant - it's going to be sub second on anything more powerful than my mobile phone. Cost of ownership is much more important for this application, and that depends on the particular circumstances. Andy > -Original Messag

RE: Platform vs. Performance

2003-09-18 Thread Alec . Cawley
> I don't see anything in there that is relevant to the original posting. The tables headed "Speed difference between different SQL servers (times in seconds)" The top row of each table shows times for the same operation on Linux and Windows, showing that for both operations tested, Linux achi

General Enquiry

2003-09-18 Thread Mark Worrell
Hello I hope you can help with this enquiry. I have a small access db split front and back end used by a small group. I would like to convert it to MySQL but my only knowledge is with access. I would also like to investigate the possibilty of producing small db for other people. I accept that i w

RE: Running a definition file from MS-SQL

2003-09-18 Thread Fortuno, Adam
Tormod, I feel your pain brother! Actually, I do this allot more than I'd prefer to admit. I assume when you say MS SQL you mean SQL Server 2000. When you say MySQL, you mean MySQL 4.0.x. Scripting the database/tables from query analyzer doesn't produce files, which are immediately executable in

LOAD DATA

2003-09-18 Thread upscope
I am using the following command to load a table: LOAD DATA LOCAL INFILE "email.txt" INTO TABLE email; The command works and the second and third column go in correctly. But the first column is not loading correctly. I am using Notepad on WIN ME to generate the txt file. JohnDoe[EMAIL PRO

Re: Replication question

2003-09-18 Thread colbey
I'm pretty sure you need to sync the entire database (all tables) to all slaves before starting replication..Your servers are technically already out of sync.. And no wonder it crashes, tables are missing in it's view..You need to hit the initial replication setup manual pages.. On Thu,

Re: Large number of Databases

2003-09-18 Thread Gustavo A. Baratto
no problem for me... 1000+ DBs on RH linux (ext3 fs), then moved it to freebsd 5.1 (almost 1500). Linux is probably faster because of the kernel based thread, but I like BSD. You definetely have to tune your my.cnf... use thread and query cache, increase the key buffer, optimize tables very oft

Re: Running a definition file from MS-SQL

2003-09-18 Thread colbey
Most likely you'd need to do some datatype mapping changes to the script... Everyone I know who's had to do this has typically used something like sqlyog (search google) and used the ODBC import cabability to transfer data from MSSQL -> MySQL.. On Thu, 18 Sep 2003, Tormod Halvorsen wrote: > Hi

Replication question

2003-09-18 Thread Andrey Kotrekhov
Hi, All! SQL, mysql I have 2 servers. 1-st is master, 2-d - slave. But slave store only some tables of master. For example, master has tables A, B But slave has only A table The problem: query: UPDATE A,B SET A.a=B.a WHERE A.c=B.c; the result: crash replication on slave; Is it right? Best

Running a definition file from MS-SQL

2003-09-18 Thread Tormod Halvorsen
Hi all! (My apologies if this has been beaten to death allready, but I *did* search the archives without much luck.) I'm moving from MS SQL to MySQL. Before jumping from the old server, I scripted out the definitions for tables and their fields, thinking I might just run them into MySQL. Guess

RE: Platform vs. Performance

2003-09-18 Thread Andy Eastham
I don't see anything in there that is relevant to the original posting. Andy > -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of Harald Fuchs > Sent: 18 September 2003 14:04 > To: [EMAIL PROTECTED] > Subject: Re: Platform vs. Performance > > > In article <[EMAIL PROTECTE

Re: Need help writing query

2003-09-18 Thread Egor Egorov
Patrick Shoaf <[EMAIL PROTECTED]> wrote: > I have a table name product defined as follows: > Item_Code > Item_Size > Item_Color > Item_img > Description > Cost > Retail_Price > Category > and other non-essential items, such as qty based on code,size,&color > > The data is as follows: > j2400 S

help with table design/performance

2003-09-18 Thread Brad LaJeunesse
Hi All, I'm designing a rather large database, and I'm concerned about performance. Was wondering if anyone had any comments/advice? The particular table I'm concerned about will have about 10 million lines, each referencing a physical item I need to track. Each item in the table will have a auto

RE: /etc/my.cnf config file doesn`t exist on my system

2003-09-18 Thread elimachi
Hi Jamie: Thank very much you for your help. EDWIN LIMACHI N. DATACOM - Instalaciones TSE - INFONET BOLIVIA Phone. 591-2-2123978 Movil: 591-715-29967 Fax: 591-2-2123975 "James M Kupernik" <[EMAIL PROTECTED]> 17/09/2003 21:01 Por favor, responda a <[EMAIL PROTECTED]> Para <[EMAIL PROTECT

InnoDB error

2003-09-18 Thread Gustavo A. Baratto
Hello, I started getting this error since I upgraded from mysql 4.0.13 to 4.0.15: 030918 7:17:13 InnoDB: Error: page 12412 log sequence number 0 670697749 InnoDB: is in the future! Current system log sequence number 0 186563990. InnoDB: Your database may be corrupt. any idea how to get rid of t

Re: Performance Problems

2003-09-18 Thread Scott Helms
> The main table is rather huge, it has 90 columns and now after > three month it has 500.000 records... but in the end it has to store data of > 36 month. Hmm, I think you had better look at normalizing your data, and creating indexes. Start with the indexes since that won't force you to make an

Re: Does Null == ""?

2003-09-18 Thread Haydies
I have only one thing to say really on this. Data never has any meaning at all. It is simply data, and not information. Information is extracted from data and is then given meaning by the viewer of the data. In the case of NULL I have always thought of it is simply "undefined". Thats what Orecal s

Need help writing query

2003-09-18 Thread Patrick Shoaf
I have a table name product defined as follows: Item_Code Item_Size Item_Color Item_img Description Cost Retail_Price Category and other non-essential items, such as qty based on code,size,&color The data is as follows: j2400 S BLK j2400blk.jpgBlack Jacket12.00 24.00 Jacket

Re: combining fields in select

2003-09-18 Thread Harald Tijink
Piko, Please see http://www.mysql.com/doc/en/String_functions.html for more information about String functions in the SELECT. The function you're looking for is CONCAT or CONCAT_WS. Harald - Original Message - From: "Michael Piko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursd

Re: escaping slashes not present in table?

2003-09-18 Thread Fred van Engen
Abs, On Thu, Sep 18, 2003 at 08:35:25AM +0100, Abs wrote: > --- Daniel Kasak <[EMAIL PROTECTED]> wrote: > > Abs wrote: > > > > >mysql and php question: > > >the magic_quotes_gpc is set to 1. when i echo it to > > >the browser, it shows the added slashes. i inserted > > >these same values into a

Re: Performance Problems

2003-09-18 Thread Harald Tijink
Do you use indexes? See http://www.mysql.com/doc/en/CREATE_INDEX.html. In my system a retrieval from a 24 million records table (3 columns) with a result of 25 records only took 0.09 sec and 24 million records table with 5 columns 0.25 sec Harald - Original Message - From: "Schonder, M

Looking for workaround for a SELECT statement.

2003-09-18 Thread Angela Olmeijer
Hi, Someone asked me if it were possible to do the following SELECT statement in MySQL. I am sure we need a workaround for this. Can someone please offer any clues or even answers? The statement: SELECT ename, empno, mgrnr, job FROM emp START WITH job = PRESIDENT"" CONNECT BY PRIOR empno = mg

  1   2   >