Re: 5.0.15-5.0.16 upgrade dependency failure

2005-11-28 Thread Marcus Bointon
On 28 Nov 2005, at 00:41, [EMAIL PROTECTED] wrote: The only times MySQL server interact directly with each other are: a) during replication b) NDB cluster operations c) FEDERATED tables Options b) and c) are available only in v5.0+. If what you want to do doesn't fall into one of those three

mysql export resultset to xml format

2005-11-28 Thread prathima rao
hi all, has anyone tried to export a data from a table to *.xml format i want a front end programme to do this automatically for example i have a database test in which table testing exists i want the data from that table to be exported in xml format at a click of a button regards rao --

mysqldump for xml

2005-11-28 Thread prathima rao
i was tring mysqldump command line for exporting data to xml format it is giving an error can anyone help me with the command line syntax rao -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysqldump for xml

2005-11-28 Thread Hassan Schroeder
prathima rao wrote: i was tring mysqldump command line for exporting data to xml format it is giving an error can anyone help me with the command line syntax No -- at least not unless you provide the command you were trying and the error message. :-) Especially considering the syntax is as

How to use 'if' in select

2005-11-28 Thread Gobi
I have not used an 'if' clause in select before but I think I may have a scenario which calls for it. I have a table with the following sample data: idx status1 status2 1NegNeg 2PosNeg 3NegNULL 4IndNeg I need to write a select clause based on the following

Re: mysql export resultset to xml format

2005-11-28 Thread Ben Wilson
phpMyAdmin has the ability to export to XML format. If you take a look at its code, you may see what command is used to dump to XML. Specifically, the code for XML export is in /libraries/export/xml.php. May put you in the right direction. Ben On 11/28/05, prathima rao [EMAIL PROTECTED] wrote:

Re: 5.0.15-5.0.16 upgrade dependency failure

2005-11-28 Thread SGreen
Marcus Bointon [EMAIL PROTECTED] wrote on 11/28/2005 04:45:54 AM: On 28 Nov 2005, at 00:41, [EMAIL PROTECTED] wrote: The only times MySQL server interact directly with each other are: a) during replication b) NDB cluster operations c) FEDERATED tables Options b) and c) are

Re: Php is not working with MySQL

2005-11-28 Thread Gleb Paharenko
Hello. I'm not so familiar with Debian, but general rules can be applied to every Linux distribution. Please, provide exact error messages if you're getting them from your scripts or describe all aspects of your problem. Mester József wrote: Hy I installed a Debian Sarge.

Re: The most frustrating thing (correction)

2005-11-28 Thread Gleb Paharenko
Hello. error: 'Host 'localhost.domain.ca' is not allowed to connect to this If MySQL thinks that you're connecting from from 'localhost.domain.ca' you should have an entry in grant tables for this host. If you're unable to connect to MySQL as root, reset permissions an add user

Re: mysqldump for xml

2005-11-28 Thread SGreen
prathima rao [EMAIL PROTECTED] wrote on 11/28/2005 08:14:44 AM: i was tring mysqldump command line for exporting data to xml format it is giving an error can anyone help me with the command line syntax rao Your post was eqivalent to : I keep trying to start my car but it won't. Tell

Re: How to use 'if' in select

2005-11-28 Thread Felix Geerinckx
On 28/11/2005, Gobi wrote: I need to write a select clause based on the following conditions: If all rows of status1 == Neg count all Neg rows in status1 else check if all rows of status2 == Neg count all Neg rows in status2 and status1 endif endif Not sure if I understand this

Re: Seeking Opinions

2005-11-28 Thread sheeri kritzer
On this note, I feel as though the best way to do this in MySQL is to use the ENUM or SET types, instead of indexing against a separate table -- I'm guessing SET, so each piece of clipart can be associated with more than one category. Of course, that eliminates relevancy searches (which you

Re: Error with PHP: undefined function: mysql_connect()

2005-11-28 Thread sheeri kritzer
Sounds like the binary you used did not have PHP compiled with the MySQL libraries. If you make a phpinfo() page, does the Configure Command section show a --with-mysql parameter? -Sheeri On 11/24/05, Sanjay Arora [EMAIL PROTECTED] wrote: Please help. Newbie running Centos 4.2 with mySQL PHP

Re: mysql_num_rows

2005-11-28 Thread sheeri kritzer
I have an idea about how to solve it. . . contact the PHP list, or whatever the programming language you are using shows. You might also try printing out the query that the program is using, and run that command from the mysql client directly, to see if the result is an error or if it really

drop primary key too slow ?

2005-11-28 Thread C.R.Vegelin
Hi Friends, I have a MyISAM table with about 10 million rows. When I drop the (multi-column) Primary Key (PK) it takes more than 10 minutes. I thought that any key or index was a kind of table in itself. And if so, dropping the PK could be as fast as a Truncate statement (a second). Am I missing

