Re: segment fault when using mysql++

2007-08-01 Thread Warren Young
I'm replying to you both personally and to the MySQL++ mailing list, where this message is on topic. Please reply only on the list, not to me directly. wangxu wrote: below is my code;these code works very fine until, the length of the field content exceeds 30, How certain are you

Re: segment fault when using mysql++

2007-08-01 Thread wangxu
actually I am using this piece of code,but I replaced fprintf to printf just to simplify the problem. and the field content actually stores string content. Shall this mean some thing different from your explanation? while (r = res.fetch_row()) { FILE *fp1

Using index for group-by: Not working?

2007-07-28 Thread Andrew Armstrong
Hi, I have the following query: SELECT c2, c3, c4, Count(DISTINCT c5) FROM table1 WHERE c1 IN (1, 2, 3...) GROUP BY c2, c3, c4 order by null Yet I can only get it at best to show (under extra): Using where, using filesort. I have read up on: http://dev.mysql.com/doc/refman/5.0

RE: Using index for group-by: Not working?

2007-07-28 Thread Andrew Armstrong
is done also (usually because its free). Sorting by NULL will tell MySQL to not even bother doing this. I've seen 'sort by null' (as suggested elsewhere) avoid 'Using filesort' under the Extra column when its not even needed. Thanks for the response. -Original Message- From: Terry Mehlman

RE: Using index for group-by: Not working?

2007-07-28 Thread Andrew Armstrong
It's just occurred to me that the IN clause is not a constant. This probably throws out any chance of using an index for group by? Cheers -Original Message- From: Andrew Armstrong [mailto:[EMAIL PROTECTED] Sent: Sunday, 29 July 2007 1:07 PM To: mysql@lists.mysql.com Subject: Using

Re: why can I not edit my database using mySQL administrator ?

2007-07-10 Thread Rolando Edwards
Are you using MySQL Administrator for Windows ? Are you using it against MySQL running in Linux ? If so, you may prefer MySQL Administrator for Linux. Just a couple more thoughts ... - Original Message - From: cfaust-dougot [EMAIL PROTECTED] To: Weiqi Wang [EMAIL PROTECTED], mysql

why can I not edit my database using mySQL administrator ?

2007-07-09 Thread Weiqi Wang
Dear everyone: I'm trying to simplify the operating of mySQL by using a GUI tool, mySQL administrator. But it seems that I was only allowed to view the databases which I have made up, but not allowed to edit them. Is it because I have to buy a lisence or something which I didn't buy? Thanks

RE: why can I not edit my database using mySQL administrator ?

2007-07-09 Thread cfaust-dougot
using mySQL administrator ? Dear everyone: I'm trying to simplify the operating of mySQL by using a GUI tool, mySQL administrator. But it seems that I was only allowed to view the databases which I have made up, but not allowed to edit them. Is it because I have to buy a lisence or something

回复: why can I not edit my databas e using mySQL administrator ?

2007-07-09 Thread xian liu
to simplify the operating of mySQL by using a GUI tool, mySQL administrator. But it seems that I was only allowed to view the databases which I have made up, but not allowed to edit them. Is it because I have to buy a lisence or something which I didn't buy? Thanks for any answer! Best Regards

Re: peformance help: preventing 'using temporary; using filesort'

2007-07-03 Thread Perrin Harkins
On 6/29/07, Rich Brant [EMAIL PROTECTED] wrote: Hello all. I'm looking for help with the query below. Is there anyway to prevent the temporary and filesort? The filesort is caused by either the ORDER BY or the GROUP BY. There are sections in the manual about how to get it to use indexes for

Re: peformance help: preventing 'using temporary; using filesort'

2007-07-03 Thread Sebastian Mendel
Rich Brant schrieb: Is there anyway to prevent the temporary and filesort? SELECT t1.sourceID as sourceID, count(t1.sourceID) as clicks, [...] ORDER BY clicks desc, conversions desc; When using EXPLAIN: [...] Using where; Using temporary; Using filesort | when

avoiding Using temporary; Using filesort

2007-07-02 Thread Jeesmon Jacob
Hi, Could someone please help me to get rid of Using temporary; Using filesort from the following SQL statement? SELECT a.document_id AS id, attr_name AS name, attr_value AS value, attr_order AS ord FROM attributes a INNER JOIN status s ON (a.document_id = s.document_id) WHERE update_flag

peformance help: preventing 'using temporary; using filesort'

2007-06-29 Thread Rich Brant
BY sourceID ORDER BY clicks desc, conversions desc; When using EXPLAIN: ++-+---+---+---+--+-+--+--+--+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra

Re: peformance help: preventing 'using temporary; using filesort'

2007-06-29 Thread Gerald L. Clark
desc; When using EXPLAIN: ++-+---+---+---+--+-+--+--+--+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra

Query cache question when using HANDLER

2007-06-27 Thread Ian Collins
Hi, I have an application that is using the MySQL HANDLER heavily. The application was ported from a legacy ISAM database to use MySQL. The upshot is that the application works by index walking - i.e., HANDLER tablename OPEN HANDLER tablename OPEN as indexname HANDLER indexname READ indexname

Re: Query cache question when using HANDLER

2007-06-27 Thread Jim Winstead
On Wed, Jun 27, 2007 at 01:27:24PM +1200, Ian Collins wrote: Are HANDLER queries cached in the query cache? No, they are not. The query cache only caches the results of SELECT statements. Jim Winstead MySQL Inc. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

Master-Slave System Using Different Versions of MySQL

2007-06-15 Thread dpgirago
There was a comment this week about a v5 master having problems connecting to a v4 slave, or vice versa. Can someone shed some light on this issue. A manual reference is good, too. Thanks, David

Re: Master-Slave System Using Different Versions of MySQL

2007-06-15 Thread Jimmy Guerrero
Hello, Did you already check: http://dev.mysql.com/doc/refman/5.0/en/replication-compatibility.html You cannot replicate from a master that uses a newer binary log format to a slave that uses an older format (for example, from MySQL 5.0 to MySQL 4.1.) Thanks, Jimmy Guerrero Sr Product

partial string extraction with sql using regexp ?

2007-06-13 Thread Christian Hansel
hi all, Here's a nut to crack: I would like to extract a part of a string stored in a varchar column in a mysql table. Since the part of string I want to extract is neither at a fixed position nor logically separated by a fixed character I was thinking using regexp would by a good idea Sample

partial string extraction with sql using regexp ?

2007-06-13 Thread Christian Hansel
hi all, Here's a nut to crack: I would like to extract a part of a string stored in a varchar column in a mysql table. Since the part of string I want to extract is neither at a fixed position nor logically separated by a fixed character I was thinking using regexp would by a good idea Sample

RE: partial string extraction with sql using regexp ?

2007-06-13 Thread Christian Hansel
I'ld like to accomplish something like: set @myvar=concat_ws(,,(SELECT column from table1 order by column; where ...)) or select concat_ws(,,(SELECT column from table1 order by column where ...)); for further usage in sql-scripts I forgot to mention: As I need it in a function, i think i

Insert into multiple tables using auto_increment reference

2007-06-11 Thread Hamish Allan
Hi, Is it possible to insert values into two tables simultaneously and have the value of one of the columns in the second table be the auto_increment value from inserting into the first? E.g. if table1 has an auto_increment column c1, the logic I'm looking for would be something like: INSERT

Re: Insert into multiple tables using auto_increment reference

2007-06-11 Thread Baron Schwartz
Hi, Hamish Allan wrote: Hi, Is it possible to insert values into two tables simultaneously and have the value of one of the columns in the second table be the auto_increment value from inserting into the first? No, because you can only insert into one table at a time. But you can write a

Re: Insert into multiple tables using auto_increment reference

2007-06-11 Thread Hamish Allan
On 6/11/07, Baron Schwartz [EMAIL PROTECTED] wrote: Hi, Hamish Allan wrote: Hi, Is it possible to insert values into two tables simultaneously and have the value of one of the columns in the second table be the auto_increment value from inserting into the first? No, because you can only

Re: Using the last_insert_id() function

2007-06-02 Thread Baron Schwartz
Hi, gwh wrote: Hi everyone, I¹m trying to figure out the best sequence to enter data into my database (the SQL code for the structure is included below). If I have a number of tab delimited .txt files containing the data for the different tables, I thought as a first step I could use the

Using the last_insert_id() function

2007-06-01 Thread gwh
Hi everyone, I¹m trying to figure out the best sequence to enter data into my database (the SQL code for the structure is included below). If I have a number of tab delimited .txt files containing the data for the different tables, I thought as a first step I could use the following code to

using tinymce and inserting the contents in a database

2007-05-29 Thread ross
Hi, I am using tinymce to save news articles with very basic html styling in a database. This works well upto a point but when I get over a certain number of characters and then the 'you have an error in your SQL syntax' error. I am saving in as a LONGBLOB so it should not be a data type

Re: using tinymce and inserting the contents in a database

2007-05-29 Thread Baron Schwartz
Hi, [EMAIL PROTECTED] wrote: Hi, I am using tinymce to save news articles with very basic html styling in a database. This works well upto a point but when I get over a certain number of characters and then the 'you have an error in your SQL syntax' error. I am saving in as a LONGBLOB so

Re: using tinymce and inserting the contents in a database

2007-05-29 Thread Naz Gassiep
Why are you saving it as a LONGBLOB and not as TEXT data type? [EMAIL PROTECTED] wrote: Hi, I am using tinymce to save news articles with very basic html styling in a database. This works well upto a point but when I get over a certain number of characters and then the 'you have an error

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

2007-05-09 Thread Thibaud Hulin
Hi, I installed mysql 4.1.22 for Debian testing. I launched the manual installation. However, when I do : mysql -u root I get : ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) I tried to reinstall it, but it fails. Thanks for help, Thibaud. -- MySQL

