Re: Missing database file names

2010-06-02 Thread Dan Nelson
In the last episode (Jun 02), Jesse F. Hughes said: > After a recent hard drive kerfluffle and the results of fsck, I'm left > with a slew of jumbled database files. The file command can tell me the > file types, like so: > > #15901614: MySQL table definition file Version 10 > #15901615: MySQL MI

Re: Question on http query

2010-06-02 Thread Michael Dykman
MySQL is a tradition Relational DataBase System. It underlays something like 80% (somebody correct me if I'm out-of-date here) of the http applications populating the internet. While some RDBMSs offer extensions for RESP-like HTTP implementations, MySQL does not support this directly. It can be

Missing database file names

2010-06-02 Thread Jesse F. Hughes
After a recent hard drive kerfluffle and the results of fsck, I'm left with a slew of jumbled database files. The file command can tell me the file types, like so: #15901614: MySQL table definition file Version 10 #15901615: MySQL MISAM compressed data file Version 1 #15901617: MySQL table defin

Question on http query

2010-06-02 Thread Kandy Wong
Hi, I'd like to know if MySQL server supports http queries? Thanks. Kandy -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Slow when using sub-query

2010-06-02 Thread Jerry Schwartz
I've heard that sub-queries aren't well-optimized, but this case seems ridiculous. First, a little setup: SELECT pub_id FROM pub WHERE pub_code = 'GD' INTO @P; === Inner Query by Itself === us-gii >SELECT prod_pub_prod_id FROM prod -> WHERE pub_id = @P -> AND prod_discont = 0 -> GR

RE: Fancy partitioning scheme

2010-06-02 Thread Gavin Towey
MySQL doesn't support dynamic distribution of data among partitions. The usual method is to create a partition for each fixed chunk of time, such as for each month/week/hour/day or whatever time slice breaks your data up in the manageable pieces. Note that a very large number of partitions (

Fancy partitioning scheme

2010-06-02 Thread Bryan Cantwell
Perhaps someone has already accomplished this: I have a simple table with 3 columns: mytable( myid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0, myunixtime INT(11) NOT NULL DEFAULT 0, myvalue BIGINT(20) UNSIGNED NOT NULL DEFAULT 0 ) It is collecting millions of rows. The myunixtime column is a un

Re: how to avoid sub-query to gain performance

2010-06-02 Thread Perrin Harkins
On Wed, Jun 2, 2010 at 10:28 AM, Lin Chun wrote: > *don't know it very clear, but i think is the problem of seems it > take full scaning* Yes, it has no indexes so it isn't good for very large subqueries. You should create them as temporary tables instead and give them indexes. - Perrin -- My

how to avoid sub-query to gain performance

2010-06-02 Thread Lin Chun
*hi* * * *i have a reporting query which have 2 long sub-query* SELECT r1.code_centre, r1.libelle_centre, r1.id_equipe, r1.equipe, r1.id_file_attente, r1.libelle_file_attente,r1.id_date, r1.tranche, r1.id_granularite_de_periode,r1.granularite, r1.ContactsTraites, r1.ContactsenParcage, r1.Conta

Re: Strange errors / messages on slave server

2010-06-02 Thread Johan De Meersman
Depending on your mysql version and environment, another solution might be to switch to row-based binlogs. Make sure to read the documentation thoroughly, though - there's a number of caveats. On Wed, Jun 2, 2010 at 2:55 PM, Martin Gainty wrote: > > > In less technical terms, if the master goes

RE: large table issue

2010-06-02 Thread Jerry Schwartz
Just a note from a kibitzer: if you include an EXPLAIN, why not use \G so that it is easier to read? Regards, Jerry Schwartz Global Information Incorporated 195 Farmington Ave. Farmington, CT 06032 860.674.8796 / FAX: 860.674.8341 www.the-infoshop.com >-Original Message- >From: ?? [m

RE: Strange errors / messages on slave server

2010-06-02 Thread Martin Gainty
> In less technical terms, if the master goes faster than the slave, the slave > will puke. MG>then the master will have to teach the slave MG>is the master the entrenched bureacucrat or is that the slave? > > Regards, > > Jerry Schwartz > Global Information Incorporated > 195 Farmington

Re: Strange errors / messages on slave server

2010-06-02 Thread Machiel Richards
Thank you for the response... My question now is, will I be able to set the innodb buffer pool size for the slave server to be the same as the master server? If so, can I only restart the slave server and keep the master server running in order to cancel out the requirement for downtime? On Wed

RE: Strange errors / messages on slave server

2010-06-02 Thread Jerry Schwartz
>-Original Message- >From: machiel.richards [mailto:machiel.richa...@gmail.com] >Sent: Wednesday, June 02, 2010 3:56 AM >To: mysql@lists.mysql.com >Subject: RE: Strange errors / messages on slave server > >Hi All > > Just one other note on this issue experienced. > > I used goog

Re: large table issue

2010-06-02 Thread Krishna Chandra Prajapati
Hi, MySQL Partitioning will help you a lot. Try it. Regards, Krishna 2010/6/2 曹凯 > > Hi all, > > do you guys know how to deal with the large tables? > > here's my problem: > > I have two web servers( running Nginx ) , two DB servers( running MySQL > 5.1.35 ) and a server for load balancing. >

Re: Strange behavior by MySQL Stored Procedure

2010-06-02 Thread Manasi Save
Dear Venugopal, Here's the Sample Java Code Which Calls stored procedure :-  //get the connection to databaseConnection dbConnection = getConnection(); //create the call for procedureString procedureCallStmtStr = "Call XYZ()"; //create callable statement objectCallableStatement cs = conn.prepareCal

RE: large table issue

2010-06-02 Thread 曹凯
hi huys, here's the explain of a query on this table EXPLAIN SELECT COUNT(game_log_id) AS sum2 FROM game_log AS g, player AS p WHERE g.player_id = p.player_id AND g.game_id=p.game_id=27 AND p.type=1 AND g.event_id = 32 -> ; ++-+---+++---

Re: large table issue

2010-06-02 Thread zhang sand
给我看看你的表的索引及你的慢查询的sql语句 在 2010-6-2,下午5:08, 曹凯 写道: > > Hi all, > > do you guys know how to deal with the large tables? > > here's my problem: > > I have two web servers( running Nginx ) , two DB servers( running MySQL > 5.1.35 ) and a server for load balancing. > > What I'm maintaining is a

Re: large table issue

2010-06-02 Thread Ananda Kumar
Hi, Can you please send us the query along with the explain . Also , have u thought of partitioning the data. regards anandkl 2010/6/2 曹凯 > > Hi all, > > do you guys know how to deal with the large tables? > > here's my problem: > > I have two web servers( running Nginx ) , two DB servers( run

large table issue

2010-06-02 Thread 曹凯
Hi all, do you guys know how to deal with the large tables? here's my problem: I have two web servers( running Nginx ) , two DB servers( running MySQL 5.1.35 ) and a server for load balancing. What I'm maintaining is a game data tracking system. There's a game_log table which will record al

MySQL University session on June 3: New features in Connector/NET 6.3

2010-06-02 Thread Stefan Hinz
MySQL University: New features in Connector/NET 6.3 http://forge.mysql.com/wiki/New_Features_in_Connector/NET_6.3 This Thursday (June 3rd, 14:00 UTC), Reggie Burnett, head of Connector/NET development, will present the New Features in Connector/NET 6.3. For MySQL University sessions, point your b

RE: Strange errors / messages on slave server

2010-06-02 Thread machiel.richards
Hi All Just one other note on this issue experienced. I used google to try and find some solutions / clues and all the suggestions are to increase the innodb buffer pool size. This was however recently done on the database to increase this to 4Gb already. However

Strange errors / messages on slave server

2010-06-02 Thread Machiel Richards
Good day all I hope someone can assist me with this. While doing the normal routine daily health checks on one of our clients' servers I came across some strange behaviour from the slave server. (two servers setup in master / slave replication)