Re: AES Encryption

2005-06-16 Thread Jigal van Hemert
From: "Martin" > For my tests I used the blob field (not varchar or anything else), but > compared to your tests, I didn't use MySQL 5.0.6 (as it's still a beta) but > I used MySQL 4.1. Maybe that's part of the problem, although I'm not sure. FWIW: I tested it on 4.0.23-standard, with the same re

Re: Subquery error

2005-06-16 Thread David Griffiths
Short-answer: use "IN" instead of "=" Long-answer: Your query is kind of weird. I think you want to use "IN": SELECT memberid, fullname FROM members WHERE memberid IN (select distinct memberid FROM familymembers) The equals implies an exact match between the top-level, and the sub-query, b

Subquery error

2005-06-16 Thread David Kagiri
i get an error when i run the query below though SQLyog. SELECT memberid,fullname FROM members WHERE memberid = (select distinct memberid FROM familymembers) the error is Error Code : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MyS

RE: AMD64 Linux MySQL Error 1041 Out of Memory

2005-06-16 Thread Richard Dale
> So we have recently started stress testing Mysql on an Opteron dual CPU > machine running Ubuntu Hoary. We are using the 64-bit GCC > 4.0.24-standard binary from mysql. The stress test that I'm currently > running on it involves inserting a large database (from a mysqldump) > ... Which l

Mysqlhotcopy.

2005-06-16 Thread Miguel Burgos O.
I install the last version of mysql and got this $mysqlhotcopy test File '/usr/share/mysql/charsets/?.conf' not found (Errcode: 2) What happened ? Best regards, Miguel --- E-mail: [EMAIL PROTECTED] . ADVERTENCIA: La informacion contenida en

Re: Newbie mysql.sock question

2005-06-16 Thread Danny Stolle
Paul Mitchell wrote: On Tue, 14 Jun 2005, Danny Stolle wrote: if i start my mysqld it creates a mysql.sock because of an option in my.cnf: socket="/tmp/mysql.sock" when i `mysqladmin -u root shutdown` the database, the mysql.sock is removed. does your system errors when starting mysqld? He

Re: Newbie mysql.sock question

2005-06-16 Thread Santino
You need to run the script that creates MySql tables (user, hosts, ...) mysql_install_db in scripts dir. Santino At 15:20 -0400 16-06-2005, Paul Mitchell wrote: On Tue, 14 Jun 2005, Danny Stolle wrote: if i start my mysqld it creates a mysql.sock because of an option in my.cnf: socket="/tmp/m

Re: Primary keys in tables [restarted]

2005-06-16 Thread SGreen
"Peter Normann" <[EMAIL PROTECTED]> wrote on 06/16/2005 02:15:34 PM: > Sorry guys, > I just learned that ctrl-return would send the email you are composing, so I > got cut off short, so let me try again :-/ > It appears to be usual practice from what I can see in this list to use a > primary k

Re: Newbie mysql.sock question

2005-06-16 Thread Paul Mitchell
On Thu, 16 Jun 2005, Spenser wrote: Try it with an absolute file path instead of a relative one. For instance, /usr/local/mysql/bin/mysqld_safe --user=mysql --datadir = /usr/local/mysql/tmp same old... /usr/local/mysql/bin/mysqld_safe --user=mysql --datadir=/usr/local/mysql/tmp & cat ../

Re: Newbie mysql.sock question

2005-06-16 Thread Spenser
Try it with an absolute file path instead of a relative one. For instance, /usr/local/mysql/bin/mysqld_safe --user=mysql --datadir = /usr/local/mysql/tmp On Thu, 2005-06-16 at 15:20 -0400, Paul Mitchell wrote: > > ./mysqld_safe --user=mysql --datadir=/usr/local/mysql/tmp -- MySQL General Ma

Re: Newbie mysql.sock question

2005-06-16 Thread Paul Mitchell
On Tue, 14 Jun 2005, Danny Stolle wrote: if i start my mysqld it creates a mysql.sock because of an option in my.cnf: socket="/tmp/mysql.sock" when i `mysqladmin -u root shutdown` the database, the mysql.sock is removed. does your system errors when starting mysqld? Hello Danny, Thanks for t

