Re: How to reload my.cnf?

2005-11-16 Thread Leo
Are you trying to restart the master server, or 'reseting' the master? my master server always shutdown daily, and the slave happily catch up the next day, it's been goin for some 6 months with heavy traffic it's a different story if you want to reset the master, you should capture the master and

Asteriks in password field

2005-11-16 Thread W Roothman
Dear All, When I register a new user in my (php4.1 & MySQL 4) application, using: $insertSQL = "INSERT INTO tblusers (uname, usurname, uusername, upassword) VALUES ('$name', '$surname', '$username', password('$password'))"; an asteriks (*) is posted with the encrypted password to the password fi

Re: How to reload my.cnf?

2005-11-16 Thread Tedy Aulia
Hi Gleb, I understand that the replication shouldn't break, but restarting master means losing the updates made to the master database, which we can't afford to do that. TA > >Hello. > >Why are you afraid of shutting down the server for a while? >Is it so critical? If yes, send more detailed de

Joins - where clause, booking system

2005-11-16 Thread gavin
Hello, I'm running mysql 4.0.12 I have a bookings database in which I'm having problems pulling out the available accomodation. Tables are: Accomodation - accomid (primary key), town, address, contactnumber etc student_accom - studentaccomid (primary key), accomid, studentid My query is as follo

Re: Mysql docs

2005-11-16 Thread Rhino
Actually, many people use the term "subselect" where you prefer "subquery"; I've heard "subselect" quite a bit in 20+ years of working with relational databases. Not the MySQL people perhaps but it is a reasonable term to use in a search Rhino - Original Message - From: "Jasper Bryan

mysqld crash with archive engine > 2gb

2005-11-16 Thread Marc Rossi
I am trying to populate a table using the archive engine that I estimate will take up ~ 8gb of disk space when finished. Right now I am crashing the server as soon as my file gets to the 2gb mark. OS is linux and there are other files on the same filesystem that are 30gb+ so I know the fs has sup

Usage of quick keyword

2005-11-16 Thread Mathieu Bruneau
Hello everybody, I use a table for caching, the table is quite simple there is "id" field which is a md5 on some attributes of an object, a timestamp field and a text field for storing the data. | id char(32) | timestamp | data (text) | We clean the table every 2 mins for data older that 10

Re: Mysql docs

2005-11-16 Thread Jasper Bryant-Greene
Scott Haneda wrote: Google this: subselect site:dev.mysql.com And I get mostly non English stuff, limiting to english and I get a whopping 37 pages, none of which seem to help me much. Try googling for "subquery", considering that's what they're called... Jasper -- MySQL General Mailing List

LIMIT in subquery or GROUP_CONCAT

2005-11-16 Thread Peter Brodersen
Hi, (mysql server 5.0.15 running under linux) I suppose this is a classic task. I just hope MySQL 5.0 is able to give the right result. I would like to select top three from different parts in the same table, e.g. for the following data set: id,value 1,10 1,20 1,30 1,40 1,50 2,10 2,20 2,30 2,40

Mysql docs

2005-11-16 Thread Scott Haneda
Hello, with the release of 5, I seem to have all dead links to my old docs for mysql 4. The way they keep changing the urls is a little maddedning :-) Can someone step me through this, how, on the mysql site, do I find out about subselects, and more specifically, what version of mysql they were a

Re: Aborting slipped keys

2005-11-16 Thread Paul DuBois
At 18:33 -0800 11/16/05, Scott Haneda wrote: Sometimes I paste in something in mysql CLI and it just does this: "> WHERE products.ship_status != 1 "> ); "> /c "> \c "> \c; "> I tried all the \c commands and nothing will get me out of it, I can ^c and it will get me o

Re: Aborting slipped keys

2005-11-16 Thread Kyle
On 11/16/05, Scott Haneda <[EMAIL PROTECTED]> wrote: > Sometimes I paste in something in mysql CLI and it just does this: >"> WHERE products.ship_status != 1 > "> ); > "> /c > "> \c > "> \c; > "> > > I tried all the \c commands and nothing will get me out of it, I can

Re: Aborting slipped keys