Re: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

2007-05-09 Thread Cassj
may have to give the complete path to mysqladmin. CheersCassj -Original Message- From: Thibaud Hulin [EMAIL PROTECTED] Sent: May 9, 2007 4:13 PM To: mysql@lists.mysql.com Subject: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) Hi, I installed mysql

Using replace with New Lines

2007-03-27 Thread Lucas . CTR . Heuman
Hello Group, Looking to use this REPLACE to strip multi line data out of my return data. I am having problems getting the \n to work correctly, any ideas? REPLACE(DESCRIPTION,\n,' ') SELECT rpad(CASE WHEN DESCRIPTION IS NULL THEN '' ELSE REPLACE(DESCRIPTION,'\n',' ') END,80,' ') as var

Re: Using replace with New Lines

2007-03-27 Thread Lucas . CTR . Heuman
Ok.. I found the problem.. I needed to add a \r.. but now that opens up the question can I have a Multi replace search in replace? Example can I do something like this in MySQL REPLACE (STRING,'\r' or '\n',' ') REPLACE(DESCRIPTION,'\r\n',' ') Wishing you the best you know you deserve,

Re: Using replace with New Lines

2007-03-27 Thread Stephen Cook
I always go with REPLACE(REPLACE(STRING, '\n', ''), '\r', ''), since depending on where your data came from there may be one or the other, or both. Although if there is a shorthand/more efficient way I'd love to hear it. [EMAIL PROTECTED] wrote: Ok.. I found the problem.. I needed to add a