Re: Backing up live MySQL Databases

2005-06-16 Thread Kieran Kelleher
We never dump the data just shutdown the slave, copy the data directory and restart the slave. This practice is trustworthy probably only where the servers are running on the same platform, mysql server version and operating system. -Kieran ___

Re:Backing up live MySQL Databases

2005-06-16 Thread mfatene
hi, there will not be a lot of paying backup tools if just copying files is OK. You can't because active transactions change some files checkpoint, then you copied files are not at the same checkpoint state, and you can't use the copy for a restore. The only way is to lock all the tables if you wa

RE: alter only an enum label

2005-06-16 Thread Gordon Bruce
The ALTER TABLE is going to "copy" the entire table when it executes the ALTER TABLE so it will take some time. Depends on your server, diaks, table type etc.. One alternative might be to do a SELECT a, enumcolumn INTO OUTFILE 'x' FROM tablename; TRUNCATE tablename; ALTER TABLE tablename CHAN

Re: Need help with a query..

2005-06-16 Thread Frank Bax
At 03:09 AM 6/16/05, Cory Robin wrote: I need to speed up a search, big time. I have an application that searches for records on a date field. If it doesn't find an exact date match, it keeps searching adjacent days until it finds a certain amount of records. The problem now is, I'm using my

Re: alter only an enum label

2005-06-16 Thread Gabriel B.
hum... clever. i liked that solution. but do have experience on how long it will take with milions of records? all records havin only a int(11) as unique key and the enum field.. suposing now i have enum("a", "b") only, and did a "ALTER TABLE tablename CHANGE columnname columnname ENUM('a','b','c

Primary keys in tables [restarted]

2005-06-16 Thread Peter Normann
Sorry guys, I just learned that ctrl-return would send the email you are composing, so I got cut off short, so let me try again :-/ It appears to be usual practice from what I can see in this list to use a primary key that actually contain somewhat meaningful data. I have always used primary ke

Primary keys in tables

2005-06-16 Thread Peter Normann
Hi everybody, It appears to be usual practice from what I can see in this list to use a primary key that actually contain somewhat meaningful data. I have always used primary keys solely for one purpose only: To identify a table row uniquely, using autoincremental integers. Actually, if I were to

RE: alter only an enum label

2005-06-16 Thread Gordon Bruce
If you have "c" values in the table currently you can just do an ALTER TABLE tablename CHANGE columnname columnname ENUM('a','b','c','x') DEFAULT "a" NOT NULL then UPDATE tablename SET columname = 'x' WHERE columname = 'c' Then ALTER TABLE tablename CHANGE columnname columnname ENUM('a','b',

Re:Backing up live MySQL Databases

2005-06-16 Thread Ashley M. Kirchner
With all this discussion going on about the best way to backup MySQL data, I have a question: Is there anything wrong with simply copying the db files when you're backing up, as opposed to doing a full shutdown of the server (regardless of whether it's a master or slave) and then doing a

RE: Backing up live MySQL Databases

2005-06-16 Thread John McCaskey
If you use InnoDB then the InnoDB Hot-backup tool works very well. It's not free, but its inexpensive and if you are in an environment where you need to do large fast hot backups you will probably find it well worthwhile. We normally do backups as follows: Production Server A <-> Production

RE: Backing up live MySQL Databases

2005-06-16 Thread Dana Diederich
A very nice way to do 'virtually' live MySQL database backups is to replicate to a dedicated or semi-dedicated 'backup' server. That server will have the current data in it at all times. Then you can backup that server at will, either by doing an on-line dump, or even shutting the server down

alter only an enum label

2005-06-16 Thread Gabriel B.
If i have a table with about 800M records. and one of the fields is a enum("a", "b", "c") and i want to change it to enum("a","b","x") will it fall into some optimization and be instant? and what if previously i've never used the "c" value? isn't there any optimization for that? ...leaving "blank

RE: Backing up live MySQL Databases

2005-06-16 Thread Jeff McKeon
Yes, that's the way we currently do it but we were looking for more options. Jeff > -Original Message- > From: Kieran Kelleher [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 16, 2005 11:26 AM > To: Jeff McKeon > Cc: mysql@lists.mysql.com > Subject: Re: Backing up live MySQL Databases >