2005-11-16 Thread Jim Winstead
On Wed, Nov 16, 2005 at 06:33:40PM -0800, Scott Haneda wrote: > Sometimes I paste in something in mysql CLI and it just does this: >"> WHERE products.ship_status != 1 > "> ); > "> /c > "> \c > "> \c; > "> > > I tried all the \c commands and nothing will get me out of

Aborting slipped keys

2005-11-16 Thread Scott Haneda
Sometimes I paste in something in mysql CLI and it just does this: "> WHERE products.ship_status != 1 "> ); "> /c "> \c "> \c; "> I tried all the \c commands and nothing will get me out of it, I can ^c and it will get me out, but then I have to login again, which is a

Re: timestamp

2005-11-16 Thread Ehrwin Mina
Ryan, Try to use this date functions. * DATE_ADD(date,INTERVAL expr type) , DATE_SUB(date,INTERVAL expr type) These functions perform date arithmetic. date is a DATETIME or DATE value specifying the starting date. expr is an expression specifying the interval value to be added or subtracte

Re: RE: Backward-compatible authentication in v5.0?

2005-11-16 Thread cnelson
> Hi! It is a common error, have a look here: > http://dev.mysql.com/doc/refman/5.0/en/old-client.html > > I have had the same error. Tbanks. I found that -- eventually -- in the manual. It took several searches to find it but it seems to work now, not only for my Tcl application but for MySQL

RE: Backward-compatible authentication in v5.0?

2005-11-16 Thread ISC Edwin Cruz
Hi! It is a common error, have a look here: http://dev.mysql.com/doc/refman/5.0/en/old-client.html I have had the same error. ++ | ISC Edwin Cruz García | | IT Manager | | Transportes Medel Rogero SA de CV

Backward-compatible authentication in v5.0?

2005-11-16 Thread cnelson
I'm trying to upgrade MySQL from v4.x to v5.0 under an existing Tcl-based application that uses MySQLTcl and I'm getting: mysqlconnect/db server: Client does not support authentication protocol requested by server; consider upgrading MySQL client Is there something I can do to MySQL v5 server

A few questions about triggers in MySQL 5

2005-11-16 Thread Jenny Chen
Hi, Does the current latest MySQL 5.0 support: 1. column based triggers 2. trigger restriction 3. multiple triggers of same type of the table 4. triggers reference another table And any information on in which release they will be supported? Thanks, Jenny

How to search the manual

2005-11-16 Thread sheeri kritzer
Hi folks, You might be amazed getting answers that link right to the MySQL documentation. The documentation is fabulous, but of course we cannot memorize it! One tip I picked up in a MySQL course (which was worth the $$ of the course itself), which is IMMENSELY useful, is the following: If you

Re: MySQL server has gone away

2005-11-16 Thread SGreen
"Kraer, Joseph" <[EMAIL PROTECTED]> wrote on 11/16/2005 04:17:17 PM: > First let me say that I'm a newbie and that I've seen a few instances of > this error in the list, but I haven't seen my case. > > I'm running WAMP5, v. 1.4.4. I'm trying to restore an Eventum v. 1.4 > backup done with mysqld

RE: Database IDs

2005-11-16 Thread Logan, David (SST - Adelaide)
Hi Again Bjorn, Further to my thoughts below, I had a look at the source (5.0.13 - sql/sql_insert.cc) and the last_insert_id is set for each iteration of the INSERT loop. There would be three inserts for the three values that you proposed INSERTing and the last_insert_id seems to be set each ti

MySQL server has gone away

2005-11-16 Thread Kraer, Joseph
First let me say that I'm a newbie and that I've seen a few instances of this error in the list, but I haven't seen my case. I'm running WAMP5, v. 1.4.4. I'm trying to restore an Eventum v. 1.4 backup done with mysqldump in a LAMP machine. The restoration process invariably stops at line 517. I

Re: Can't connect to MySQL v5.0.15 on 'Windows XP

2005-11-16 Thread Gleb Paharenko
Hello. > If I try to run mysqlshow, I see: > > C:\Documents and Settings\Chris>mysqlshow sql > mysqlshow: Access denied for user 'ODBC'@'localhost' (using password: NO) ODBC is default username that is used on Windows. Create a new user account and use it to connect to the MySQL se

MySQL Administrator crash on Mac OS X

