Re: what is the rationale for not allowing LOCK TABLES in a stored procedure

2018-08-18 Thread Mogens Melander
Guys, I think I remember this from way back. You could ask for a lock, and get an OK if it is safe. Something like, if there is pending transactions, on your target tables, you would get a NO. But then again. I could be wrong, and Shawn is the authority on this. On 2018-08-18 23:59, shawn

Re: Query Summary Help...

2015-10-24 Thread Mogens Melander
You need to GROUP BY those fields NOT in the aggregate function. Like: SELECT f.id,f.name,sum(p.price) FROM fruit f left join purchase p on f.id = p.fruit where p.price is not null group by f.id,f.name; 1, 'Apples', 2 2, 'Grapes', 6.5 4, 'Kiwis', 4 On 2015-10-23 04:15, Don Wieland wrote: Hi

Re: When to create a new database

2015-10-10 Thread Mogens Melander
When I read the OP I was thinking: This is one for Reindl. And here we go. When dealing with data of this specific kind, you most definitely would want a date reference. A very small computer will be able to handle mane years of all kinds of weird sports statistics. You need to define the

Re: Relational query question

2015-09-30 Thread Mogens Melander
Maybe not the most optimal, but (probably) the most simple: SELECT * FROM fruit where id not in (select fruit from purchase where customer=1); 1, 'Apples' 3, 'Oranges' On 2015-09-30 00:01, Richard Reina wrote: If I have three simple tables: mysql> select * from customer; +++ | ID

Re: checking for repetitive queries

2015-05-20 Thread Mogens Melander
are talking about http://www.catb.org/esr/faqs/smart-questions.html#beprecise -- Mogens Melander +66 8701 33224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- MySQL General Mailing List For list archives: http

Re: Select one valuebut not the other

2015-04-29 Thread Mogens Melander
item has several values, there are several records with the same item_number and a different data_value. What is the command to select all the records where an item_number has the data 1 but not the data 2? Thanks in advance, Olivier -- Mogens Melander +66 8701 33224 -- This message

Re: Select one valuebut not the other

2015-04-28 Thread Mogens Melander
. If one item has several values, there are several records with the same item_number and a different data_value. What is the command to select all the records where an item_number has the data 1 but not the data 2? Thanks in advance, Olivier -- Mogens Melander +66 8701 33224

Re: forum vs email

2014-12-06 Thread Mogens Melander
. That is, this list, right? What does it lack (besides readers)? mail-clients using a readable quoting, your's do not :-) -- Mogens Melander +66 8701 33224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- MySQL General Mailing List

Re: INTO OUTFILE ERROR...

2014-09-19 Thread Mogens Melander
by MailScanner, and is believed to be clean. -- Mogens Melander +66 8701 33224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

Re: Stored Procedure help

2014-07-14 Thread Mogens Melander
Sales Engineer SkySQL | t: +46 708-608-121 | Skype: drdatabase -- Mogens Melander +66 8701 33224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

Re: Precedence in WHERE clauses.

2014-03-19 Thread Mogens Melander
: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Mogens Melander +66 8701 33224 -- This message has been scanned for viruses and dangerous

Re: Getting distinct values in diff columns

2012-11-22 Thread Mogens Melander
been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Mogens Melander +66 8701 33224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- MySQL General Mailing List For list archives

Re: Basic SELECT help

2012-11-22 Thread Mogens Melander
list of id where the type equals 2 and 5 Any ideas ? Neil -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Mogens Melander +66 8701 33224 -- This message has been scanned for viruses and dangerous content by MailScanner

Re: Basic SELECT help

2012-11-22 Thread Mogens Melander
for viruses and dangerous content by MailScanner, and is believed to be clean. -- Mogens Melander +66 8701 33224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- MySQL General Mailing List For list archives: http

Re: Basic SELECT help

2012-11-22 Thread Mogens Melander
the working assumption that he is using a MySql version released in this century, I don't know how this would have informed my analysis or response. - michael dykman On Thu, Nov 22, 2012 at 4:00 PM, Mogens Melander mog...@fumlersoft.dk wrote: On Thu, November 22, 2012 15:45, Neil Tompkins wrote

Re: Dynamic crosstab got me lost.

