Re: ~performance issues~

2006-04-10 Thread Mohammed Abdul Azeem
Thanks Ravi On Tue, 2006-04-11 at 11:41 +0530, Ravi Prasad LR wrote: > yes, that is the reason for slowness . > > Thanks, > Ravi > On Tuesday 11 April 2006 10:51, Mohammed Abdul Azeem wrote: > > Hi Ravi, > > > > Since the sync'ing is done to disk with sync_binlog=1, the update > > queries to se

Re: ~performance issues~

2006-04-10 Thread Ravi Prasad LR
yes, that is the reason for slowness . Thanks, Ravi On Tuesday 11 April 2006 10:51, Mohammed Abdul Azeem wrote: > Hi Ravi, > > Since the sync'ing is done to disk with sync_binlog=1, the update > queries to server are slower compared to the server having sync_binlog=0 > rite ? > > Thanks, > Abdul

Re: Any limits on Database Size?

2006-04-10 Thread mysql
Hi Jim - see this for your answers. 1.4.4. How Large MySQL Tables Can Be http://dev.mysql.com/doc/refman/5.0/en/table-size.html Regards Keith In theory, theory and practice are the same; in practice they are not. On Tue, 11 Apr 2006, Jim wrote: > To: mysql@lists.mysql.com > From: Jim <[EMAIL

Any limits on Database Size?

2006-04-10 Thread Jim
Hi All, We used to use Interbase which required a new file to be assigned for every 4 gig of data stored in a DB. Is there any issues like this in mySQL? Thanks, Jim -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL

Re: ~performance issues~

2006-04-10 Thread Mohammed Abdul Azeem
Hi Ravi, Since the sync'ing is done to disk with sync_binlog=1, the update queries to server are slower compared to the server having sync_binlog=0 rite ? Thanks, Abdul. On Tue, 2006-04-11 at 10:51 +0530, Ravi Prasad LR wrote: > Hi Abdul, >When sync_binlog is set to 1, innodb

Re: ~performance issues~

