Re: Correct way to start new .MYD & .MYI files

2009-09-25 Thread Eugene Mah
TRUNCATE? http://dev.mysql.com/doc/refman/5.0/en/truncate.html DELETE? http://dev.mysql.com/doc/refman/5.0/en/delete.html eugene - Eugene Mah, M.Sc., DABR euge...@ix.netcom.com Medical Physicist/Misplaced

Re: PHP-MYSQL Question

2009-04-07 Thread Eugene Kosov
I suppose the problem is that table1.table1_id and table2.table1_id are of different types. The first one is INT UNSIGNED and the second is just INT. abdulazeez alugo wrote: Table1 is as below: CREATE TABLE table1(table1_id INT UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY(tabl

Re: PHP-MYSQL Question

2009-04-07 Thread Eugene Kosov
# perror 150 MySQL error code 150: Foreign key constraint is incorrectly formed What does table1 look like? abdulazeez alugo wrote: Yeah I used the mysql_error and it returned Can't create table '.\website\table2.frm' (errno: 150). So what does that say? Date: Tue, 7 Apr 2009 17:38:

Re: PHP-MYSQL Question

2009-04-07 Thread Eugene Kosov
Perhaps you don't have permissions to create tables? It would have been much clearer if your script was like this: $result=mysql_query($your_create_table_statement); if($result){ print"Successful";} else {print "Unsuccessful: ".mysql_error()} abdulazeez alugo wrote: Hi guys, Please can anyo

Re: Include SQL files

2009-04-01 Thread Eugene Kosov
What about source? use foobar; source some/dir/file1.sql; source some/dir/file2.sql; ... Though, your solution is much simplier. Michael Dykman wrote: No include is possible, but this is done pretty routinely: cat *.sql | mysql ... - michael dykman On Wed, Apr 1, 2009 at 10:19 AM, Jør

Re: about the username and hostname

2007-06-28 Thread Eugene Mah
Check the properties of your shortcut to see what user name is specified in the command options Eugene Weiqi Wang wrote: > Dear everyone: > > I start mySQL by a shotcut in windowsXP so that I don't have to input my > username, just password is required. That brings in a prob

Re: [inbox] Re: Breaking Up Tables

2007-03-01 Thread Eugene Mah
you don't, just have someone at your host provider who does do it. Eugene -- ----- Eugene Mah, M.Sc., DABR [EMAIL PROTECTED] Medical Physicist/Misplaced Canuck[EMAIL PROTECTED] Department of Radiology

Re: rand()

2006-07-07 Thread Eugene Kosov
I think you meant ORDER BY `registers`.. Jay Blanchard пишет: [snip] I´ve got a page where a ought to get 20 registers in ramdom order but i want to display it in an alphabetical order. Someone knows if there is a way to get that 20 random registers in alphabetical order? [/snip] SORT BY `

Re: query slow

2006-06-21 Thread Eugene Kosov
T * FROM `sav00_sava0400_dbf` WHERE `emissao` BETWEEN '1999-12-01 00:00:00' AND '2000-12-31 23:59:59'; -- BR, Eugene Kosov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: query slow

2006-06-21 Thread Eugene Kosov
Jay Pipes wrote: SELECT * FROM `sav00_sava0400_dbf` emissao BETWEEN '2000-01-01' AND '2000-12-31' UNION ALL SELECT * FROM `sav00_sava0400_dbf` emissao BETWEEN '1999-12-01' AND '1999-12-31' Why not: SELECT * FROM `sav00_sava0400_dbf` emissao BETWEEN '1999-12-01' AND '2000-12-31' ?? ;) -

Re: Index on MERGE table

2006-06-21 Thread Eugene Kosov
Oops! I think I've missed it... Thanks a lot! :) C.R.Vegelin пишет: Hi Eugene, I suppose you have read: http://dev.mysql.com/doc/refman/5.0/en/merge-table-problems.html Especially the paragraph starting with: The order of indexes in the MERGE table and its underlying tables should be the

Index on MERGE table

2006-06-21 Thread Eugene Kosov
omthing strange. Index cardinality is 81 while table contains over than 12 millions of different values. I've tried recreating indecies but this didn't help. I couldn't find anything relevant in documentation. How should I create index on MERGE table? Thanks in advance! -- Re

Re: How to backup and restore

2006-06-09 Thread Eugene Kosov
mysqldump --verbose --add_drop-table --all-databases > backup_06082006.sql or mysql --add_drop-table < backup_06082006.sql or maybe mysql < --add_drop-table backup_06082006.sql mysqldump --opt... This will add DROP TABLE .. IF EXISTS to a dump. -- MySQL General Mailing List For list

Re: How to backup and restore

2006-06-09 Thread Eugene Kosov
Ben Burford wrote: Hello, Do I need to delete the table 'Indian'?? Try --add_drop-table option man mysqldump -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Hung up query.

2006-06-08 Thread Eugene Kosov
led" but the table is still locked. What can be a reason for this behavior? Is it a known bug? I couldn't find corresponding bugreport at bugs.mysql.com. Thanks in advance! -- BR, Eugene Kosov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Query performance.

2006-06-07 Thread Eugene Kosov
Thanks a lot!! :D You were right. There was a bug. Upgrading to mysql 4.1.20 solved my problem. Daniel da Veiga wrote: Check http://bugs.mysql.com/bug.php?id=12915 -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAI

Query performance.

2006-06-06 Thread Eugene Kosov
Try number of CPU's*2 for thread_concurrency thread_concurrency = 4 ... -- BR, Eugene Kosov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Need guidance with perfomance improvement...

2006-05-24 Thread Eugene Kosov
1/4 of what it should have been. I started running an OPTIMIZE TABLE command every few hours, took a couple of seconds each time, and performance stayed good. Thanks for advice. I think I should I give this a try.. :) Eugene Kosov wrote: Hi, list! I have a little table (about 0.5 milloin records

Need guidance with perfomance improvement...

2006-05-22 Thread Eugene Kosov
Hi, list! I have a little table (about 0.5 milloin records) which is kind of queue. My perl script takes records from it one by one and does somes actions. Here's my table structure: mysql> desc queue; +--+-+--+-+---+---

Re: totalizing of Rows please help!!SQL Dump

2006-04-24 Thread Eugene Kosov
7;2/4/2007', '123000', '234', '2', '232', '435', '23', '', '345', '23', '', '345', '23', ''); INSERT INTO `orders` VALUES ('1232006', 'Sciouscenter', '124323wgwr', '

Re: totalizing of Rows please help!!

2006-04-24 Thread Eugene Kosov
Hi, Brian! First of all I think next time you should better attach your database structure. It'll be much easier to understand your problem if you will... Maybe you're asking for something like this: SELECT project_name, elecremain, controlremain, otherremain, elecremain + controlremain + ot

Re: mysql server

2006-03-28 Thread Eugene Kosov
Good day! Can you be more concrete? I believe nobody in this list can read your thoughts. What tells mysql? What do you see in logs? prathima rao wrote: i have a hp server . i have installed mysql 4 in that when ever i shut down the system and start again the mysql server does not start it sa

Re: Converting password to old format.

2006-03-24 Thread Eugene Kosov
oreover, do you have a problem with new password format? Eugene Kosov wrote: Hi, everyone! I have transfer user's database and grants from one mysql server (4.1.15) to an older one (4.0.26). I don't know user's password and have only it's hash. How can I convert hashed pass

Converting password to old format.

2006-03-23 Thread Eugene Kosov
omething similar to OLD_PASSWORD(), but with 4.1's hashed password as a parameter? Any links, man references, etc. are welcome! Thanks in advance! -- Regards, Eugene Kosov. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Count two kinds of related records?

2005-08-05 Thread Eugene Kosov
nk query below should help you. SELECT accounts.name, COUNT(properties.property_id) AS totalcount, SUM(IF(status='Active' AND 'approval='Active', 1, 0)) FROM accounts LEFT JOIN properties USING(account_id) GROUP BY accounts.account_id; Regard

Re: Creating new username & password

2005-08-04 Thread Eugene Kosov
'password'; Replace USAGE in query above with priveleges set you want for your new account. See http://dev.mysql.com/doc/mysql/en/grant.html for more info. Regards, Eugene Kosov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Field size error

2005-08-03 Thread Eugene Kosov
Dwi Putra L wrote: But not two days ago, suddenly the software can not work properly. Everytime the software run, there is message which mentioning something about field size error. The same messages, about field size error, still occured, although I have set

Re: mysql command line execution

2005-08-01 Thread Eugene Kosov
Ehrwin Mina wrote: That isn't true. If you make a ps, you will see something like "mysql -p x ". As I said before, you can use something like: "mysql -uUser --password=`cat password_file` db" FYI, Nuno is correct you cannot see the password in the 'ps' and my script

Re: Query - question

2005-08-01 Thread Eugene Kosov
) Refer to http://dev.mysql.com/doc/mysql/en/union.html for more details. Regards, Eugene Kosov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: How to sort results with german umlauts in a UTF8 MySQL Database

2005-07-25 Thread Eugene Kosov
Christian Wollmann wrote: By the way: Perhaps you could tell me how I can determine/change the encoding of the database? SHOW CREATE DATABASE db_name; ALTER DATABASE db_name [[DEFAULT] CHARACTER SET charset_name] [[DEFAULT] COLLATE collation_name]; http://dev.mysql.com/doc/mysql/en/c

Re: storing php pages with sql queries in a mysql database

2005-07-25 Thread Eugene Kosov
Gregory Machin wrote: Hi all. I'm writing a php script to store the contents of html and php pages in a data base, it works well until there are mysql queries in the pages source then give errors such as this one. Query failed: You have an error in your SQL syntax near 'temp' how do stop mysq

Re: MySQL charset

2005-07-22 Thread Eugene Kosov
Privet! Yogesh wrote: HI, I have a client that runs php+mysql application and it has a problem with "ORDER BY some_varchar_field" sql expression. The DB is in russian cp1251 encoding and "order by" doesnt produce an alphabetically ordered result. our mysql server default charset is latin1 a

Re: use of indexes

2005-07-22 Thread Eugene Kosov
Eugene Kosov wrote: Chris Faulkner wrote: HI I have a query like this select * from table where ( ( field1 = 'VALUE1' and field2 like 'VALUE2%' ) OR ( field3 = 'VALUE1' and field2 like 'VALUE2%' ) ) I have created two composite indexes - one on fi

Re: use of indexes

2005-07-22 Thread Eugene Kosov
Chris Faulkner wrote: HI I have a query like this select * from table where ( ( field1 = 'VALUE1' and field2 like 'VALUE2%' ) OR ( field3 = 'VALUE1' and field2 like 'VALUE2%' ) ) I have created two composite indexes - one on field1 + field2 and one on field3 + field2. Explain on the SQL

Re: Socket Problem

2005-07-20 Thread Eugene Kosov
[EMAIL PROTECTED] wrote: Hi, i try to use mysql with stunnel (http://stunnel.org) in order to encrypt my mysql connections. I know that mysql-4.x supports SSL but i can't compile it on my windows box. When i try to use stunnel on my windows box, it works, i just have to use this command : m

Re: mysql prob.

2005-07-20 Thread Eugene Kosov
Manish wrote: Hi, Platform is red hat linux-9.. my hardware is 2.8GHz pentium-4 with 512 GB ram.. softwares are Bugzilla 2.18 ,mysql-standard-4.0.15-pc-linu­x-i686, httpd-2.0.40-21 now problem is when i m trying to take back up of mysql by passing the command.. /usr/local/mysql/b

Re: VARCHAR changes to INT - UNION

2005-07-15 Thread Eugene Kosov
Dennis Duggen wrote: Hi list Im new to the list so i hope it's the right place for my post. For a projekt i am combining different tables. Everything seems to work, but in some rows the "Kode" field VARCHAR(10) ends up as INT. I will try to explain with an example. Table1 46 47 48 67 Table2 B

Problem with mysqldump between two servers

2004-08-31 Thread Eugene van den Hurk
could there be some configuration in between the versions of Linux on the two servers. The old server is running red hat 7.3. The new server is running centos Any help would be appreciated. Thanks, Regards, Eugene. -- Eugene van den Hurk Rocket Media 118 Patrick St. Cork.

is it possible?

2003-11-19 Thread Eugene R. Miller
This is kind of a silly question is there an easy way to ... SELECT Status, rating, COUNT(*) FROM song GROUP BY pldupldqd, rating ORDER BY Status, rating DESC This gives me all the information I need ... What I would like to do is something... like SELECT rating, count(WHERE pldupldqd = 0), co

RE: query crushes server

2002-11-11 Thread Eugene Bendersky
query would produce is tiny. Eugene -Original Message- From: Arthur Fuller [mailto:afuller@;etsys.com] Sent: Monday, November 11, 2002 7:54 AM To: Eugene Bendersky Cc: [EMAIL PROTECTED] Subject: RE: query crushes server A Cartesian product will generate the number of rows in Table 1 times

RE: query crushes server

2002-11-11 Thread Eugene Bendersky
its not waiting, its crushing. -Original Message- From: gerald_clark [mailto:gerald_clark@;suppliersystems.com] Sent: Monday, November 11, 2002 6:07 AM To: Eugene Bendersky Cc: [EMAIL PROTECTED] Subject: Re: query crushes server You have no where clause. The cartesian product you are

query crushes server

2002-11-08 Thread Eugene Bendersky
May be this was reported already. I have windows 2000 using mysql version 4.0.3-beta-nt When I ran a query like select distinct a.* from tasks a, gnrlasoc b; mysqld-nt.exe crashes. I know this query makes no sense but it should not crush server Eugene Bendersky

FW: newbie - Old Samp_db question

2002-05-23 Thread Eugene McQuade
Regards Gene -Original Message- From: Victoria Reznichenko [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 5:50 AM To: [EMAIL PROTECTED] Subject: Re: newbie - Old Samp_db question Eugene, Wednesday, May 22, 2002, 8:59:57 PM, you wrote: EM> I searched the archive found the issue but

newbie - Old Samp_db question

2002-05-22 Thread Eugene McQuade
I searched the archive found the issue but not the answer. Configuration: I'm running win2000, mysql is loaded and I can manually create databases and tables per "MySQL" manual (via Amazon). I've loaded samp_db in sub directory of mysql. Problem: mysql> samp_db < create_president.sql; Result:

Re: MySQL to Excel ?

2002-05-01 Thread Eugene Mah
t data into Excel files. Otherwise I would go the ODBC route and make Excel connect to the DB via macros or VBA. Eugene -- ----- Eugene Mah, M.Sc., DABR [EMAIL PROTECTED] Medical Physicist/Misplaced Canuck

Re: Difficulties between OS versions

2002-04-10 Thread Eugene Mah
doing something wrong. If I'm not mistaken, binaries are only available for Solaris 2.7 and up. If you want to run on Solaris 2.6, you'll need to compile from the sources. I've gone through several versions running on a Sparc 20 under Solaris 2.6

MySQL unix vs WinXP case sensitivity

2002-04-03 Thread Eugene Mah
led is from the download page at mysql.com. anybody else run into this issue? Eugene -- ----- Eugene Mah, M.Sc., DABR [EMAIL PROTECTED] Medical Physicist/Misplaced Canuck[EMAIL PROTECTED] Department of Radiology

Re: 127.0.0.1 problem

2001-11-09 Thread Eugene Mah
I would check the grant tables to see if host 127.0.0.1 has permission to access the DB. Even though they are the same thing, I don't know if mysqld treats them as the same thing. Eugene At 03:15 AM 11/09/2001 -0800, you wrote: >Hello, > >Are there any obvious reasons why > &g

database documentation

2001-09-25 Thread Eugene Mah
Many thanks Eugene -- To put my contact info into your Palm device, click here: http://signature.coola.com/?[EMAIL PROTECTED] Personal Signature Coolet - Eugene Mah, M.Sc., DABR [EMAIL PROTECTED] Medical Physicist/Misp

Sending data from Excel to MySQL

2001-09-11 Thread Eugene Mah
s a little more and go beyond the copy/paste thing. I've looked at MyODBC a little bit, but not enough to see how I can use it for this task (one of the things on my to do list). I expect I'll end up learning some VB for doing this. Many Thanks Eugene -- To put my contact info into you

Help Urgent!!!

2001-08-30 Thread Eugene
error 127 from table handler. There is an error too if I format my PC and reinstall all over again. So, can I know what is going on? Can you me and give me instruction to overcome this problem. Thanks. >From Eugene

error: 'Can't create a new thread (errno 11)

2001-08-22 Thread Eugene Reuter
it tell me: ERROR 1135: Can't create a new thread (errno 11). If you are not out of available memory, you can consult the manual for a possible OS-dependent bug I looked into maual and couldn't find anything. Please

Re: Bug report

2001-05-15 Thread Eugene Karpov
ng system and > MySQL versions. > > Regards, > > Heikki > http://www.innobase.fi > > At 06:00 PM 5/15/01 +0400, you wrote: > >Max file size is 300M, not 2G. Isn't it? > > > >B.R. Eugene > > > >On Tue, 15 May 2001, Heikki Tuuri wrote: > > >

Re: Bug report

2001-05-15 Thread Eugene Karpov
Max file size is 300M, not 2G. Isn't it? B.R. Eugene On Tue, 15 May 2001, Heikki Tuuri wrote: > Eugene, > > does your operating system support over 2 GB files? > Which MySQL version you are running? What is the opeerating system? > > I guess the problem is that the OS

Bug report

2001-05-15 Thread Eugene Karpov
produce a readable backtrace that may help in finding out why mysqld died. B.R. Eugene - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive)

mysql+bdb

2001-04-23 Thread Eugene Reuter
I installed mysql 3.23.36 binary version for OpenServer 5.0.5. According to MySql documentation this version supposes to support BDB-tables. But if I try to create Type=BDB tables I get MyIsam. If I look into my variables I see have_bdb = No. How can I get it work? Eugene

Bug with 'show databases|tables'

2001-03-07 Thread Eugene Lineitzev
>Description: I have found the error. On Linux RedHat 7.0 with kernel 2.2.17-14 all 'show' commands doesn't works. They display empty tables. >How-To-Repeat: Install RedHat 7.0 on Intel platform, apply all updates from RedHat (up to March, 01 2001), compile kernel 2