Re: using DISTINCT after the ORDER BY clause has been applied

2007-03-14 Thread Yashesh Bhatia
On 3/14/07, Bill Guion [EMAIL PROTECTED] wrote: At 11:33 PM + 3/13/07, [EMAIL PROTECTED] wrote: Date: Tue, 13 Mar 2007 20:56:08 +0530 To: mysql@lists.mysql.com From: Yashesh Bhatia [EMAIL PROTECTED] Subject: using DISTINCT after the ORDER BY clause has been applied Message-ID: [EMAIL

Re: using DISTINCT after the ORDER BY clause has been applied

2007-03-14 Thread Yashesh Bhatia
, Bill Guion [EMAIL PROTECTED] wrote: At 11:33 PM + 3/13/07, [EMAIL PROTECTED] wrote: Date: Tue, 13 Mar 2007 20:56:08 +0530 To: mysql@lists.mysql.com From: Yashesh Bhatia [EMAIL PROTECTED] Subject: using DISTINCT after the ORDER BY clause has been applied Message-ID: [EMAIL PROTECTED] Hello

using DISTINCT after the ORDER BY clause has been applied

2007-03-13 Thread Yashesh Bhatia
Hello: I had a quick question on using the DISTINCT clause in a SELECT query. I have the following table which stores webpages viewed table: page_viewed page_id int unsigned page id of the page viewed user_id int unsigned user id of the page viewed ts timestamp timestamp of the page view

using DISTINCT after the ORDER BY clause has been applied

2007-03-13 Thread Yashesh Bhatia
Hello: I had a quick question on using the DISTINCT clause in a SELECT query. I have the following table which stores webpages viewed table: page_viewed page_idint unsignedpage id of the page viewed user_id int unsigneduser id of the page viewed ts timestamp

using DISTINCT after the ORDER BY clause has been applied

2007-03-13 Thread Bill Guion
At 11:33 PM + 3/13/07, [EMAIL PROTECTED] wrote: Date: Tue, 13 Mar 2007 20:56:08 +0530 To: mysql@lists.mysql.com From: Yashesh Bhatia [EMAIL PROTECTED] Subject: using DISTINCT after the ORDER BY clause has been applied Message-ID: [EMAIL PROTECTED] Hello: I had a quick question on using

A simple 2 table query gets very slow when using ORDER BY

2007-03-03 Thread js
| PRIMARY | name | 62 | NULL | 7 | Using index; Using temporary; Using filesort | | 1 | SIMPLE | e2s | ref | co_id | co_id | 4 | test.c.id | 55591

Re: A simple 2 table query gets very slow when using ORDER BY

2007-03-03 Thread js
Additional information. MySQL Version: 5.0.33 Platform: Mac OS X 10.4.8 Machine Spec: 2.16GHZ Intel Core 2 Duo Memory 2GB MHZ SDRAM Test was done using the following dummy data. employees table: 20 ascii chars as employees' name skills: INSERT INTO skills (name) VALUES ('C'), ('C++'), ('C

Re: A simple 2 table query gets very slow when using ORDER BY

2007-03-03 Thread Filip Krejci
Hi, if your selectivity is very low, try to use multiple index on e2s(co_id, mod_time) and force this index in query. Filip employees2skills: INSERT INTO employees2skills SELECT id, 1, 2, NOW() FROM employees; # Yes, 100 have same skill_id, co_id, and even mod_time. # selectivity is

Re: A simple 2 table query gets very slow when using ORDER BY

2007-03-03 Thread js
Thank you for answering. I tried your suggestion and it's got fast, but still slow and could not get rid of Using temporary; Using filesort. I don't understand why this simple query is so slow

Re: A simple 2 table query gets very slow when using ORDER BY

2007-03-03 Thread Filip Krejci
data. Filip Thank you for answering. I tried your suggestion and it's got fast, but still slow and could not get rid of Using temporary; Using filesort. I don't understand why this simple query is so slow

Re: A simple 2 table query gets very slow when using ORDER BY

2007-03-03 Thread js
I agree that my testing data is wrong, but what I was wondering is why the query gets slow only when using join, although without join it gives me lightning answer. BTW, you gave me a big hint! I didn't know about 'cardinality', so searched on the web with the word 'cardinality', which leads me

Re: A simple 2 table query gets very slow when using ORDER BY

2007-03-03 Thread Filip Krejci
SELECT * FROM employees2skills e2s FORCE INDEX (mod_time ) INNER JOIN companies c ON c.id = e2s.co_id ORDER BY e2s.mod_time limit 5; Yes, this query will be probably the best. This go through mod_time index (which is already sorted) from begin and try to join companies. When row count

Re: A simple 2 table query gets very slow when using ORDER BY

2007-03-03 Thread js
One thing I don't understand is what MySQL tried to do first. Why did MySQL chose co.name as a key? On 3/3/07, Filip Krejci [EMAIL PROTECTED] wrote: SELECT * FROM employees2skills e2s FORCE INDEX (mod_time ) INNER JOIN companies c ON c.id = e2s.co_id ORDER BY e2s.mod_time limit 5; Yes,

Re: using contraints on Mysql

2007-02-26 Thread Martijn Tonies
Hi, I'm looking for using FIELD CONSTRAINTS on Mysql but I can´t find it ... Doesn´t Mysql implement it?? For example: age int 0 MySQL doesn't support declarative CHECK CONSTRAINTs, you could use triggers as a workaround. Martijn Tonies Database Workbench - development tool for MySQL

using contraints on Mysql

2007-02-25 Thread Raúl Andrés Duque Murillo
Hi. I'm looking for using FIELD CONSTRAINTS on Mysql but I can´t find it ... Doesn´t Mysql implement it?? For example: age int 0 Thanks, RAUL DUQUE Bogotá, Colombia - Do You Yahoo!? La mejor conexión a Internet y 2GB

Re: using contraints on Mysql

2007-02-25 Thread Dan Nelson
In the last episode (Feb 25), Raúl Andrés Duque Murillo said: I'm looking for using FIELD CONSTRAINTS on Mysql but I can't find it ... Doesn't Mysql implement it?? For example: age int 0 You can do those checks with triggers: http://dev.mysql.com/doc/refman/5.0/en/triggers.html

Re: Using Triggers to Maintain a Table to prevent complex join statements...

2007-02-21 Thread Jay Pipes
Cory Robin wrote: We have a statement that joins 8 different tables to pull multiple rows from each table. I have heard of people using triggers to create, update and delete records in a table based on statements in other tables. The obvious result of this would be to SPEED up results

Using Triggers to Maintain a Table to prevent complex join statements...

2007-02-20 Thread Cory Robin
We have a statement that joins 8 different tables to pull multiple rows from each table. I have heard of people using triggers to create, update and delete records in a table based on statements in other tables. The obvious result of this would be to SPEED up results right? :) I'd love