Re: Backing up live MySQL Databases

2005-06-16 Thread Glennie Vignarajah
Le Thursday 16 June 2005 17:06, Jeff McKeon("Jeff McKeon" <[EMAIL PROTECTED]>) disait: Hello, > Anyone using any third party products like Arkeia that enable you > to do a live backup of MySQL database? I've tried Arkeia few months ago. The online backup and restore of MySql databases worked

MySQL/InnoDB-5.0.7 has been released

2005-06-16 Thread Heikki Tuuri
Hi! InnoDB is the MySQL table type that supports foreign key constraints, transactions, two-phase commit in XA, row-level locking, non-locking consistent read (MVCC), all four SQL-1992 isolation levels of transactions, multiple tablespaces, asynchronous unbuffered disk I/O on Windows, and a n

Re: Primary Key Question

2005-06-16 Thread Peter Brawley
Hendro, In SQL an empty string is not null. PB Hendro Suryawan wrote: Hi all, I have table with primary key on field PO,BrgId, NOSP but when i try insert several new reccord with field NOSP = '', mysql will accept the new reccord without complaint error. Is this normal behavior? My perception

Re: help joining tables in a query

2005-06-16 Thread Danny Stolle
James M. Gonzalez wrote: -Original Message- From: Danny Stolle [mailto:[EMAIL PROTECTED] Sent: 15 June 2005 21:09 To: James M. Gonzalez Subject: Re: help joining tables in a query James M. Gonzalez wrote: Greetings, I'm facing a difficult query at the moment. I have tried many d

Re: Primary Key Question

2005-06-16 Thread SGreen
Hendro Suryawan <[EMAIL PROTECTED]> wrote on 06/16/2005 06:53:31 PM: > Hi all, > I have table with primary key on field PO,BrgId, NOSP but when i try > insert several new reccord with field NOSP = '', mysql will accept the > new reccord without complaint error. > Is this normal behavior? As long

RE: AES Encryption

2005-06-16 Thread Martin
Hi, Thanks for your reply, For my tests I used the blob field (not varchar or anything else), but compared to your tests, I didn't use MySQL 5.0.6 (as it's still a beta) but I used MySQL 4.1. Maybe that's part of the problem, although I'm not sure. So it's really quite strange, but so far I solv

Re: Problems using Binary Install on Mac OS 10.4.1

2005-06-16 Thread Gleb Paharenko
Hello. It is a fresh, brand new :) bug: http://bugs.mysql.com/bug.php?id=11297 Elton Hughes wrote: > Hello All, > > I am trying to install MySQL 4.1.12 on my Powermac G4. My OS is 10.4.1. > I downloaded the binary distribution from the MySQL website. I > uncompressed it an

AMD64 Linux MySQL Error 1041 Out of Memory

2005-06-16 Thread Joe Kislo
So we have recently started stress testing Mysql on an Opteron dual CPU machine running Ubuntu Hoary. We are using the 64-bit GCC 4.0.24-standard binary from mysql. The stress test that I'm currently running on it involves inserting a large database (from a mysqldump) from three separate

Fw: Need help with a query..

2005-06-16 Thread SGreen
(forwarded to the list - I am not the OP) - Forwarded by Shawn Green/Unimin on 06/16/2005 11:45 AM - James Black <[EMAIL PROTECTED]> wrote on 06/16/2005 11:44:36 AM: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > [EMAIL PROTECTED] wrote: > > [EMAIL PROTECTED] wrote on 06/16/2005 11:

Re: Need help with a query..

2005-06-16 Thread Alec . Cawley
[EMAIL PROTECTED] wrote on 16/06/2005 16:29:46: > > > [EMAIL PROTECTED] wrote on 06/16/2005 11:30:10 AM: > > > Cory Robin <[EMAIL PROTECTED]> wrote on 16/06/2005 08:09:22: > > > > I need to speed up a search, big time. > > > > > > I have an application that searches for records on a date field

Re: No result at all (expected 0)

2005-06-16 Thread SGreen
And exactly what you expect "nothing" to look like? If "nothing" (no rows) is the correct response to your query, how would you like it formatted? Without knowing exactly how you are executing this query, it's impossible to know how to tell you how to detect an empty result set (assuming you a