2012-11-20 Thread Mogens Melander
On Mon, November 19, 2012 17:02, Shawn Green wrote: On 11/19/2012 9:02 AM, Mogens Melander wrote: On Mon, November 19, 2012 13:49, Jan Steinman wrote: From: Mogens Melander mog...@fumlersoft.dk So, I got a little further with my problem. I found an article on: http://stackoverflow.com

Re: Dynamic crosstab got me lost.

2012-11-19 Thread Mogens Melander
On Mon, November 19, 2012 13:49, Jan Steinman wrote: From: Mogens Melander mog...@fumlersoft.dk So, I got a little further with my problem. I found an article on: http://stackoverflow.com/questions/3122424/dynamic-mysql-query-view-for-crosstab Describing how to do the dynamic generation

Re: Dynamic crosstab got me lost.

2012-11-18 Thread Mogens Melander
On Wed, November 14, 2012 09:23, Mogens Melander wrote: Guru's I've been tasked with creating a report with information about which images are related to each active article. The images are descriptive icons visualizing different properties. Articles can be active 'on' or not '', and only

Re: Issue regarding the import of the date from csv file to the table in the database in mysql

2012-11-14 Thread Mogens Melander
Did you change the target column to varchar before import ? On Wed, November 14, 2012 10:23, sagar bs wrote: tried to import data as text, but its showing Operation failed with exitcode 1 On Wed, Nov 14, 2012 at 1:12 PM, Mogens Melander mog...@fumlersoft.dkwrote: Or you could import

RE: Dynamic crosstab got me lost.

2012-11-14 Thread Mogens Melander
, but the layout is best done in a application language, such as PHP. -Original Message- From: Mogens Melander [mailto:mog...@fumlersoft.dk] Sent: Wednesday, November 14, 2012 12:23 AM To: mysql@lists.mysql.com Subject: Dynamic crosstab got me lost. Guru's I've been tasked with creating

Re: Issue regarding the import of the date from csv file to the table in the database in mysql

2012-11-14 Thread Mogens Melander
://lists.mysql.com/mysql -- Regards SAGAR B S -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Mogens Melander +66 8701 33224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed

Re: Issue regarding the import of the date from csv file to the table in the database in mysql

2012-11-14 Thread Mogens Melander
://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Mogens Melander +66 8701 33224 -- This message has been scanned for viruses and dangerous content

Re: Issue regarding the import of the date from csv file to the table in the database in mysql

2012-11-14 Thread Mogens Melander
6:40 AM: Sorry, didn't mean to be rude. It's in there. On Thu, November 15, 2012 00:23, Mogens Melander wrote: Dude, which part of RTFM did yoy miss? http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html On Wed, November 14, 2012 13:57, sagar bs wrote: Hi, There are four

Re: Issue regarding the import of the date from csv file to the table in the database in mysql

2012-11-13 Thread Mogens Melander
in your CSV file into the format you need. So many ways to do that, e.g.: bring in into excel and change the column's format, use sed, use python, use vi, -- Mogens Melander +66 8701 33224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed

Re: optimize and tmpfiles

2012-10-29 Thread Mogens Melander
On Mon, October 29, 2012 18:11, walter harms wrote: Am 29.10.2012 14:55, schrieb Reindl Harald: Am 29.10.2012 14:54, schrieb walter harms: Am 29.10.2012 13:17, schrieb Reindl Harald: Am 29.10.2012 12:48, schrieb walter harms: hi list, does someone know under what circumstances

Re: update doesn't

2012-08-20 Thread Mogens Melander
'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed 1 Warnings: 0 mysql select status from tasks; ++ | status | ++ | W | ++ 1 row in set (0.00 sec) whoops bill Maybe a SHOW CREATE TABLE `tasks`\g could shed some light. -- Mogens Melander +66

Re: New Fast MySQL Compatible Server

2012-03-27 Thread Mogens Melander
archives: http://lists.mysql.com/mysql To unsubscribe:    http://lists.mysql.com/mysql -- Baron Schwartz Win free MySQL conference tickets! http://goo.gl/mvZ4W -- Later Mogens Melander -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed

Wierd PHP/MySQL result

2009-09-22 Thread Mogens Melander
MySQL console/query-browser: 1 , 2 , 'Long description' Correct data , 'Jane' , 'Doe' , 'Solvej 1' , '' , '1234' , 'Sommerby' , '11 22 33 44' , '' , '' , '' , -7500.00 -- Later Mogens Melander -- This message has been scanned for viruses and dangerous content by MailScanner

