Re: Need help in locating configuration file

2005-05-17 Thread David Logan
http://dev.mysql.com/doc/mysql/en/mysql-config.html&e=9888 If you have questions, try http://dev.mysql.com/doc/mysql/en/index.html first as you will often find the answer there. BTW this manual is for the latest version that you are using. > Hi, > Iam using Mysql5.04 > What does it mean, > > "To

Re: MySQL Administrator Broke MySQL

2005-05-17 Thread Jeff Gojkovich
Nevermind. I figured it out. It somehow corrupted the db table in the mysql db. I blew that away and recreated it with just root access to all of the dbs and it works now. First I would like to start off by saying I am a complete noobie to MySQL. I have MySQL 4.0 running on a freebsd machine

Re: Export from Access

2005-05-17 Thread EP
I recently exported a large Access database to MySQL using MyODBC. It took me a while to figure out that MyODBC was the thing to try, but once I did tried it, it only took me a few minutes to do the export. I highly recommend that approach (MyODBC). -Eric > Original Message-

Re: varchar(10) to decimal

2005-05-17 Thread mfatene
Hi, to convert '16.00' to 16.00, you can use select '16.00'+0 mysql> select '16.00'+0; +---+ | '16.00'+0 | +---+ |16 | +---+ 1 row in set (0.08 sec) for ur columns, select col+0 from tbl; Mathias Selon Jerry Swanson <[EMAIL PROTECTED]>: > I need to change format

Replication with failover