Re: Newbie question: UPDATE

2005-11-28 Thread Gleb Paharenko
Hello. I'm not PHPMyAdmin guru, but at least LOAD DATA LOCAL feature (if it is present in PHPMyAdmin) can be disabled due to some security reasons. See: http://dev.mysql.com/doc/refman/5.0/en/load-data-local.html Joe Herman wrote: To those thinking of answering this question,

Re: minimum processes at startup

2005-11-28 Thread Gleb Paharenko
Hello. CONNECT_PRIOR is the right value? Sorry, but right value for what? It is not a number of threads, it is priority. It was only for example. MySQL 4.* has only one(!) thread/process. Why? MySQL 5 has more again. Did you make your experiments on the same machine or different,

Re: Seeking Opinions

2005-11-28 Thread SGreen
You, yourself, explain why your suggestion would be a bad fit for this project: SET is limited to just 64 discrete values per table. I cannot remember reading that increasing the size of the SET features as a priority on any development list. I might have missed something but I don't think

Re: Error with PHP: undefined function: mysql_connect()

2005-11-28 Thread Ciprian Constantinescu
In PHP 4.1 you have to include the mysql.so extension. To do so, you have to modify php.ini, extensions section sheeri kritzer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sounds like the binary you used did not have PHP compiled with the MySQL libraries. If you make a phpinfo()

Re: Seeking Opinions

2005-11-28 Thread sheeri kritzer
I did answer my own question, and that's why I said: That being said, the point of this post is to ask -- Is MySQL working on allowing the SET limit to increase? Or is that just too much storage and math? Using a SET is, I believe, MUCH faster than making a special table simply to normalize

Re: Seeking Opinions

2005-11-28 Thread Martijn Tonies
I did answer my own question, and that's why I said: That being said, the point of this post is to ask -- Is MySQL working on allowing the SET limit to increase? Or is that just too much storage and math? Using a SET is, I believe, MUCH faster than making a special table simply to

Re: Error with PHP: undefined function: mysql_connect()

2005-11-28 Thread Octavian Rasnita
From: Ciprian Constantinescu [EMAIL PROTECTED] In PHP 4.1 you have to include the mysql.so extension. To do so, you have to modify php.ini, extensions section Or better, add that extension runtime because otherwise it will just consume computer resources, and maybe not every PHP program will

Re: UPDATE and INDEX updates

2005-11-28 Thread sheeri kritzer
Hi Mike, It sounds like what you need to know is what a B-tree index is and how it works. I took a course in Data Structures and Algorithms that taught it to me. Try http://www.bluerwhite.org/btree/ and the links at the bottom. Specifically, B-Tree-Delete Deletion of a key from a b-tree is

Re: How to use 'if' in select

2005-11-28 Thread Gobi
Felix Geerinckx wrote: On 28/11/2005, Gobi wrote: I need to write a select clause based on the following conditions: If all rows of status1 == Neg count all Neg rows in status1 else check if all rows of status2 == Neg count all Neg rows in status2 and status1 endif endif Not sure

Re: Error with PHP: undefined function: mysql_connect()

2005-11-28 Thread Ciprian Constantinescu
This solution is valid, but not advisable. If you run your server in a production environment, you shouldn't allow the dl function, as your users could activate any extension Or better, add that extension runtime because otherwise it will just consume computer resources, and maybe not every PHP

Re: 5.0.15-5.0.16 upgrade dependency failure

2005-11-28 Thread Gary Richardson
Whaaa? I did no such thing. My post was on topic. On 11/28/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Marcus Bointon [EMAIL PROTECTED] wrote on 11/28/2005 04:45:54 AM: On 28 Nov 2005, at 00:41, [EMAIL PROTECTED] wrote: The only times MySQL server interact directly with each other

Re: How to use 'if' in select

2005-11-28 Thread SGreen
Gobi [EMAIL PROTECTED] wrote on 11/28/2005 10:34:37 AM: Felix Geerinckx wrote: On 28/11/2005, Gobi wrote: I need to write a select clause based on the following conditions: If all rows of status1 == Neg count all Neg rows in status1 else check if all rows of status2 == Neg

Re: 5.0.15-5.0.16 upgrade dependency failure