RE: SQL_CALC_FOUND_ROWS using ODBC driver

2007-02-19 Thread Bonnett, John
: SQL_CALC_FOUND_ROWS using ODBC driver Hi, I've used PHP with MySQL and I was able to count the rows of a table by using the following code: SELECT SQL_CALC_FOUND_ROWS * FROM MyTableName; SELECT FOUND_ROWS(); However, I would like to do the same thing using Visual Basic 6... When I set the RS.Source

INSERT using SELECT results

2007-02-18 Thread Miguel Vaz
Hi, I have a table LOCAIS with: id typedesc 1 t1 blah blah 2 t1 uihuih 3 t2 pokpokp I want to list only the distinct types and create a table with those results. I know how to list the

Re: INSERT using SELECT results

2007-02-18 Thread Anoop kumar V
This may help you: mysql create table locais( - id int, - type varchar(2), - `desc` varchar(10)); Query OK, 0 rows affected (0.12 sec) mysql select * from locais; +--+--+---+ | id | type | desc | +--+--+---+ |1 | t1 | sk| |2 | t2 | dsk | |

Re: INSERT using SELECT results

2007-02-18 Thread Afan Pasalic
INSERT INTO ztipos (type) VALUES (SELECT DISTINCT type FROM locais) ? -afan Miguel Vaz wrote: Hi, I have a table LOCAIS with: idtypedesc 1t1blah blah 2t1uihuih 3t2pokpokp I want to list only the distinct types and create a