2006-04-10 Thread Ravi Prasad LR
Hi Abdul, When sync_binlog is set to 1, innodb fsyncs the binary log to disk after every single write to binary log, but not in the case of sync_binlog=0. From MySQL manual: If the value of this variable is positive, the MySQL server synchronizes its binary log to disk (fdatas

Re: mysql on tmpfs

2006-04-10 Thread Werner Puschitz
Atle Veka wrote: Anyone have any experience to share about running mysql on a linux tmpfs (using memory)? tmpfs is swappable. I would use ramfs which is not swappable. For us it's worked out pretty well and is normally operating lightning fast compared to an identical SCSI based system. Howev

~performance issues~

2006-04-10 Thread Mohammed Abdul Azeem
Hi, I have a master/slave setup ( replication enabled ) for mysql in two different geographic locations ( one master/slave set up in each location). In one location i have configured the sync_binlog=1 . And the other location does not have the same. My problem is, when i run similar update proces

RE: counting keywords

2006-04-10 Thread Taco Fleur
Thanks Steve, Much appreciated, I was hoping there was something a little simpler, but I will have a go at it. Anyway of doing this with RegEx, would that simplify things? Kind regards, Taco Fleur Free Call 1800 032 982 or Mobile 0421 851 786 Pacific Fox http://www.pacificfox.com.au an indu

RE: Student question answer schema

2006-04-10 Thread Tim Lucia
Haven't you answered your own question? From my reading of this question, there are four entity tables (student, module, question, answer) and three or more relation tables (association tables) student-module, module-question, question-answer. There are probably two of the last one - one which ho

Looking for advice on how to store and query some data

2006-04-10 Thread Russell Horn
Hi, I'm storing data against a bunch of people and want to track how it changes. So, I have a person table where everyone has a person ID and a results table a bit like this: | personID | classification | date | | 1| 0 | 2005-11-10 | | 2| 3 | 2005-1

Student question answer schema

2006-04-10 Thread Brian Menke
Does anyone happen to know where a basic schema for tracking questions and answers from tests that a student has completed. I don't know why I am having difficulty with this, but I can't seem to figure out how to set up the tables correctly to store this information. The basics N number of studen

RE: Making result rows to one row

2006-04-10 Thread Peter Lauri
-Original Message- From: Peter Lauri [mailto:[EMAIL PROTECTED] Sent: Monday, April 10, 2006 10:45 AM To: mysql@lists.mysql.com Subject: Making result rows to one row Best group member, Many of you probably do not understand the question; neither would I if someone ask me, so I will expl

Re: Problem running multi master replication

2006-04-10 Thread Leonardus Setiabudi
Shawn Green wrote: I understand now. You have 3 slave server processes replicating independently from their own separate master servers. You have a fourth MySQL server process that shares the same data files as your 3 slaves but it does not know when replication occurs and when it hasn't (fo

Re: counting keywords

2006-04-10 Thread Steve Edberg
At 7:37 AM +1000 4/11/06, Taco Fleur wrote: Hi all, I am trying to find out whether it is possible to return the count of keywords found in a text field, does anyone know? For example; "ColdFusion or Java" is entered in the search string and 20 records are found that match, I need to count how m

counting keywords

2006-04-10 Thread Taco Fleur
Hi all, I am trying to find out whether it is possible to return the count of keywords found in a text field, does anyone know? For example; "ColdFusion or Java" is entered in the search string and 20 records are found that match, I need to count how many times "ColdFusion" and "Java" appears in

Re: How to pass parameters in MYSQL

2006-04-10 Thread Peter Brawley
Ravi Malghan wrote: Hi: I have a statement such as follows SELECT EVENT_DATA.dstport WHERE FROM_UNIXTIME(utime,'%Y-%m-%d') = (CURDATE() - INTERVAL 1 DAY) ORDER BY EVENT_DATA.utime; Instead of using a value of 1 for interval, I want to pass parameters so it will ask for the value when the sql st

Re: select all events from (today-N) days

2006-04-10 Thread Ravi Malghan
Joerg: thank you. That worked and much faster too. WHERE EVENT_DATA.utime > UNIX_TIMESTAMP(SUBDATE(CURDATE(), 5)) AND EVENT_DATA.utime < UNIX_TIMESTAMP(SUBDATE(CURDATE(), 4)) Ravi --- Joerg Bruehe <[EMAIL PROTECTED]> wrote: > Hi Ravi, all, > > > Ravi Malghan wrote: > > Joerg: are you saying I

Re: How to pass parameters in MYSQL

2006-04-10 Thread Shawn Green
--- Ravi Malghan <[EMAIL PROTECTED]> wrote: > Hi: I have a statement such as follows > > SELECT EVENT_DATA.dstport WHERE > FROM_UNIXTIME(utime,'%Y-%m-%d') = (CURDATE() - > INTERVAL 1 DAY) ORDER BY EVENT_DATA.utime; > > Instead of using a value of 1 for interval, I want to > pass parameters so

Re: select all events from (today-N) days

2006-04-10 Thread Shawn Green
--- Ravi Malghan <[EMAIL PROTECTED]> wrote: > Joerg: are you saying I need to compute the start time > and end time in epoch values and use it in > select count(*) from EVENT_DATA > where utime > start_time and utime < end_time ? > > Can you provide some pointers and what to search on. I > h

Re: select all events from (today-N) days

2006-04-10 Thread Joerg Bruehe
Hi Ravi, all, Ravi Malghan wrote: Joerg: are you saying I need to compute the start time and end time in epoch values and use it in select count(*) from EVENT_DATA where utime > start_time and utime < end_time ? "need to"? This is not required in order for the command to work (at all), b

Re: Social Network, linking members

2006-04-10 Thread Shawn Green
--- Philippe Poelvoorde <[EMAIL PROTECTED]> wrote: > 2006/4/8, Philippe Poelvoorde <[EMAIL PROTECTED]>: > > Hi, > > > > 2006/4/8, Dan Buettner <[EMAIL PROTECTED]>: > > > Seems like what you're looking for is a way to query your > database > > > more efficiently/quickly, and still find all links

Re: what is this? --> errno=2006 errmsg=Server gone

2006-04-10 Thread Shawn Green
--- Joerg Bruehe <[EMAIL PROTECTED]> wrote: > Hi Martin, all, > > Martin Olsson wrote: > > Hi, > > > > I get this weird error message: > > > > ErrNo: 2006 > > Error: MySQL server has gone away. > > > > What does it mean? I couldn't find anything useful on google and > the > > error

How to pass parameters in MYSQL

2006-04-10 Thread Ravi Malghan
Hi: I have a statement such as follows SELECT EVENT_DATA.dstport WHERE FROM_UNIXTIME(utime,'%Y-%m-%d') = (CURDATE() - INTERVAL 1 DAY) ORDER BY EVENT_DATA.utime; Instead of using a value of 1 for interval, I want to pass parameters so it will ask for the value when the sql statement is run. I have

Re: select all events from (today-N) days

2006-04-10 Thread Ravi Malghan
Joerg: are you saying I need to compute the start time and end time in epoch values and use it in select count(*) from EVENT_DATA where utime > start_time and utime < end_time ? Can you provide some pointers and what to search on. I have searched and can't seem to find any leads on how to get t

Re: error with java

2006-04-10 Thread Mir Islam
Can you post few lines of the code where you are making the connection? On 4/10/06, marco stagno <[EMAIL PROTECTED]> wrote: > > > Wild stab in the dark here - Java I/O permissions not set correctly > > on your > > machine to allow it? If I recall, Java's sandbox feature means you > > have to > > s

Re: Social Network, linking members

2006-04-10 Thread Philippe Poelvoorde
2006/4/8, Philippe Poelvoorde <[EMAIL PROTECTED]>: > Hi, > > 2006/4/8, Dan Buettner <[EMAIL PROTECTED]>: > > Seems like what you're looking for is a way to query your database > > more efficiently/quickly, and still find all links in either > > direction. > > > > I think the use of a UNION statemen

Re: Restrict MySQL server 4/5 to single IP

2006-04-10 Thread Yves Goergen
On 10.04.2006 18:32 (+0100), Jorrit Kronjee wrote: > I'm not entirely sure what you mean. Are `mysql4.mydomain' and > `mysql5.mydomain' hostnames? Yes, as I have explained earlier in this thread. -- Yves Goergen "LonelyPixel" <[EMAIL PROTECTED]> "This message represents the official view of the

Re: Making result rows to one row

2006-04-10 Thread Peter Brawley
Peter, Best group member, Many of you probably do not understand the question; neither would I if someone ask me, so I will explain a little bit more. This is what I have: SELECT tps.strokes FROM tour_player_score tps join tour_scorecard_hole tsh WHERE tour_player_id=175 AND tps.scorecard

Re: what is this? --> errno=2006 errmsg=Server gone

2006-04-10 Thread Joerg Bruehe
Hi Martin, all, Martin Olsson wrote: Hi, I get this weird error message: ErrNo: 2006 Error: MySQL server has gone away. What does it mean? I couldn't find anything useful on google and the error message isn't exactly "verbose".. :) AIUI, this message is issued if the client gets an

RE: Making result rows to one row

2006-04-10 Thread Robert DiFalco
Can you tell us more about the use case? Why does this need to be in a single row? Maybe instead of figuring out how to get this into a single row we could instead figure out how to solve the problem that requires it to be in a single row. -Original Message- From: Peter Lauri [mailto:[EMA

Making result rows to one row

2006-04-10 Thread Peter Lauri
Best group member, Many of you probably do not understand the question; neither would I if someone ask me, so I will explain a little bit more. This is what I have: SELECT tps.strokes FROM tour_player_score tps join tour_scorecard_hole tsh WHERE tour_player_id=175 AND tps.scorecard_hole_id=tsh.i

RE: Do if and elseif and other calculations

2006-04-10 Thread Peter Lauri
That did work very well, thank you. The DEFAULT value was 0. I am getting closer in my attempt to generate a leaderboard without php :) From: Gabriel PREDA [mailto:[EMAIL PROTECTED] Sent: Monday, April 10, 2006 7:16 PM To: Peter Lauri Cc: mysql@lists.mysql

Re: MUL when describe table

2006-04-10 Thread Shawn Green
--- Scott Purcell <[EMAIL PROTECTED]> wrote: > Hello, > > > > When I do a table describe, I see a MUL on a column I have marked as > a > foreign-key. I tried searching for MUL within the docs, but do not > see a > concise explanation of what that is? > > > > Anyone? > > > > Thanks, >

Re: Restrict MySQL server 4/5 to single IP

2006-04-10 Thread Jorrit Kronjee
Yves Goergen wrote: On 09.04.2006 23:40 (+0100), Jorrit Kronjee wrote: You seem to be best off with a setup where you've got the MySQL5 UNIX socket disabled, MySQL5 bound to one specific IP address, MySQL4 listening on 127.0.0.1 and a simple port forwarding rule to MySQL4. I'm missing the par

MUL when describe table

2006-04-10 Thread Scott Purcell
Hello, When I do a table describe, I see a MUL on a column I have marked as a foreign-key. I tried searching for MUL within the docs, but do not see a concise explanation of what that is? Anyone? Thanks, Scott

Re: Restrict MySQL server 4/5 to single IP

2006-04-10 Thread Yves Goergen
On 09.04.2006 23:40 (+0100), Jorrit Kronjee wrote: > You seem to be best off with a setup where you've got the MySQL5 UNIX > socket disabled, MySQL5 bound to one specific IP address, MySQL4 > listening on 127.0.0.1 and a simple port forwarding rule to MySQL4. I'm missing the part to connect to M

Re: Effective-dating

2006-04-10 Thread Shawn Green
--- Douglas Sims <[EMAIL PROTECTED]> wrote: > > Does anyone know of a thorough discussion of effective dating on the > > web, particularly with respect to MySQL, or have any opinions you > could share? > > I've worked with effective-dated tables in MS SQL Server and never > been particul

Re: Insert speed on table with 7M rows but small row size.

2006-04-10 Thread Shawn Green
--- Alexey Polyakov <[EMAIL PROTECTED]> wrote: > On 4/8/06, Kevin Burton <[EMAIL PROTECTED]> wrote: > > > Is there anyway I can tune MySQL to improve this operation? > > There's a fundamental problem with B-trees - inserts in a big B-tree > can be very slow, cause it may require tree rebalanci

Re: Problem running multi master replication

2006-04-10 Thread Shawn Green
--- Leonardus Setiabudi <[EMAIL PROTECTED]> wrote: > let me re-explain my situation .. > > the mysql server was on /home/mysql/mysql4111 > and the data directory was on /home/mysql/mysql4111/data > in data directory, there are 4 databases, db1, db2, db3, db4 > all configurations resided in /hom

Re: error with java

2006-04-10 Thread marco stagno
Wild stab in the dark here - Java I/O permissions not set correctly on your machine to allow it? If I recall, Java's sandbox feature means you have to supply a permissions file for I/O. Perhaps that file already exists on the other machine that works? I don't know so much Java, but I didn'

RE: error with java

2006-04-10 Thread Jason Teagle
> I don't think so, since even with "telnet localhost 3306" or "telnet > 127.0.0.1 3306" I'm able to see the server prompt.. > and I'm using the standard MySQL port for sure (it's a clean > installation); and there are no firewall active... > > any other suggestion!? > > thanks :) Wild stab in the

Re: error with java

2006-04-10 Thread marco stagno
Ports closed? Wrong ports configured? I don't think so, since even with "telnet localhost 3306" or "telnet 127.0.0.1 3306" I'm able to see the server prompt.. and I'm using the standard MySQL port for sure (it's a clean installation); and there are no firewall active... any other suggesti

RE: Social Network, linking members

2006-04-10 Thread Shawn Green
--- Martin Gallagher <[EMAIL PROTECTED]> wrote: > "of course you have the problem where john has Joe as a friend but > Joe > doesn't have john as a friend. This seeming inconsistency, may or > may not > be a problem depending on exactly what kind of a relationship you are > trying > to define."

Re: MySQL 5.0.19, fails to start, no log entries!

2006-04-10 Thread PMilanese
FYI- I am a moron, and SELinux was enforced, although I thought I had disabled it. Thanks- Peter J. Milanese, System Administrator Information Technology Group The New York Public Library [EMAIL PROTECTED] - 212.621.0203

Re: error with java

2006-04-10 Thread Barry
marco stagno wrote: I'm trying to understand this error: java.sql.SQLException: Server connection failure during transaction. Attempted reconnect 3 times. Giving up. the java program is trying to connect to MySQL (5.0.19 under Mac OSX/ PPC), with user=root, from localhost. the grant privileges

error with java

2006-04-10 Thread marco stagno
I'm trying to understand this error: java.sql.SQLException: Server connection failure during transaction. Attempted reconnect 3 times. Giving up. the java program is trying to connect to MySQL (5.0.19 under Mac OSX/ PPC), with user=root, from localhost. the grant privileges seems to be ok (I'm

Re: timestamp & not null

2006-04-10 Thread Martijn Tonies
> I need to create a "commands" table. A program will periodically check on this table whether > there's a pending command for it to execute or not. Whatever the reason, this program might read a command but not acknowledge it's > execution. > Other program will check out whether the command t

Re: Do if and elseif and other calculations

2006-04-10 Thread Gabriel PREDA
You can do something like this: SET @diff = 0; SELECT count(*) AS number_of_holes, tour_player_score.strokes - tour_scorecard_hole.par AS overpar, IF(overpar<0, @diff-(overpar*number_of_holes), ELSEVALUE) FROM `tour_player_score`, tour_scorecard_hole WHERE tour_player_id=175 AND tour_scorecard_hol

MySQL 5.0.19, fails to start, no log entries!

2006-04-10 Thread PMilanese
Greetings- I have a fresh install of 5.0.19, and when I go to start the database (using the init script), it fails to start. Odd enough, it only logs the start and end lines in the .err log. Is anyone familiar with this? The only thing different about the box is that it has dell's openmanag

Re: timestamp & not null

2006-04-10 Thread [EMAIL PROTECTED]
I need to create a "commands" table. A program will periodically check on this table whether there's a pending command for it to execute or not. Whatever the reason, this program might read a command but not acknowledge it's execution. Other program will check out whether the command timeo

RE: Do if and elseif and other calculations

2006-04-10 Thread Peter Lauri
Haha, yes I know that. I just created the code in the email editor. :) -Original Message- From: Barry [mailto:[EMAIL PROTECTED] Sent: Monday, April 10, 2006 5:19 PM To: mysql@lists.mysql.com Subject: Re: Do if and elseif and other calculations Peter Lauri wrote: > Best groupmember, > >

Re: setting up phpmyadmin problem

2006-04-10 Thread ross
I did. The server is windows could this be the problem? The config.inc.php is in the main phpmyadmin folder not in the config folder. Is this ok? Ross - Original Message - From: "Dominik Klein" <[EMAIL PROTECTED]> To: Sent: Monday, April 10, 2006 11:25 AM Subject: Re: setting up ph

Re: setting up phpmyadmin problem

2006-04-10 Thread Dominik Klein
[EMAIL PROTECTED] schrieb: http://www.blue-fly.co.uk/screen.jpg I cannot seem to add a server..anyone shed any light on it? Just edit config.inc.php It has good documentation comments, so it should not be a problem. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysq

Re: Do if and elseif and other calculations

2006-04-10 Thread Barry
Peter Lauri wrote: Best groupmember, I have this query SELECT count(*) AS number_of_holes, tour_player_score.strokes - tour_scorecard_hole.par AS overpar FROM `tour_player_score`, tour_scorecard_hole WHERE tour_player_id=175 AND tour_scorecard_hole.id=tour_player_score.scorecard_hole_id GROUP B

Do if and elseif and other calculations

2006-04-10 Thread Peter Lauri
Best groupmember, I have this query SELECT count(*) AS number_of_holes, tour_player_score.strokes - tour_scorecard_hole.par AS overpar FROM `tour_player_score`, tour_scorecard_hole WHERE tour_player_id=175 AND tour_scorecard_hole.id=tour_player_score.scorecard_hole_id GROUP BY overpar It gives m

Re: AS in a statement

2006-04-10 Thread Barry
Peter Lauri wrote: Best group member, I do this query SELECT tour_player_score.strokes AS score, tour_scorecard_hole.par AS par, score-par AS overpar FROM `tour_player_score`, tour_scorecard_hole WHERE tour_player_id=175 AND tour_scorecard_hole.id=tour_player_score.scorecard_hole_id It gives

Re: any suodo columns are there Like Rowid, rownum in mysql

2006-04-10 Thread mysql
from the mysql 5.0.18 manual section 13.1.5. CREATE TABLE Syntax If a PRIMARY KEY or UNIQUE index consists of only one column that has an integer type, you can also refer to the column as _rowid in SELECT statements. Regards Keith In theory, theory and practice are the same; in practice the

Re: AS in a statement

2006-04-10 Thread Martijn Tonies
> Best group member, > > I do this query > > SELECT tour_player_score.strokes AS score, tour_scorecard_hole.par AS par, > score-par AS overpar > FROM `tour_player_score`, tour_scorecard_hole WHERE tour_player_id=175 AND > tour_scorecard_hole.id=tour_player_score.scorecard_hole_id > > It gives err

AS in a statement

2006-04-10 Thread Peter Lauri
Best group member, I do this query SELECT tour_player_score.strokes AS score, tour_scorecard_hole.par AS par, score-par AS overpar FROM `tour_player_score`, tour_scorecard_hole WHERE tour_player_id=175 AND tour_scorecard_hole.id=tour_player_score.scorecard_hole_id It gives error: [localhost] ER

Re: timestamp & not null

2006-04-10 Thread Martijn Tonies
Hi, > I created a table and, into it, a timestamp field: > ... EXPIRES TIMESTAMP NOT NULL, ... > > When I issue the command "describe" it shows the field "expires" allows nulls and defaults to CURRENT_TIMESTAMP. Also, each time I update > a field other than "expires" in this table, "expires" gets

Re: Query help with count and join on same table I think

2006-04-10 Thread Frank
2wsxdr5 wrote: > I have a table of people. Some of the people in this table are > related. You can find out who is related by comparing a familyID > number. I have a query to select a certain group of people from the > table and I want to also select anyone who is related to them, even > though

timestamp & not null

2006-04-10 Thread [EMAIL PROTECTED]
Hi! I created a table and, into it, a timestamp field: ... EXPIRES TIMESTAMP NOT NULL, ... When I issue the command "describe" it shows the field "expires" allows nulls and defaults to CURRENT_TIMESTAMP. Also, each time I update a field other than "expires" in this table, "expires" gets updated

Re: what is this? --> errno=2006 errmsg=Server gone

2006-04-10 Thread Barry
Martin Olsson wrote: Hi, I get this weird error message: ErrNo: 2006 Error: MySQL server has gone away. What does it mean? I couldn't find anything useful on google and the error message isn't exactly "verbose".. :) Haha, yeah i like that one. Somone stole it haha :D I'm not quite

Re: Password for Root

2006-04-10 Thread Ehrwin Mina
At 02:57 PM 4/10/2006, Kosala Atapattu wrote: Hi people, I have a small problem. I forgot the password for user root in my personal MySQL instance. I'm a Linux user and running Debian Sarge on my computer. I have few other DBs which I created and which I have access to (still I remember the pass

Re: Determining if a trigger exists

2006-04-10 Thread Frank
Adrian Co wrote: > Hi, > > Yes, the syntax is not valid. I have tried it. :-) > > I was hoping for maybe a workaround to simulate the described > functionality. There might also be something wrong with the structure of > my script. Maybe I shouldn't be creating triggers there? But I was > thinki

Re: Password for Root

2006-04-10 Thread Prasanna Raj
Hi Restart mysqld with the --skip-grant-tables option More info : http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html --Praj On Mon, 10 Apr 2006 12:57:32 +0600 "Kosala Atapattu" <[EMAIL PROTECTED]> wrote: > Hi people, > > I have a small problem. I forgot the password for user r