2005-11-16 Thread Yves Goergen
Hi, I just downloaded MySQL Administrator 1.1.0 for Mac OS X. When I run it, I can see the connection dialogue, when I click to connect, it crashes. MySQL Query Browser, also latest version, just installed, too, works perfectly with the same (and only) connection. Crash report from OS X is attached

RE: Database IDs

2005-11-16 Thread Logan, David (SST - Adelaide)
Morning Bjorn, I would have throught the insert would translate as three separate inserts to the internals of MySQL. As this is really a convenient shorthand to allow us to bunch up a lot of inserts. Regards David Logan Database Administrator HP Managed Services 148 Frome Street, Adelaide 50

RE: Database IDs

2005-11-16 Thread Björn Persson
Logan, David (SST - Adelaide): > It looks like the LAST_INSERT_ID() is returning the id of the last > auto_increment INSERT, this seems to be in line with the documentation. > > > > The ID that was generated is maintained in the server on a per-connection > basis. This means that the value which t

Re: Problem of VB with MySQL

2005-11-16 Thread JamesDR
vishal wrote: i am sending the files. all details are in the source code what you have to do is to create a database name test2 and have to set the password of the server. the code will automatically create a table name test2 with two double fields and it will reture the error while adding the

Problem of VB with MySQL

2005-11-16 Thread vishal
i am sending the files. all details are in the source code what you have to do is to create a database name test2 and have to set the password of the server. the code will automatically create a table name test2 with two double fields and it will reture the error while adding the record through r

Re: Grant confusion

2005-11-16 Thread Tripp Bishop
Michael, Thanks for the detailed response. First off, it's a network connection, but I forgot to show the -h in my example. Sorry for the lack of clarity there. The error message that I'm getting is: ERROR 1045: Access denied for user 'myuser'@'host.mydomain.com' (using password: YES) So then,

Recall: What does MIN_ROWS table option do?

2005-11-16 Thread David Lombardi
David Lombardi would like to recall the message, "What does MIN_ROWS table option do?".

mysqld doesn't starts with Fatal Error

2005-11-16 Thread Jörg Nowak
Hello list, I compiled I special mysql-5-1-2 with the following configuration: ./configure --with-ndbcluster --prefix=/mycomputer/mysql-5.1.2-binary --with-partition --with-row-based-replication --without-innodb --without-berkeley-db --enable-thread-safe-client --enable-shared Afterwards

RE: Remove all non-alpha characters?