2005-05-17 Thread Simon Garner
Hi, Anybody have any experience with setting up MySQL replication with dynamic failover, preferably using keepalived (http://www.keepalived.org)? What we need is a system so that if the master server dies one of the slaves will become the master. It looks like it should be possible, and merely

Re: Passing parameter to mysql script

2005-05-17 Thread mfatene
Hi , look at prepared statement : http://dev.mysql.com/tech-resources/articles/4.1/prepared-statements.html?rated=0 Mathias Selon weetat <[EMAIL PROTECTED]>: > Hi all , > >I need to pass paramter to mysql script , for example , my script , > > INSERT INTO SYSTEM_PARAMETER_TABLE > (bran

Need help in locating configuration file

2005-05-17 Thread madderla sreedhar
Hi, Iam using Mysql5.04 What does it mean, "To install the mysqli extension for PHP, use the --with-mysqli=mysql_config_path/mysql_config configuration option where mysql_config_path represents the location of the mysql_config program that comes with MySQL versions greater than 4.1." in this,is

MySQL Administrator Broke MySQL

2005-05-17 Thread Jeff Gojkovich
First I would like to start off by saying I am a complete noobie to MySQL. I have MySQL 4.0 running on a freebsd machine. All was fine and dandy till I tried to connect to it using the W32 MySQL Administrator tool. Now if I try and execute a script against it I get "DBI connect failed : Access

Passing parameter to mysql script

2005-05-17 Thread weetat
Hi all , I need to pass paramter to mysql script , for example , my script , INSERT INTO SYSTEM_PARAMETER_TABLE (branch_code,param_name,station_id,param_value) VALUES(?,?,?,?) Anybody have any ideas how to do that ? Thanks - weetat -- MySQL General Mailing List For list archives:

Re: Opteron HOWTO - #mysql Freenode

2005-05-17 Thread Kevin Burton
Richard Dale wrote: Over the last week I added in lots of comments pasted in from various places. I'd appreciate those running with Opteron and MySQL to have a close look at the WIKI and make any amendments/suggestions. http://hashmysql.org/index.php?title=Opteron_HOWTO My Opteron server will be h

Re: Export from Access

2005-05-17 Thread Alvaro Cobo
You can try a freeware utility you can find at: http://www.bullzip.com//products.php (I have tried it and works quite well) Additionally you could use DBDesigner (www.fabforce.com) and make a reverse engineer of you database and export it to a Sql file. Hope this help you. Best regards, Alvaro

Re: Convert subquery

2005-05-17 Thread Jan Pieter Kunst
2005/5/17, Kristen G. Thorson <[EMAIL PROTECTED]>: > I actually had something similar to this at one point, but I never got it > working. Your query returned 148 rows, which I can tell you right away > can't be right since there are only 130 items in `page`. I believe the > problem is that it do

RE: Opteron HOWTO - #mysql Freenode

2005-05-17 Thread Richard Dale
Over the last week I added in lots of comments pasted in from various places. I'd appreciate those running with Opteron and MySQL to have a close look at the WIKI and make any amendments/suggestions. http://hashmysql.org/index.php?title=Opteron_HOWTO My Opteron server will be here shortly and I'

varchar(10) to decimal

2005-05-17 Thread Jerry Swanson
I need to change format from varchar(10) to decimal. When I alter the table the data is trimmed. What I'm doing wrrong? TH -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysql client update

2005-05-17 Thread David Logan
Philip Denno wrote: I'm no database expert, so I may be wrong but I do not think this functionality exists. Usually this type of notification is handled at the application level. That is build an application layer on top of the database which handles all reads and writes to the database. This layer

RE: mysql client update

2005-05-17 Thread mfatene
Hi, logbin can help you to track transactions and then write your notification code. trigger in mysql 5.x will help you a lot (v5 in still in beta state now). Mathias Selon Philip Denno <[EMAIL PROTECTED]>: > I'm no database expert, so I may be wrong but I do not think this > functionality exis

Re: Database Table Date Assistance

2005-05-17 Thread mfatene
Hi Scott, I show you timestamp usage, but there is also datetime and date. you can read detailled infos at : http://dev.mysql.com/doc/mysql/en/datetime.html mysql> create table items(itemRef varchar(10), dat timestamp default current_timestamp); Query OK, 0 rows affected (0.20 sec) mysql> mysql>

RE: mysql client update

2005-05-17 Thread Philip Denno
I'm no database expert, so I may be wrong but I do not think this functionality exists. Usually this type of notification is handled at the application level. That is build an application layer on top of the database which handles all reads and writes to the database. This layer would also keep tra

Database Table Date Assistance

2005-05-17 Thread Scott Purcell
Hello, I would like to do the following: I am creating a site where people can add items to a cart. In order to keep items for [X] amount of days, I would like to create a database table in mysql to hold a 'itemRef' and a 'Date'. Then in a relationship table I can hold the 'itemRef' and 'items'

Re: Convert subquery

2005-05-17 Thread Kristen G. Thorson
I actually had something similar to this at one point, but I never got it working. Your query returned 148 rows, which I can tell you right away can't be right since there are only 130 items in `page`. I believe the problem is that it doesn't take into account that a page may be a child page

Re: Convert subquery

2005-05-17 Thread Kristen G. Thorson
Shawn, Thanks so much, this is exactly what I was looking for. I was having trouble getting the condition (page_links.page_id=6) in the right place. I had gotten as far as SELECT page.page_id, page_keyword FROM page LEFT JOIN page_links ON page.page_id=page_links.child_id WHERE page.page_id<>6

Re: Convert subquery

2005-05-17 Thread Jan Pieter Kunst
2005/5/17, Kristen G. Thorson <[EMAIL PROTECTED]>: > I am moving some code that was developed against MySQL 4.1 to a server > with 3.23, and I have one query that uses a subquery. I'm having a bear > of a time wrapping my mind around how to convert this. The original > query is this: > > SELECT

Re: Convert subquery

2005-05-17 Thread SGreen
"Kristen G. Thorson" <[EMAIL PROTECTED]> wrote on 05/17/2005 02:37:12 PM: > I am moving some code that was developed against MySQL 4.1 to a server > with 3.23, and I have one query that uses a subquery. I'm having a bear > of a time wrapping my mind around how to convert this. The original

RE: Is there a way

2005-05-17 Thread Berman, Mikhail
Atle, Thank you for your help Mikhail Berman Ives Inc (508)476-7007 ext.27 [EMAIL PROTECTED] -Original Message- From: Atle Veka [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 17, 2005 1:16 PM To: Berman, Mikhail Cc: mysql@lists.mysql.com Subject: Re: Is there a way SELECT ... INTO OUTF

Convert subquery

2005-05-17 Thread Kristen G. Thorson
I am moving some code that was developed against MySQL 4.1 to a server with 3.23, and I have one query that uses a subquery. I'm having a bear of a time wrapping my mind around how to convert this. The original query is this: SELECT page.page_id, page.page_keyword FROM page WHERE page.page_id

mysql client update

2005-05-17 Thread Eric White
Hi, Where should I look to find information about having clients notified when a table/record is updated? I have a situation where multiple clients will each have an open database connection, and I would like for them to be notified when the database is modified by a member of the group. Somethi

Re: Export from Access

2005-05-17 Thread Josh Trutwin
On Tue, 17 May 2005 17:17:31 +0100 "S.D.Price" <[EMAIL PROTECTED]> wrote: > Hi, > can anyone explain how I would export a database created in Access > to MySQL using PHPMyAdmin - I can't seem to import the data as csv > or txt. Acess should allow exporting to CSV. Otherwise you can skip phpMyAdm

Re: Is there a way

2005-05-17 Thread Atle Veka
SELECT ... INTO OUTFILE 'filename' export_options': http://dev.mysql.com/doc/mysql/en/select.html The 'export_options' are the same as this syntax: http://dev.mysql.com/doc/mysql/en/load-data.html That may work for you. Atle - Flying Crocodile Inc, Unix Systems Administrator On Tue, 17 May 200

RE: How to set trabnsaction isoloation in my.ini file

2005-05-17 Thread Adam Lipscombe
>> It may not be. Do you specify this file when you start the server on >> the command line? If you don't then you need to move my.ini to the >>windows directory: You are quite right. When I moved the my.ini file to c:\windows it worked. I assumed that it would work 'cos the mySQL installer c

RE: why does this query work??!!! - THANKS!!!

2005-05-17 Thread nngau
Thanks everyone!! It was just a typo and everything was updated :( That's okay, I got my Admin guy to restore backup files. I'll just Have to get in the habit of using commit and rollback. -Original Message- From: Peter Brawley [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 17, 2005 10:1

Re: How to set trabnsaction isoloation in my.ini file

2005-05-17 Thread gerald_clark
Adam Lipscombe wrote: I have MySql 4.1.12 installed on an XP box in C:\mysql. I have the settings below in my C;\MySql\my.ini file: I have the transaction-isolation set to READ-COMMITTED but the server seems to ignore this. When the server starts up the tx_isolation as reported by mysqladmin extend

Re: How to set trabnsaction isoloation in my.ini file

2005-05-17 Thread Kristen G. Thorson
Adam Lipscombe wrote: I have MySql 4.1.12 installed on an XP box in C:\mysql. I have the settings below in my C;\MySql\my.ini file: I have the transaction-isolation set to READ-COMMITTED but the server seems to ignore this. When the server starts up the tx_isolation as reported by mysqladmin extend

Export from Access

2005-05-17 Thread S.D.Price
Hi, can anyone explain how I would export a database created in Access to MySQL using PHPMyAdmin - I can't seem to import the data as csv or txt. Thanks Steven

Re: why does this query work??!!!

2005-05-17 Thread Peter Brawley
NNGau, It works because 'where invoiceid-12217' is true for every invoice except invoice 12217. To undo it, assuming your server is running a binary log, back up the table in its current state to a safe place, restore the most recent backup of the table, then run mysqlbinlog for that database (

How to set trabnsaction isoloation in my.ini file

2005-05-17 Thread Adam Lipscombe
I have MySql 4.1.12 installed on an XP box in C:\mysql. I have the settings below in my C;\MySql\my.ini file: I have the transaction-isolation set to READ-COMMITTED but the server seems to ignore this. When the server starts up the tx_isolation as reported by mysqladmin extended-status is REPEATA

Re: why does this query work??!!!

2005-05-17 Thread Michael Stassen
[EMAIL PROTECTED] wrote: Help! I did this query and it updated everything! update customer_order_history set customerID="123 456 789 0123" where invoiceid-12217; WHERE expects an integer (and will convert other types to an integer). 0 is false, null is null, everything else is true. Hence, "WHERE

Re: mysql database problems

2005-05-17 Thread Kristen G. Thorson
Are your php scripts by any chance called phpWebSite? If so, you might find more help here: http://www.phpwsforums.com/ What you're getting is almost definitely a PHP script catching some kind of error trying to connect to the database server. You should have a file called configure.php or so

Re: A question of joining...

2005-05-17 Thread Critters
Thankyou, That worked a treat! Thankyou so very much -- David Scott - Original Message - From: "Michael Stassen" <[EMAIL PROTECTED]> To: "Critters" <[EMAIL PROTECTED]> Cc: Sent: Tuesday, May 17, 2005 5:01 PM Subject: Re: A question of joining... Critters wrote: Hi, I am having problems

Re: why does this query work??!!!

2005-05-17 Thread mfatene
Hi, your query updates all the records where invoiceid != 12217 That's the same than : update customer_order_history set customerID="123 456 789 0123" where invoiceid != 12217; because invoiceid-12217 !=0. It's so true. have you a backup if the command is old (no flashback query in mysql) ? Mat

Re: A question of joining...

2005-05-17 Thread Michael Stassen
Critters wrote: Hi, I am having problems with the JOIN function. MESSAGES memberID_1, memberID_2, Message MEMBERS id, name I can only manage to replace the "memberID_1" in MESSAGES with the "name" in MEMBERS, I can not replace both memberID_1 and memberID_2 with "name". Please can someone tell me

A question of joining...

2005-05-17 Thread Critters
Hi, I am having problems with the JOIN function. MESSAGES memberID_1, memberID_2, Message MEMBERS id, name I can only manage to replace the "memberID_1" in MESSAGES with the "name" in MEMBERS, I can not replace both memberID_1 and memberID_2 with "name". Please can someone tell me what I shoul

why does this query work??!!!

2005-05-17 Thread nngau
Help! I did this query and it updated everything! update customer_order_history set customerID="123 456 789 0123" where invoiceid-12217; I typed a '-' rather than an '='. I haven't did a commit or a rollback saving point. Is there any other way To undo this update?? Thanks. -- MySQL Gener

re: using OR seems faster than using IN

2005-05-17 Thread James Black
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a query where I am fetching, in my test 68, rows. Using OR was faster by about 1.5 times, than the same query using IN. Should this be expected, using mysql 5.0.4, on Solaris 8, java 1.5. SELECT name, id FROM table WHERE idx=? OR idx=? OR idx

Re: Memory Management

2005-05-17 Thread mos
Dan, Have you tried LOAD INDEX INTO CACHE? See http://dev.mysql.com/doc/mysql/en/load-index.html Mike At 09:06 AM 5/17/2005, Dan Salzer wrote: So I don't think this is a mysql issue, but I wanted to bounce it off the group anyways and see if anyone had seen similar behavior. I'm running

Re: Improving the performance of joins

2005-05-17 Thread Rod Heyd
On 5/17/05, Jigal van Hemert <[EMAIL PROTECTED]> wrote: > From: "Rod Heyd" > > Tables Version_(1-5) > > > > -- > > > ID |PRODUCT_ID |DATA1 |DATA2 |DATA3 |.|DATA_N | > > -

Memory Management

2005-05-17 Thread Dan Salzer
So I don't think this is a mysql issue, but I wanted to bounce it off the group anyways and see if anyone had seen similar behavior. I'm running MySQL 4.1.10 on a Dell Poweredge 1850 with 2 EM64T Xeons and 2GB of memory running Redhat Enterprise 3 ES. I've been trying to address some slowness i

Error

2005-05-17 Thread tfr
The message contains Unicode characters and has been sent as a binary attachment. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Is there a way

2005-05-17 Thread Berman, Mikhail
Hello everyone, I am looking for a way to dump a number of tables from mysql Ver 14.7 Distrib 4.1.9, for sun-solaris2.8 (sparc) into tabulated (csv) files with tables's column names being on the top of each data column, something like: IDColumn Name 1Column Name 2 1

RE: Need help in running MySqli (extension) in PHP script

2005-05-17 Thread Jay Blanchard
[snip] I read the instalation document particulary but I didn't understand it. They told "--with-mysql [=dir] configuration option" where it is found or where I should type that please give details so that mysql will works And on thing I want to know is I want MYSQLI (extenstion of MYSQL ) in php n

Re: Improving the performance of joins

2005-05-17 Thread Brent Baisley
You should have a compound index in all your tables on ID+PRODUCT_ID, since that is what you are joining on. Ideally, you should also have an index on the DATA column that you will be using in the WHERE clause. But your structure does really lend itself to this. Going forward, you may think

Re: Numbering rows

2005-05-17 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, Mauricio Pellegrini <[EMAIL PROTECTED]> writes: > Wow, that's simply magic!!! > You couldn't imagine how many diferent things I've tried > to solve this problem.. > And when I thought it was impossible ...your solution worked > just fine at once! > God bless expe

alter table - better with MyISAM or InnoDB

2005-05-17 Thread Chris Faulkner
Hi I have a table with about 20m rows. It is a MyISAM table. I do a alter table disable keys before loading with "LOAD DATA". Re-creating the primary key after import takes a long time. I have increased the myISAM sort buffer to 75MB and the Key buffer is 100MB. Is there anything else I can do t

Re: QUERY (TOP)

2005-05-17 Thread Seena Blace
Shawan, Here you go. mysql> select * from spam_stats -> where rank <=10 ; +-+-+--+---+---+---+ | report_date | report_sender_domain_id | rank | processed | spam | suspected | +-+-+--+---

Re: mysqlxml

2005-05-17 Thread mel list_php
Thank you very much, it worked fine!!! I just had a problem with aclocal which was version 1.4-p6, but by updating the automake to 1.7 everything was ok (in case of somebody trying to install and having the same problem). Could someone explain me what's the difference between adding an UDF, a n

RE: Need help in running MySqli (extension) in PHP script

2005-05-17 Thread Jay Blanchard
[snip] in it, it gives fatal error " undefined function Mysqli_connect() on line no etc.,, " in browser. IS that correct, can I use "Mysqli" functions in this because I am using Mysql 5.04 (beta) version in PHP documentation it was told that those who are using Mysql 4.0 or higher can use Mysqli

Need help in running MySqli (extension) in PHP script

2005-05-17 Thread madderla sreedhar
hi, I use php 5.0,Mysql 5.04 ,IIS 5.0 ,IE in windows2000 NT os and still got errors in running php script with Mysqli functions. when I execute the Php script with Mysql functions in it, it gives fatal error " undefined function Mysqli_connect() on line no etc.,, " in browser. IS that correct

Re: Need help in running MySql in PHP script

2005-05-17 Thread Jigal van Hemert
> Iam using php 5.0, IIS 5.0, Mysql 5.04 ,win2000 NT > and IE as web browser and executed the php > script,but got a fatal error describing that > undefined fuction mysql_connect() in the file and > not getting the desired output. This is not a MySQL problem/issue. The error undefined function ind

Re: Improving the performance of joins

2005-05-17 Thread Jigal van Hemert
From: "Rod Heyd" > Tables Version_(1-5) > > -- > ID |PRODUCT_ID |DATA1 |DATA2 |DATA3 |.|DATA_N | > --

Re: Need help in running MySql in PHP script

2005-05-17 Thread Michael Genereux
Are you getting a MySQL error? On 5/17/05, madderla sreedhar <[EMAIL PROTECTED]> wrote: > > Hi, > > Iam using php 5.0, IIS 5.0, Mysql 5.04 ,win2000 NT > and IE as web browser and executed the php > script,but got a fatal error describing that > undefined fuction mysql_connect() in the file and >

Need help in running MySql in PHP script

2005-05-17 Thread madderla sreedhar
Hi, Iam using php 5.0, IIS 5.0, Mysql 5.04 ,win2000 NT and IE as web browser and executed the php script,but got a fatal error describing that undefined fuction mysql_connect() in the file and not getting the desired output. I had uncommented the php.ini file the entry named 'extension=php_mysql.