2005-11-28 Thread SGreen
Dude! I am so sorry. I was the one (way) off topic. No more list work for me until my coffee kicks in. Completely my bad. :-( Shawn Gary Richardson [EMAIL PROTECTED] wrote on 11/28/2005 10:44:53 AM: Whaaa? I did no such thing. My post was on topic. On 11/28/05, [EMAIL PROTECTED] [EMAIL

Re: Chinese order by with utf8

2005-11-28 Thread sheeri kritzer
On 11/28/05, sheeri kritzer [EMAIL PROTECTED] wrote: Hi there, On my system, I have the following in my show charset (I eliminated the ones that didn't deal with chinese, so this is a partial listing) mysql show charset;

Re: loading a subset of input file using mysqlimport?

2005-11-28 Thread sheeri kritzer
As far as I can tell, there's no way to do what you specify. If you want less pre-processing, you can use the IGNORE n LINES command of LOAD DATA INFILE: http://dev.mysql.com/doc/refman/5.0/en/load-data.html The pre-processing involved with that is: 1) Decide how many parts you want to split

Re: Are functions evaluated before or during insertion?

2005-11-28 Thread sheeri kritzer
Hi Björn, I tested what you did on one of my systems, running 4.0.20: mysql create table parent ( - ID int unsigned not null auto_increment, - value varchar(50), - primary key (ID) - ) engine=InnoDB; create table child ( ID int unsigned not null auto_increment, parent_ID

Re: Seeking Opinions

2005-11-28 Thread sheeri kritzer
Part of me agrees with you, on a Pure SQL level. but then why would anyone ever use ENUM or SET? -Sheeri On 11/28/05, Martijn Tonies [EMAIL PROTECTED] wrote: I did answer my own question, and that's why I said: That being said, the point of this post is to ask -- Is MySQL working on

Re: Seeking Opinions

2005-11-28 Thread Martijn Tonies
Part of me agrees with you, on a Pure SQL level. but then why would anyone ever use ENUM or SET? I wouldn't :-) IMO, they're abominations that are to be avoided. Now, ENUM could be a bit useful. The Pure SQL way to avoid those would simply be a column of the right datatype and a CHECK

Re: Seeking Opinions

2005-11-28 Thread sheeri kritzer
On 11/28/05, Martijn Tonies [EMAIL PROTECTED] wrote: Part of me agrees with you, on a Pure SQL level. but then why would anyone ever use ENUM or SET? I wouldn't :-) IMO, they're abominations that are to be avoided. Again, part of me agrees with you. But part of me, particularly the part

Re: Problem with symbolic link

2005-11-28 Thread Gleb Paharenko
Hello. Sorry for a such delayed reply. Very often similar errors are caused by low value of open_files_limit system variable. Increase it as much as possible and if the problem disappears, decrease it gradually. If this doesn't help, check if the problem remains on the latest release.

How to use Logic in View Statment?

2005-11-28 Thread Scott Klarenbach
I'd like to do the following in my view select fieldOne, fieldTwo, if(fieldThree.length0) then fieldThree as Company else fieldFour as Company from table; I realize this syntax isn't correct and length doesn't exists, but is this possible? I've seen it done in SQLServer, but can't

Re: Seeking Opinions

2005-11-28 Thread Martijn Tonies
Part of me agrees with you, on a Pure SQL level. but then why would anyone ever use ENUM or SET? I wouldn't :-) IMO, they're abominations that are to be avoided. Again, part of me agrees with you. But part of me, particularly the part that says our queries need to be optimized as

Re: How to use Logic in View Statment?

2005-11-28 Thread SGreen
Scott Klarenbach [EMAIL PROTECTED] wrote on 11/28/2005 01:58:22 PM: I'd like to do the following in my view select fieldOne, fieldTwo, if(fieldThree.length0) then fieldThree as Company else fieldFour as Company from table; I realize this syntax isn't correct and length

Re: How to use Logic in View Statment?

2005-11-28 Thread Peter Brawley
Scott select fieldOne, fieldTwo, if(fieldThree.length0) then fieldThree as Company else fieldFour as Company from table; SELECT fieldOne, fieldTwo, IF( LENGTH( fieldthree ) 0, fieldthree, fieldFour ) AS Company FROM table; PB - Scott Klarenbach wrote: I'd like to do the

Re: How to use Logic in View Statment?

2005-11-28 Thread Cory @ SkyVantage
I have a similar question. How do you test if the field in question isn't NULL or '' (empty string)? Is the LENGTH a good test or is there a better way? [EMAIL PROTECTED] wrote: LENGTH does exist (as a function): http://dev.mysql.com/doc/refman/5.0/en/string-functions.html and here is

Re: How to use Logic in View Statment?

2005-11-28 Thread Martijn Tonies
I have a similar question. How do you test if the field in question isn't NULL or '' (empty string)? Is the LENGTH a good test or is there a better way? WHERE myfield IS NOT NULL -- Martijn Tonies Database Workbench - tool for InterBase, Firebird, MySQL, Oracle MS SQL Server Upscene

Re: How to use Logic in View Statment?

2005-11-28 Thread SGreen
Cory @ SkyVantage [EMAIL PROTECTED] wrote on 11/28/2005 02:38:50 PM: I have a similar question. How do you test if the field in question isn't NULL or '' (empty string)? Is the LENGTH a good test or is there a better way? [EMAIL PROTECTED] wrote: LENGTH does exist (as a

Numbering Rows on Output

2005-11-28 Thread Hal Vaughan
I have a table that lists the tasks a program has to do. Lately I've found I can have an at-a-glance status report of how things are going on by writing a loop (in bash scripting, on Linux, btw) that uses mysql -e to display the list of tasks and their current state. It's quick and a lot

Re: Numbering Rows on Output

2005-11-28 Thread Dan Nelson
In the last episode (Nov 28), Hal Vaughan said: I have a table that lists the tasks a program has to do. Lately I've found I can have an at-a-glance status report of how things are going on by writing a loop (in bash scripting, on Linux, btw) that uses mysql -e to display the list of tasks

RE: How to use Logic in View Statment?

2005-11-28 Thread Gelu Gogancea
Hi , IMHO the corect way is to check if IS NULL SELECT fieldOne, fieldTwo, IF(fieldThree IS NULL,fieldFour,fieldThree) as Company FROM table; Depening on the column definition(if is byte,multi-byte...etc.), LENGTH() function can have various behaviour and is not quite sure that you will get

Re: Numbering Rows on Output

2005-11-28 Thread Hal Vaughan
On Monday 28 November 2005 04:45 pm, Dan Nelson wrote: In the last episode (Nov 28), Hal Vaughan said: I have a table that lists the tasks a program has to do. Lately I've found I can have an at-a-glance status report of how things are going on by writing a loop (in bash scripting, on

comma-separated JOINS

2005-11-28 Thread Matt Monaco
When using JOINS by the simply supplying a comma separated list of tables in the FROM clause, is the ON argument normally associated with a join intended to be addressed in the WHERE clause, or should ON still be used? // Comma separated join SELECT u.*, a.city FROM users u, addresses a WHERE

Re: How to use 'if' in select

2005-11-28 Thread Gobi
[EMAIL PROTECTED] wrote: Wouldn't it be just as simple to count all 'neg', 'pos', and 'ind' values for both columns? By the way, is there some other column you are grouping by or is it always going to apply to entire tables of information? I know this is not what you wanted. However, what

Re: comma-separated JOINS

2005-11-28 Thread Peter Brawley
Matt, When using JOINS by the simply supplying a comma separated list of tables in the FROM clause, is the ON argument normally associated with a join intended to be addressed in the WHERE clause, or should ON still be used? There's no ON clause for a join specified by a WHERE clause, and

locking issues

2005-11-28 Thread PaginaDeSpud
I'm getting locking issues due to tables very often updated/insert. It's splitted into two tables, one has the more updated data and the another has the more static data. I'm using queries with JOIN, would it be better for performance to use two queries instead of using JOIN? Thanks. Ivan L.

Why are posts to this list showing up in my inbox?

2005-11-28 Thread Matt Monaco
I am using outlook express to view this mailing list, I do not need the posts actually mailed to my account, how can I address this? Thanks in advance, Matt -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL

RE: Why are posts to this list showing up in my inbox?

2005-11-28 Thread Logan, David (SST - Adelaide)
Click the help menu? They show up in your inbox because you subscribed to the list. Perhaps the forums (http://forums.mysql.com) may be a better place for you to check out. Regards David Logan Database Administrator HP Managed Services 148 Frome Street, Adelaide 5000 Australia +61 8 8408 4273

Re: Why are posts to this list showing up in my inbox?

2005-11-28 Thread Matt Monaco
Ahh, I thought I needed to subscribe just to have access to post like the php mailing lists. Didn't realized that was just for emailed copies. Thanks. Logan, David (SST - Adelaide) [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Click the help menu? They show up in your inbox

Re: How to filter rows based on a value?

2005-11-28 Thread Gobi
sheeri kritzer wrote: You could do something similar to the following: set @a:=0; select 0 from Dummy where if(status=Pos,@a:=null,@a:[EMAIL PROTECTED]); select @a; Use the value of @a -- it will be null if there was ever a null value (because 1+NULL=NULL) and it will be the count if there

Re: How to use 'if' in select

2005-11-28 Thread Gobi
[EMAIL PROTECTED] wrote: Wouldn't it be just as simple to count all 'neg', 'pos', and 'ind' values for both columns? By the way, is there some other column you are grouping by or is it always going to apply to entire tables of information? I know this is not what you wanted. However, what

Re: comma-separated JOINS

2005-11-28 Thread Matt Monaco
What would be the most efficient order to join in? Say I have one main table with most columns (I assume this should be the main table of the query) then each table relates to the next, is it as simple as putting them in order? Peter Brawley [EMAIL PROTECTED] wrote in message news:[EMAIL