Re: Wierd PHP/MySQL result

2009-09-22 Thread Mogens Melander
. - Rick Original Message Date: Tuesday, September 22, 2009 10:02:06 PM +0200 From: Mogens Melander mog...@fumlersoft.dk To: mysql@lists.mysql.com Subject: Wierd PHP/MySQL result Hi guys I'm getting rather confused on this thing. Results returned from mysql

Re: Wierd PHP/MySQL result (Solved)

2009-09-22 Thread Mogens Melander
, Mogens Melander wrote: Well, no typos. The relevant piece of code: if (! $cust = mysql_fetch_assoc($res)) { echo {success: false, errors: { reason: 'Fetch Customer failed: . htmlspecialchars(mysql_error(),ENT_QUOTES) . br . htmlspecialchars($sql,ENT_QUOTES

Re: Wierd PHP/MySQL result

2009-09-22 Thread Mogens Melander
General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=mog...@fumlersoft.dk -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Later Mogens Melander

Re: database design

2009-09-13 Thread Mogens Melander
content by MailScanner, and is believed to be clean. -- Later Mogens Melander -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

Re: Uptimize: join table on if()

2008-12-09 Thread Mogens Melander
at 7:14 AM, Mogens Melander [EMAIL PROTECTED] wrote: Hi list I have this statement that really need optimizing. The result is about 5500 rows, and it runs for about 3-5 minutes. If i do the same in a PHP script (outer loop, inner loop) it run in 20 sec. The idea is that data in tdata might

Re: Uptimize: join table on if()

2008-12-09 Thread Mogens Melander
: On Dienstag, 9. Dezember 2008, Mogens Melander wrote: | I can't figure out why the UNION solution is missing 4 rows. I'll include | the 3 complete statements, so maybe someone smarter than me can figure out | why there's a difference in the result. Without having studied your query, my guess

Uptimize: join table on if()

2008-12-08 Thread Mogens Melander
CHARSET=latin1; -- Later Mogens Melander -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Password storage

2007-08-18 Thread Mogens Melander
. /QUOTE These are all functions you use in your sql statement, so yes. They can be used in MS Access. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- MySQL General

Re: Password storage

2007-08-18 Thread Mogens Melander
(the odds against are huge!) Well, i got the impression that OP wanted to retrieve the cleartext string, but i could be wrong. On Saturday 18 August 2007 16:19, Mogens Melander wrote: MD5() is not an encryption function. The MySQL manual states: -- Later Mogens Melander +45 40 85 71 38 +66 870

Re: Seeing Table Structure

2007-07-23 Thread Mogens Melander
for viruses and dangerous content by MailScanner, and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- MySQL General Mailing List For list

Re: su-like functionality

2007-07-23 Thread Mogens Melander
On Mon, July 23, 2007 10:19, Carlo Sogono wrote: Is there a way for mysql to login as an administrator and su to a normal user? What I'd like to achieve is a way to log in to our clients' accounts (we are a web-hosting company) without having to use their passwords. Having to su keeps

Re: performance of extended insert vs. load data

2007-07-23 Thread Mogens Melander
Database Administrator iContact 2635 Meridian Parkway, 2nd Floor Durham, North Carolina 27713 (o) 919-433-0786 (c) 850-637-3877 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66

Re: mysql dump help!

2007-07-23 Thread Mogens Melander
] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- MySQL General

Re: mysql dump help!

2007-07-23 Thread Mogens Melander
content by MailScanner, and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- MySQL General Mailing List For list archives: http

Re: su-like functionality

2007-07-23 Thread Mogens Melander
probably too late for me to make sense, so i leave it here for now. On Tue, July 24, 2007 04:54, Carlo Sogono wrote: Mogens Melander wrote: On Mon, July 23, 2007 10:19, Carlo Sogono wrote: Is there a way for mysql to login as an administrator and su to a normal user? What I'd like to achieve

Re: speeding imports

2007-07-18 Thread Mogens Melander
On Tue, July 17, 2007 13:31, Baron Schwartz wrote: Mogens Melander wrote: On Tue, July 17, 2007 04:29, Baron Schwartz wrote: B. Keith Murphy wrote: The problem is that I am realizing that this dump/import is going to take hours and in some cases days. I am looking for any way to speed

Re: speeding imports

2007-07-17 Thread Mogens Melander
5.0.38 (sorry, I forget what it was and can't find it now). When the slave checks the master version, it throws an error and stops saying I refuse because of this bug. Baron -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses

Re: New error to me...

2007-07-14 Thread Mogens Melander
:http://lists.mysql.com/[EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content

Re: How to restore 1 database from mysqldump of all databases

2007-07-10 Thread Mogens Melander
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content

Re: off-topic unsubscribe concern

2007-07-08 Thread Mogens Melander
models are useful. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Later Mogens

Re: database structure

2007-07-02 Thread Mogens Melander
on three tables above? -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

Interresting update problem

2007-06-27 Thread Mogens Melander
' 86, 'field_51' The exercise is: replace 'X' with map.id in main.map.field main.code and map.id are primary keys, all other are varchar. Hmm, did that make any sense? -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content

Re: Selecting rows by DATE ranges

2007-06-25 Thread Mogens Melander
://lists.mysql.com/[EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by MailScanner

Re: Storing a linked list

2007-06-19 Thread Mogens Melander
content by MailScanner, and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- MySQL General Mailing List For list archives: http

Re: selecting everyting from 2 non-identical tables.

2007-06-19 Thread Mogens Melander
, age, null as height from table1 union select id, name, null as age, height from table2 I believe that was the right answer to the question. ( there might be other answers ;^) -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses

Re: Change in behaviour in version 5.0.41

2007-06-15 Thread Mogens Melander
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous

Re: Request: Schema suggestion for items which change over time...

2007-06-14 Thread Mogens Melander
product at that particular time? One method could be to store product(id, description, price) and orderitem(id,orderid,productid,quantity,price) This way your orders will reflect the item-price at the time the order was created. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224

Re: When will partitioning be included in the MySQl stable release ?

2007-06-08 Thread Mogens Melander
, and any individual guesses are based on assumptions which cannot be proven (like known rates of bug inflow and fixing). -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean

Re: Stable mysql 4.xx

2007-06-03 Thread Mogens Melander
-- before that, they say it's no longer supported. I couldn't find a way to get it, anyway. Mogens Melander wrote: If i'm not mistaken, the mysql site, also has older versions. On Sun, June 3, 2007 18:31, Baron Schwartz wrote: Hi, Subasta.pl - Darmowe Aukcje Internetowe wrote: Hello

Re: CSV import

2007-05-31 Thread Mogens Melander
://www.openprotect.com), and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- MySQL General Mailing List For list archives

Re: Padding result

2007-05-31 Thread Mogens Melander
/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been

Re: string to timestamp conversion

2007-05-22 Thread Mogens Melander
] -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by OpenProtect(http

Re: Problem with GRANT ... 'user'@'%'

2007-05-22 Thread Mogens Melander
For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66

Re: speedup mysql restore

2007-05-20 Thread Mogens Melander
Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- Later Mogens Melander

Re: Re[2]: speedup mysql restore

2007-05-20 Thread Mogens Melander
some speed, fiddeling with buffer sizes. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- MySQL General Mailing List For list archives

Re: Problem with GRANT ... 'user'@'%'

2007-05-20 Thread Mogens Melander
), and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- MySQL General Mailing List For list archives: http://lists.mysql.com

Re: Data security - help required

2007-05-15 Thread Mogens Melander
. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe

Re: Scheduled backups

2007-05-14 Thread Mogens Melander
file, but is there anyway around that other than setting the password as blank? How about creating a mysql account with only read / connect from localhost permissions on? Making a no-password account, or storing password in file, can't be that far apart, security wise :) -- Later Mogens

Re: finding next and prev record in mysql

2007-05-11 Thread Mogens Melander
' AND members_id= '8' ORDER BY lastname The PHP variant could look like (prev id): SELECT id FROM contacts WHERE category = '5' AND subcategory = '1' AND members_id= '8' AND lastname $_POST['lastname'] ORDER BY lastname LIMIT 1; -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224

Re: problem with initdb script in lxr installation - newbie needs help

2007-05-08 Thread Mogens Melander
by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- MySQL General Mailing

Re: how to create new username n password in mysql

2007-05-08 Thread Mogens Melander
scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com

Re: how to create new username n password in mysql

2007-05-08 Thread Mogens Melander
the bankaccount database, but only from the local host. The second account can access the expenses database, but only from the host whitehouse.gov. The third account can access the customer database, but only from the host server.domain. Mogens Melander wrote: GRANT CREATE,INSERT,DELETE,UPDATE,SELECT

Re: Installing 2nd instance on windows.

2007-05-08 Thread Mogens Melander
? Thanks again, CPK Keep your Environment clean and green. -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been

Re: Printing

2007-05-08 Thread Mogens Melander
to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql

RE: secure port 3306

2007-05-07 Thread Mogens Melander
archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=1 -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870

RE: secure port 3306

2007-05-07 Thread Mogens Melander
-2. Steve -Original Message- From: Mogens Melander [mailto:[EMAIL PROTECTED] Sent: Monday, May 07, 2007 1:35 PM To: Steven Buehler Cc: mysql@lists.mysql.com Subject: RE: secure port 3306 On Mon, May 7, 2007 17:40, Steven Buehler wrote: The thing is...I need to securely do

Re: How do I find products when a user types freeform strings like 'Sony 20 TV' or '20 Sony TV'?

2007-05-04 Thread Mogens Melander
field search box, someone enters: Sony 20 TV How do I search for that, not knowing which fields are which? For example, they could have also entered: 20 Sony TV How about: select soundex('Sony 20 TV' ),soundex('20 Sony TV'); 'S531', 'S531' -- Later Mogens Melander +45 40 85

Re: batch mode

2007-05-02 Thread Mogens Melander
. What is missing, what's the trick. Help me Y'all. You could try something like: mysql -u xxx -pyyy -e 'select * from dbname;' mysql -u xxx -pyyy -e 'select * from dbname.tblname;' -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses

Re: batch mode

2007-05-02 Thread Mogens Melander
On Wed, May 2, 2007 08:55, Mogens Melander wrote: On Tue, May 1, 2007 22:15, Brown, Charles wrote: Because I am running on batch mode therefore I'm trying to direct my session output to a file -- meaning stdout. But I'm having a problem. For instance this input: use test_db gave me

Re: secure port 3306

2007-05-02 Thread Mogens Melander
] -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by OpenProtect(http

Re: show tables

2007-05-01 Thread Mogens Melander
at the mysql prompt. What error message do you get ? -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- MySQL General Mailing List For list archives

Re: MySQL Workbench

2007-05-01 Thread Mogens Melander
been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com

Re: how to query this sql?

2007-04-29 Thread Mogens Melander
this?Thanks. That would be select date(updatetime) ut, count(*) dd from items group by ut; -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean

RE: Permissions and Into Outfile

2007-04-28 Thread Mogens Melander
] -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by OpenProtect(http

RE: Permissions and Into Outfile

2007-04-27 Thread Mogens Melander
General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- Later Mogens

Re: Interesting SQL Query - Total and Grouped Counts together?

2007-04-26 Thread Mogens Melander
/%' then 1 else 0 end) image FROM tablea GROUP BY domain; domain all html image - 'google.com', 6, 3, 3 'teddybears.com', 2, 1, 1 -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses

Re: Update question

2007-04-25 Thread Mogens Melander
are identical. update table1 t1, table2 t2 set t1.value=t2.value where t1.id=t2.id; But I cannot find any UPDATE query that can do this in a single operation. Anyone that can give me a suggestion? I'm using MySQL 4.1.8 -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message

Re: Trying to open a big sql script

2007-04-19 Thread Mogens Melander
the changes you need to make be done with stream editing (simple changes like changing a word or two are very easy with stream editor)? Also, replace from your mysql-installation could be used,if you only need to replace a-string with b-string :) -- Later Mogens Melander +45 40 85 71 38 +66 870 133

Re: Trying to open a big sql script

2007-04-19 Thread Mogens Melander
Something like this should do the trick: ~#replace mthosp newname org-file.sql new-file.sql -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 On Thu, April 19, 2007 16:53, molemenacer wrote: I am trying to change all the names of the database from mthosp to another name

RE: how to tell if something hasn't happened yet

2007-04-17 Thread Mogens Melander
Arg, come on, really. where t.created = date(now())); -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 On Mon, April 16, 2007 15:18, Jay Blanchard wrote: [snip] select s.* from store s where s.id not in (select t.storeid from trans t where t.created=date(now())); [/snip

RE: how to tell if something hasn't happened yet

2007-04-17 Thread Mogens Melander
Argh, that was not the one i wanted to send :) This is the one: select s.* from store s where s.id not in (select t.storeid from trans t where t.created date(now()) - interval 1 day); -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 On Tue, April 17, 2007 09:20

Re: Problem with mysqldump and local-infile

2007-04-16 Thread Mogens Melander
It looks to me that local-infile is a command-line parameter to mysql client mysql --local-infile -u user dbname I've not been able to find this option elsewhere. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 On Mon, April 16, 2007 12:14, Mark van Herpen wrote: Hi, I want

Re: Is it possible to either update or insert in a single query?

2007-04-13 Thread Mogens Melander
a REPLACE statement makes no sense. It becomes equivalent to INSERT, because there is no index to be used to determine whether a new row duplicates another. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 On Fri, April 13, 2007 08:14, Douglas Pearson wrote: Apologies if this is a dumb

Re: can't import

2007-04-13 Thread Mogens Melander
* from abc; ++-+-+ | a | b | c | ++-+-+ | A1 | B1 | C1 | | A2 | B2 | C2 | | A3 | B3 | C3 | ++-+-+ 3 rows in set (0.00 sec) -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 On Fri, April 13, 2007 09:39, Thufir wrote: Mogens Melander mogens

Re: how to tell if something hasn't happened yet

2007-04-13 Thread Mogens Melander
How about this: select s.* from store s where s.id not in (select t.storeid from trans t where t.created=date(now())); -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 On Sat, April 14, 2007 00:22, Jay Blanchard wrote: Good day gurus and gurettes! I have a table

Re: a little user rights help?

2007-04-13 Thread Mogens Melander
). -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 On Fri, April 13, 2007 22:18, Denise Wilson wrote: Hi. I'm brand new at this so I'm looking for a little help. I need to have two difference levels of access to a mysql database that I am developing for our librarians to use