2005-11-16 Thread Fan, Wellington
Gleb, Thanks; using REPLACE(), as I understand it, would require me to list ALL non-alpha characters, and assuming just ASCII characters, approx (127 - 52) nested calls to REPLACE()... select REPLACE( ...REPLACE( REPLACE( REPLACE( text,'~',''),

Re: MySQL Innodb Crash on 2 concurrent select

2005-11-16 Thread Ady Wicaksono
Dear All It happens after these condition InnoDB: ## Diagnostic info printed to the standard error stream InnoDB: Warning: a long semaphore wait: --Thread 1103972416 has waited at ../include/btr0btr.ic line 28 for 369.00 seconds the semaphore: S-lock on RW-latch at 0x88cdd6b8 created in fi

Re: Complex select across multiple tables

2005-11-16 Thread SGreen
Scott Haneda <[EMAIL PROTECTED]> wrote on 11/16/2005 05:44:05 AM: > Some of these tables are rather large, I would put the schema in there, but > I think it just adds to the mess. > > Tables > `users` field id is auto inc pk > `orders` field id is auto inc pk > `products` field id is auto inc pk

Re: Upgrade from MySQL 3.23.x to MySQL 4.1.x [InnoDB question]

2005-11-16 Thread Gleb Paharenko
Hello. MySQL AB recommends a gradual upgrade. See: http://dev.mysql.com/doc/refman/4.1/en/upgrade.html http://dev.mysql.com/doc/refman/5.0/en/upgrade.html Cedric Gavage wrote: > Hi all, > > A little question... > > Can I upgrade directly a server with MySQL 3.23.x version whi

Re: UNIX timestamp with microseconds

2005-11-16 Thread Gleb Paharenko
Hello. According to the manual "Unix timestamp (seconds since '1970-01-01 00:00:00'", so, in my opinion UNIX_TIMESTAMP is not designed for obtaining microseconds. Have a look here, if you haven't done this yet: http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html Ryan

Re: How to reload my.cnf?

2005-11-16 Thread Gleb Paharenko
Hello. Why are you afraid of shutting down the server for a while? Is it so critical? If yes, send more detailed description of your situation. Replication shouldn't break. From: http://dev.mysql.com/doc/refman/5.0/en/replication-features.html "It is safe to shut down a master server and

Re: Database IDs

2005-11-16 Thread Gleb Paharenko
Hello. Really, in my opinion, it contradicts with the manual. Please, send me the bug id in case you'll report the bug. Björn Persson wrote: > Gleb Paharenko: > >>Could you provide a repeatable test case for you problem? > > > I don't know how repeatable this is. As I said I have

MySQL Innodb Crash on 2 concurrent select

2005-11-16 Thread Ady Wicaksono
I have MySQL with about 12 billion rows when i try to create 2 process, each select count(*) on the same table after a long time about 30 minutes it crashed :( ANy information? Log file : 051116 20:27:22InnoDB: Assertion failure in thread 2366216768 in file srv0srv.c line 1873 InnoDB: W

Can't connect to MySQL v5.0.15 on 'Windows XP

2005-11-16 Thread cnelson
I've just installed MySQL v5.0.15 on my 'Windows XP system and most ways I want to connect to it fail. I don't see what I'm doing wrong. I've searched the manual, the web, and the forums without seeing anything that clearly addressed my problem. Help, please! If I navigate through Programs / MySQL

Upgrade from MySQL 3.23.x to MySQL 4.1.x [InnoDB question]

2005-11-16 Thread Cedric Gavage
Hi all, A little question... Can I upgrade directly a server with MySQL 3.23.x version which has some MyISAM databases (no problem with it) and some InnoDB databases towards MySQL 4.1.x? Or have I to do a dump and restore instead of re-use databases? wdyt? -- Cedric Gavage - [EMAIL PROTECTED]

Re: How to use sysmbol link to link to a database

2005-11-16 Thread Gleb Paharenko
Hello. Have a look here: http://dev.mysql.com/doc/refman/5.0/en/symbolic-links.html >I am new to Mysql, and we are using Mysql as the backend database in >out >data server, and I wonder if how I create a symbol link under the Mysql >data >directory to link to a database under another di

from bad into worse

2005-11-16 Thread schlubediwup
Hi listers, [EMAIL PROTECTED]:~> rpm -qa |grep -i mysql MySQL-server-4.1.14-0 MySQL-shared-4.1.14-0 MySQL-client-4.1.14-0 [EMAIL PROTECTED]:~> [EMAIL PROTECTED]:~> uname -a Linux myhost 2.6.5-7.108-default #1 Wed Aug 25 13:34:40 UTC 2004 i686 i686 i386 GNU/Linux [EMAIL PROTECTED]:~> on 12.

Re: timestamp

2005-11-16 Thread Petr Chardin
Hi Ryan, On Wed, 2005-11-16 at 19:16 +0800, Ryan Escarez wrote: > is it possible to get the the given (unix)timestamp in milliseconds > since the epoch? No, it is not possible. However this is on the roadmap. This is also reported as Bug #8523: http://bugs.mysql.com/bug.php?id=8523 Regards, Pe

timestamp

2005-11-16 Thread Ryan Escarez
is it possible to get the the given (unix)timestamp in milliseconds since the epoch? tia! -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Complex select across multiple tables

2005-11-16 Thread Scott Haneda
Some of these tables are rather large, I would put the schema in there, but I think it just adds to the mess. Tables `users` field id is auto inc pk `orders` field id is auto inc pk `products` field id is auto inc pk `order_items` field order_id is the key for hooking up order_items to orders, al

UNIX timestamp with microseconds

2005-11-16 Thread Ryan Escarez
is possible to get UNIX timestamp with microseconds when i try the following it just give 10 digits mysql>SELECT unix_timestamp('20051114095641'+ INTERVAL 0 HOUR) as ts; output : 1131933401 <--- 10 digits any tips? tia! -- MySQL General Mailing List For list archives: http://lists.mysql.com/