Re: Exclude duplicates except most recent using GROUP BY and HAVING

2007-02-16 Thread Joel Nimety
Maybe I should rephrase this in the form of a question :) I have a table with workstations and timestamps. I'd like to select the record with the most recent timestamp for each workstation. I know there is a simple query to accomplish this but I'm having difficulty. Does anyone have any

Re: SQL_CALC_FOUND_ROWS using ODBC driver

2007-02-16 Thread Nuno Vaz Oliveira
the LIMIT part, it escaped from the code... I was using it but because the code wasn't working I started changing it and the LIMIT got lost... I've just tried to retrieve the value of the .Fields(0) and yes... It contains the number of records of the table... I hadn't figured this out because using

Re: SQL_CALC_FOUND_ROWS using ODBC driver

2007-02-15 Thread Nils Meyer
Hi, Nuno Oliveira wrote: When I set the RS.Source to the first SELECT statement and open it, it run OK but I need to close the RS and open it again using the second SELECT statement. After any of this operations I get a Recordset-RecordsCount = 1 That is actually a correct figure, SELECT

Re: SQL_CALC_FOUND_ROWS using ODBC driver

2007-02-15 Thread Nils Meyer
Nils Meyer wrote: SELECT SQL_CALC_FOUND_ROWS doesn't make much sense without a where clause by the way. LIMIT, not where. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: SQL_CALC_FOUND_ROWS using ODBC driver

2007-02-15 Thread Jess Balint
On Thu, Feb 15, 2007 at 01:04:26AM +, Nuno Oliveira wrote: Hi, I've used PHP with MySQL and I was able to count the rows of a table by using the following code: SELECT SQL_CALC_FOUND_ROWS * FROM MyTableName; SELECT FOUND_ROWS(); However, I would like to do the same thing using

SQL_CALC_FOUND_ROWS using ODBC driver

2007-02-14 Thread Nuno Oliveira
Hi, I've used PHP with MySQL and I was able to count the rows of a table by using the following code: SELECT SQL_CALC_FOUND_ROWS * FROM MyTableName; SELECT FOUND_ROWS(); However, I would like to do the same thing using Visual Basic 6... When I set the RS.Source to the first SELECT statement

Exclude duplicates except most recent using GROUP BY and HAVING

2007-02-09 Thread Joel Nimety
The default host table can possibly have multiple records for a given workstation. Presumable the duplicate records are for historical purposes, but only one is actually current. I don't really care why there are duplicates but only need to a query to exclude the duplicate records (leaving the

Re: How to SELECT rows closest to lat/lng -- USING SPATIAL FUNCTIONS

2007-02-04 Thread M5
Thanks! That really seems to do the trick. Amazing. Now, for some stupid questions: The values 69.1 and 57.3... are you aware of some documentation or tutorial explaining these values and the math? I'd like to understand why it works. Also, I would like to figure out how to, if possible, speed