RE: No result at all (expected 0)

2005-06-16 Thread Jay Blanchard
[snip] I have a little question. I have two tables which are used for saving private messages. If a user has NO messages, the result doesn't return _anything_. I expected to get "0 results" but this really confuses me. [/snip] If there is no data you should get an 'Empty set (0.00)' message or s

RE: No result at all (expected 0)

2005-06-16 Thread J.R. Bullington
You got exactly what the db found. An "Empty Set". You wouldn't get '0' results because there aren't '0', it's EMPTY. It's not NULL either since NULL is a form of non-existence. Why were you expecting '0'? J.R. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent:

Re: Need help with a query..

2005-06-16 Thread SGreen
[EMAIL PROTECTED] wrote on 06/16/2005 11:30:10 AM: > Cory Robin <[EMAIL PROTECTED]> wrote on 16/06/2005 08:09:22: > > I need to speed up a search, big time. > > > > I have an application that searches for records on a date field. If it > > doesn't find an exact date match, it keeps searching ad

No result at all (expected 0)

2005-06-16 Thread Marco Döhring
Hi everyone! I have a little question. I have two tables which are used for saving private messages. If a user has NO messages, the result doesn't return _anything_. I expected to get "0 results" but this really confuses me. Query: SELECT upn.id, upn.fid, upn.tid, upn.subject, upn.message, up

Re: Need help with a query..

2005-06-16 Thread Alec . Cawley
Cory Robin <[EMAIL PROTECTED]> wrote on 16/06/2005 08:09:22: > I need to speed up a search, big time. > > I have an application that searches for records on a date field. If it > doesn't find an exact date match, it keeps searching adjacent days until it > finds a certain amount of records. >

Re: AES Encryption

2005-06-16 Thread Gleb Paharenko
Hello. > Also, while testing I experienced that inputting something like more > the 255 characters with AES_Encrypt, the AES_Decrypt function doesn't > give > back more then 255 characters. Is this correct, or am I doing something > wrong here? AES_ENCRYPT wo

Re: Backing up live MySQL Databases

2005-06-16 Thread Kieran Kelleher
I have a master-slave replication setup. A scheduled backup script on the slave runs automatically at regular intervals. The script slave does this: shutdown the mysql server on the slave backup the mysql data directory to backup media restart the mysql server on the slave. Using a setup like t

How can I make permanent timeout variable settings???

2005-06-16 Thread raja
Hallo I have some problems loading data from Master. I am using the circular replication procedure for example a->b->c->a. Since I ran out of disk in my main server, my other servers started reporting duplicate entries later. I thought going it from scratch to take the complete data from the M

Primary Key Question

2005-06-16 Thread Hendro Suryawan
Hi all, I have table with primary key on field PO,BrgId, NOSP but when i try insert several new reccord with field NOSP = '', mysql will accept the new reccord without complaint error. Is this normal behavior? My perception if i have primary key on the three field the three field must be not empty

Backing up live MySQL Databases

2005-06-16 Thread Jeff McKeon
Anyone using any third party products like Arkeia that enable you to do a live backup of MySQL database? I'm searching for a backup solution for our new data center and would like to here what other people are using for MySQL. Thanks, Jeff -- MySQL General Mailing List For list archives: http:

Need help with a query..

2005-06-16 Thread Cory Robin
I need to speed up a search, big time. I have an application that searches for records on a date field. If it doesn't find an exact date match, it keeps searching adjacent days until it finds a certain amount of records. The problem now is, I'm using my application to loop through and run multip

Re: problem

2005-06-16 Thread SGreen
"nicolas ghosn" <[EMAIL PROTECTED]> wrote on 06/15/2005 03:14:39 AM: > Dear mysql supports, > I want to change the font color for database mysql , for example I want to > insert data with red color > when I select this data the font color is the default black.It's possible to > change the font

Re: Table full

2005-06-16 Thread mfatene
You have also 3000 * 7 millions columns to left joins to x,y,.. others tables. And you use myisam. this will certainly be a big update problem. I suggest you to transform your query into : 1. select using the left joins to see first the number of rows to be updated 2. according to this number th