Re: can't import

2007-04-12 Thread Mogens Melander
Hmmm, your LINES TERMINATED BY '/r/n'; should be: LINES TERMINATED BY '\r\n'; if the abc.txt file was generated on windows. If it was made on *nix/linux, it should be: LINES TERMINATED BY '\n'; -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 On Thu, April 12, 2007 09:58, Thufir

Re: database backup problem, since database over 60mb

2007-04-11 Thread Mogens Melander
Mogens Melander +45 40 85 71 38 +66 870 133 224 On Wed, April 11, 2007 21:11, Richard wrote: Hello, I've got a problem with mysql 5 on my debian server. I've got a forum on this server and untill the database reached about 60 Mo I could dump the database with either phpmyadmin

Re: import fails: error 13

2007-04-11 Thread Mogens Melander
[STARTING BY 'string'] [TERMINATED BY 'string'] ] [IGNORE number LINES] [(col_name_or_user_var,...)] [SET col_name = expr,...)] -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 On Thu, April 12, 2007 02:37, Thufir wrote: [EMAIL PROTECTED] ~]$ [EMAIL PROTECTED

Re: How can I do something like this in mySQL...

2007-04-07 Thread Mogens Melander
it is used. mysql SELECT IFNULL(1,0); - 1 mysql SELECT IFNULL(NULL,10); - 10 mysql SELECT IFNULL(1/0,10); - 10 mysql SELECT IFNULL(1/0,'yes'); - 'yes' -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 On Sat, April 7, 2007 20:19, John Kopanas wrote: I

Re: question about Queries per second avg

2007-04-06 Thread Mogens Melander
Mogens Melander +45 40 85 71 38 +66 870 133 224 On Fri, April 6, 2007 10:16, Christophe Gregoir wrote: I have to admit, Google doesn't provide much information. Let's take a closer look and see if we can't figure out ourselves what that value means. Here is the output of `mysqladmin status` on my

Re: mysql question.

2007-04-03 Thread Mogens Melander
and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean. -- Later Mogens Melander +45 40 85 71 38 +66 870 133 224 -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean

  1   2   >