Re: How to SELECT rows closest to lat/lng -- USING SPATIAL FUNCTIONS

2007-02-03 Thread Lars Schwarz
haven't followed the complete thread so i don't know what you're after, but maybe this helps? SELECT latitude, longitude, SQRT( POW( 69.1 * ( latitude - [startlat] ) , 2 ) + POW( 69.1 * ( [startlng] - longitude ) * COS( latitude / 57.3 ) , 2 ) ) AS distance FROM foobar ORDER BY distance ASC

Re: How to SELECT rows closest to lat/lng -- USING SPATIAL FUNCTIONS

2007-02-02 Thread M5
Thanks for the reply... It returns results, but not exactly what I am hoping for--basically, I get the nearest latitudes (but not near longitude), and nearest longitude (but not near latitudes). In other words, it doesn't return the closest lat/lng pair... Also, the query takes about 8

Urgent - MySQL 5 - mysqld using a lot of memory consistently

2007-01-22 Thread Ratheesh K J
is being used which is a new concept in MySQL 5. My initial doubt was on this but now when I checked top it shows that mysqld is consistently using 59% of Memory and 25% of cpu even when there is no load. the SHOW STATUS command in mysql shows: Threads_created21863

Re: Urgent - MySQL 5 - mysqld using a lot of memory consistently

2007-01-22 Thread Ratheesh K J
Thanks, By how much should I be increasing the thread_cache? currently it is 8... Currently I can provide the EXPLAIN result of a query using index_merge on MySQL 5.0.22. EXPLAIN SELECT IFNULL(TAEM.FLD_FULL_NAME, TFMM.FLD_ASSIGNED_TO) AS ELE1 , TFMM.FLD_ASSIGNED_TO AS KEY_ID, SUM(1) AS ELE2

Re: Urgent - MySQL 5 - mysqld using a lot of memory consistently

2007-01-22 Thread Alex Arul
the monitor the threads-connected variable over a period of time and calcuate the value. you can even look at max used connections status variable and allot accordingly. BTW, is you application using demand based connections or connection pooling ? If it is using connection pooling then bumping

Re: Urgent - MySQL 5 - mysqld using a lot of memory consistently

2007-01-22 Thread Ratheesh K J
- MySQL 5 - mysqld using a lot of memory consistently the monitor the threads-connected variable over a period of time and calcuate the value. you can even look at max used connections status variable and allot accordingly. BTW, is you application using demand based connections or connection

Re: Urgent - MySQL 5 - mysqld using a lot of memory consistently

2007-01-22 Thread ViSolve DB Team
: Tuesday, January 23, 2007 11:59 AM Subject: Urgent - MySQL 5 - mysqld using a lot of memory consistently Hello all, Recently we upgraded from MySQL 4.1.11 to MySQL 5.0.22. The queries are taking a lot of time to execute in the newer version. The queries which were executing within 10 secs

Query not using indexes?

2006-12-13 Thread Chris Boget
select_type: SIMPLE table: games type: index possible_keys: PRIMARY key: ix_games_GameName key_len: 102 ref: NULL rows: 3 Extra: Using index; Using temporary; Using filesort *** 2. row

Re: Query not using indexes?

2006-12-13 Thread Jay Pipes
possible_keys: PRIMARY key: ix_games_GameName key_len: 102 ref: NULL rows: 3 Extra: Using index; Using temporary; Using filesort *** 2. row *** id: 1 select_type: SIMPLE table: games_sets

Re: Query not using indexes?

2006-12-13 Thread Chris Boget
Make sure that all joined fields are of identical types, otherwise the query executor must cast each and every join value, which may be affecting the query time... Can you even define fields having foreign keys to be of a different type? Anyway, taking a look at my JOIN INNER JOIN users ON

Using mysql for huge data warehouse - recommendations

2006-11-30 Thread Mark Jensen
so i'm debating between mysql and postgresql so far for choosing our data warehouse platform, and i've been using mysql for about 8 years now and would hate to move into postgresql if possible. mysql definitely has it's pros and cons, but so far, more pros than cons except for big joins

using SSL certificates when connecting to mysqld

2006-11-29 Thread Amit Dor-Shifer
Hi. mysql --version mysql Ver 14.7 Distrib 4.1.21, for pc-linux-gnu (i686) using readline 5.1 I'm trying to secure a replication connection between a master and a slave. However, seems to me that the issue I'm facing relates to any SSL client-server connection, so the scenario I'll

How Do I Know If mySQL is using MyISAM or InnoDB?

2006-11-17 Thread John Kopanas
Is there a command at the command line that can tell me if I am using MyISAM or InnoDB? Thanks :-). -- John Kopanas [EMAIL PROTECTED] http://www.kopanas.com http://www.cusec.net http://www.soen.info

Re: How Do I Know If mySQL is using MyISAM or InnoDB?

2006-11-17 Thread Rolando Edwards
If mySQL is using MyISAM or InnoDB? Is there a command at the command line that can tell me if I am using MyISAM or InnoDB? Thanks :-). -- John Kopanas [EMAIL PROTECTED] http://www.kopanas.com http://www.cusec.net http://www.soen.info -- MySQL General Mailing List For list archives: http

Re: How Do I Know If mySQL is using MyISAM or InnoDB?

2006-11-17 Thread Rolando Edwards
Know If mySQL is using MyISAM or InnoDB? This is will tell you your default storage engine type should you create a table without specifying an engine: show variables like 'storage engine'; If you want to create a table with a specific engine, specify it at the end od the CREATE TABLE like

Re: How Do I Know If mySQL is using MyISAM or InnoDB?

2006-11-17 Thread Mike Kruckenberg
For any specific table if you do: show create table tablename; It will tell you what the able was created using. To create tables using a specific engine add ENGINE=name to the end of your create statement. To see the default that is used (I think this is what the table_type variable does

Re: How Do I Know If mySQL is using MyISAM or InnoDB?

2006-11-17 Thread Mike Kruckenberg
This is in 4.0, it has changed in more recent versions. Mike Kruckenberg wrote: For any specific table if you do: show create table tablename; It will tell you what the able was created using. To create tables using a specific engine add ENGINE=name to the end of your create statement

Re: How Do I Know If mySQL is using MyISAM or InnoDB?

2006-11-17 Thread Rolando Edwards
PROTECTED] To: John Kopanas [EMAIL PROTECTED] Cc: mysql@lists.mysql.com Sent: Friday, November 17, 2006 12:32:19 PM GMT-0500 US/Eastern Subject: Re: How Do I Know If mySQL is using MyISAM or InnoDB? For any specific table if you do: show create table tablename; It will tell you what the able

Re: How Do I Know If mySQL is using MyISAM or InnoDB?

2006-11-17 Thread Visolve DB Team
Do I Know If mySQL is using MyISAM or InnoDB? Is there a command at the command line that can tell me if I am using MyISAM or InnoDB? Thanks :-). -- John Kopanas [EMAIL PROTECTED] http://www.kopanas.com http://www.cusec.net http://www.soen.info -- MySQL General Mailing List For list

Using MySQL to log and report transactions

2006-11-10 Thread James Tu
Hi: I'm going use MySQL to log transactions so that I can report on them later. Ex: CREATE TABLE statistics ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT , user_id BIGINT UNSIGNED , entity_id INT UNSIGNED , transaction_type INTEGER(2) UNSIGNED , datetime_logged

Re: Using MySQL to log and report transactions

2006-11-10 Thread Dan Nelson
In the last episode (Nov 10), James Tu said: I'm going use MySQL to log transactions so that I can report on them later. Ex: CREATE TABLE statistics ( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT , user_id BIGINT UNSIGNED , entity_id INT UNSIGNED , transaction_type

Loading data using infile

2006-11-03 Thread Michael Gargiullo
I have a script that builds a data file. The data looks like this: 62527427012682984, 191151, 177628526, 3634025281, 1, 58400, 80, 1899, , 2006/10/02 23:15:02, 19, 47,,2006-11-02-231557-cust.txt, 0, 0, IKE, ESP: AES-256 + SHA1, cx-ccb_vpn, Cx-CCB, , 62527427012682983, 191150, 177628526,

RE: Loading data using infile

2006-11-03 Thread Michael Gargiullo
Ok.. Disregard... the spaces I added for troubleshooting after the commas fubar'd it.

Using posix users

2006-10-13 Thread Yannick Gingras
Hi, I have a computer lab where students learn bioinformatics. The courses include a crash course on database and we want to use MySQL since it is a popular engine for bioinformatics. No one like to remember multiple passwords and since want each student to have its own MySQL user and

Re: Using posix users

2006-10-13 Thread Dan Nelson
In the last episode (Oct 13), Yannick Gingras said: I have a computer lab where students learn bioinformatics. The courses include a crash course on database and we want to use MySQL since it is a popular engine for bioinformatics. No one like to remember multiple passwords and since want

Re: Using posix users

2006-10-13 Thread Yannick Gingras
Dan Nelson [EMAIL PROTECTED] writes: Is it possible to do the same with MySQL? Not yet, Argh! but it being looked at: http://bugs.mysql.com/bug.php?id=4703 http://forge.mysql.com/wiki/PluggableAuthenticationSupport Very good! Keep up the good work guys. I guess our students will have

Re: How can i drop tables with the same predix by using only one single statement?

2006-10-12 Thread Ow Mun Heng
Sorry for the multiple post screw up. My Bad On Thu, 2006-10-12 at 11:43 +0800, Ow Mun Heng wrote: On Wed, 2006-10-11 at 16:11 +0100, Mark Leith wrote: Hey 方外 醉月 wrote: How can i do if i want to drop tables with the same predix? If you are using 5.0: DELIMITER // DROP

How can i drop tables with the same predix by using only one single statement?

2006-10-11 Thread 方外 醉月
How can i do if i want to drop tables with the same predix? For example, there is a database including a lot of tables,such as tableA,tableB(table*) Now,how can i drop those tables by using only one single statement? _ 与联机的

Re: How can i drop tables with the same predix by using only one single statement?

2006-10-11 Thread Mark Leith
Hey 方外 醉月 wrote: How can i do if i want to drop tables with the same predix? For example, there is a database including a lot of tables,such as tableA,tableB(table*) Now,how can i drop those tables by using only one single statement

Re: How can i drop tables with the same predix by using only one single statement?

2006-10-11 Thread Ow Mun Heng
On Wed, 2006-10-11 at 16:11 +0100, Mark Leith wrote: Hey 方外 醉月 wrote: How can i do if i want to drop tables with the same predix? If you are using 5.0: DELIMITER // DROP PROCEDURE drop_table_prefix// CREATE PROCEDURE drop_table_prefix(IN dbs VARCHAR(64), IN pref VARCHAR(63

Re: How can i drop tables with the same predix by using only one single statement?

2006-10-11 Thread Ow Mun Heng
On Wed, 2006-10-11 at 16:11 +0100, Mark Leith wrote: Hey 方外 醉月 wrote: How can i do if i want to drop tables with the same predix? If you are using 5.0: DELIMITER // DROP PROCEDURE drop_table_prefix// CREATE PROCEDURE drop_table_prefix(IN dbs VARCHAR(64), IN pref VARCHAR(63

Re: How can i drop tables with the same predix by using only one single statement?

2006-10-11 Thread Ow Mun Heng
On Wed, 2006-10-11 at 16:11 +0100, Mark Leith wrote: Hey 方外 醉月 wrote: How can i do if i want to drop tables with the same predix? If you are using 5.0: DELIMITER // DROP PROCEDURE drop_table_prefix// CREATE PROCEDURE drop_table_prefix(IN dbs VARCHAR(64), IN pref VARCHAR(63

Re: How can i drop tables with the same predix by using only one single statement?

2006-10-11 Thread Ow Mun Heng
On Wed, 2006-10-11 at 16:11 +0100, Mark Leith wrote: Hey 方外 醉月 wrote: How can i do if i want to drop tables with the same predix? If you are using 5.0: DELIMITER // DROP PROCEDURE drop_table_prefix// CREATE PROCEDURE drop_table_prefix(IN dbs VARCHAR(64), IN pref VARCHAR(63

Bug or No bug - Composite Unique Key using null values

2006-10-06 Thread Dan Julson
affected (0.00 sec) test Select * from test; +---+--+---+ | x | y| z | +---+--+---+ | 1 | dan | yes | | 2 | joe | no| | 3 | NULL | maybe | | 3 | NULL | yes | +---+--+---+ Should the duplicate key checker be using the null-safe equals operator when

Re: Bug or No bug - Composite Unique Key using null values

2006-10-06 Thread Dan Buettner
| +---+--+---+ | 1 | dan | yes | | 2 | joe | no| | 3 | NULL | maybe | | 3 | NULL | yes | +---+--+---+ Should the duplicate key checker be using the null-safe equals operator when checking for duplicate unique keys? Since primary keys cannot have nulls in them, then they are fine

Re: Bug or No bug - Composite Unique Key using null values

2006-10-06 Thread Martijn Tonies
| +---+--+---+ | 1 | dan | yes | | 2 | joe | no| | 3 | NULL | maybe | | 3 | NULL | yes | +---+--+---+ Should the duplicate key checker be using the null-safe equals operator when checking for duplicate unique keys? Since primary keys cannot have nulls in them

<    1   2   3   4   5   6   7   8   9   10   >