Re: difference command

2004-11-24 Thread James Weisensee
 Do you know what is differnet between command
 mysql_connect and
 mysql_pconnect
 
 Thankx
 

This is a PHP question.  This should've been the first
place you looked:
http://us2.php.net/manual/en/index.php


mysql_connect
http://us2.php.net/manual/en/function.mysql-connect.php

mysql_pconnect
http://us2.php.net/manual/en/function.mysql-pconnect.php


HTH,
James





-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Lost Connection To Mysql....................................Roime

2004-11-24 Thread roime puniran

i have mysql server located in in machine that used Red Hat 8.0
and my mysql server version was 3.23.58. I am trying to connect
using my machine..And currently i used Red Hat Fedora...But when
i am trying to connect to mysql server i got this error
message.

ERROR 2013: Lost connection to MySQL server during query

And i am also trying to killall my mysqld and start the mysql
server through mysql kernel

/usr/libexec/mysql -Sg --user=root

After that, when i tried to reconnect it, it's hang up
!.nothing to be done and i need to start my machine back to
run mysql...

Can anyone help me?...Do u guys have any idea?...

Thanks !
-
Free POP3 Email from www.Gawab.com 
Sign up NOW and get your account @gawab.com!!

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



RE: Data loss problem with mysql

2004-11-24 Thread ravi.ramachandra

Andy,

Thanks a lot for the response.  We are using Linux OS.   Is there any
configuration parameter that enables more frequent flush or a parameter
that enables direct write to disk and any idea about performance
implications.

Thanks once again,
Ravi


-Original Message-
From: andy thomas [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 1:28 PM
To: Ravi T Ramachandra (WT01 - EMBEDDED  PRODUCT ENGINEERING SOLUTIONS)
Cc: [EMAIL PROTECTED]
Subject: Re: Data loss problem with mysql


On Wed, 24 Nov 2004 [EMAIL PROTECTED] wrote:


 Dear all,

 We are running mysql 4.0.17 on linux environment.  Our database
resides
 on external disk connected via FC cables.   We recently noticed a loss
 of data in the following scenario.

 Inserted a row in a table in a separate transaction by a java
 application, queried a row in the table in a separate transaction by a

 java application and was successful.
 Then the FC cable connecting to external db disks was pulled and after
 sometime put it back
 Now the inserted row is missing in the database.

 From our logs, we have a query log that shows the inserted statement
 prior to FC cable disconnection.  After cable pull, we have taken
 database dump that reveals the missing row that was inserted prior to
 FC cable disconnection.

 If somebody would have accidentally deleted, then we can expect the
 delete statement in the query log.  But there is no delete statement
 in the query log.

 Can anybody help.

What operating system(s) are you using for the system you are making the
query from and also for the external database server?

mysqld makes as much use of database server system memory as possible
and a lot the live database will be cached in memory. If you insert a
row and then read it back, it will be in the table but the table is in
memory and hasn't necessarily been written to physical disk. Also, UNIX
and Unix-like systems normally work with disk buffers so that when a
file is written to, it is the disk buffer that is written to, not the
physical disk itself. The disk buffers are then flushed out to disk
every 30 seconds.

It could be that the FC cable was unplugged during the buffer flush,
causing the operating system to abort the flush and not update the file
on the physical disk.

Andy




Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: order by question

2004-11-24 Thread Harald Fuchs
In article [EMAIL PROTECTED],
dan orlic [EMAIL PROTECTED] writes:

 i have an question about ordering a set of records...
 ab   c d
 -
 1Tax 120001.33
 1Tax 115002.5
 1Tax 110003.25
 1Tax 10 4.5


 But I want the records to return as such:
 ascending by (c) with the zero being the last record:
 like below:

 1Tax 110003.25
 1Tax 115002.5
 1Tax 12000 1.33
 1Tax 10  4.5

 any suggestions?

ORDER BY c = 0, c


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: I need to understand INNO better.

2004-11-24 Thread Heikki Tuuri
Titus, Jeff,
- Original Message - 
From: Jeff Smelser [EMAIL PROTECTED]
Newsgroups: mailing.database.myodbc
Sent: Tuesday, November 23, 2004 11:24 PM
Subject: Re: I need to understand INNO better.


--nextPart3014813.KeZKZSIgGj
Content-Type: text/plain;
 charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
On Tuesday 23 November 2004 02:12 pm, Titus wrote:
I have converted some tables from MyISAM to INNO
using an ALTER TABLE statement.  It seems to work
fine.  However, when I copy that database to another
directory for purposes of backup, a subsequent 'use'
statement on the backup directory (db) reports that
  Didn't find any fields in table 'tblAssays'
After exploring I get a report that
Can't open file: 'tblAssays.InnoDB' (errno: 1)
the table data is in ibdata files. If you simply cp the .frm file to another 
directory, it does not change the ibdata files. See:
http://dev.mysql.com/doc/mysql/en/InnoDB_troubleshooting_datadict.html

Can anyone shed any light on this problem?  Many
thanks.
Only two ways to make copies of innodb..  mysqlhotcopy (its not free)
mysqlhotcopy is free, but it works only for MyISAM.
See:
http://dev.mysql.com/doc/mysql/en/Backing_up.html
and=20
mysqldump.. This is assuming your not coping the entire db directory 
tree..

Maybe someone else knows of another.
Jeff
Best regards,
Heikki Tuuri
Innobase Oy
Foreign keys, transactions, and row level locking for MySQL
InnoDB Hot Backup - a hot backup tool for InnoDB which also backs up MyISAM 
tables
http://www.innodb.com/order.php

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Reset permissions

2004-11-24 Thread Ian Gibbons
On 23 Nov 2004 at 22:36, Tim Trice wrote:

 How can I reset the permissions on my database?  I have no clue when I did
 it (at least several months ago), haven't used it until today but I cannot
 for the life of me figure out how I can create a new user with all
 permissions.  The only user I have does not have grant or create privileges.
 Am I screwed?

Hi,

Take a look at:

How to Reset the Root Password
http://dev.mysql.com/doc/mysql/en/Resetting_permissions.html

Regards

Ian
-- 


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



upgrade from mysql 3.23 to 4.1

2004-11-24 Thread Hristo Chernev
How to upgrade from 3.23.58 to 4.1.7? Which is the easiest way with minimal
risk and downtime?

Background: Heavy loaded mysql server, only one database but it is huge -
5GB.The database is replicated to another server.Mysql 3.23.58.Linux OS.

Here is the my plan, please correct me if there is a better way or if I am
doing unnecessary actions:

1. Stop the site and mysql servers and backup database.
2. Upgrade mysql versions on the two machines.
3. Compiling apache and php with new mysql 4.1 client lib.
4. Recreate users and rights ( the provided script fix_privilege_table will
not work correctly form 3.23. to 4.1. will it?).
5. Start main mysql server without replication.
6. Rename database to olddb.
7. Create new database named db.
Do one of 8a or 8b:
8a.Dump olddb with mysqldump, then run the result file to fill the new db
(in order to have native 4.1 database ).
8b.Using SQL queries (or phpmyadmin) copy all tables from olddb to new db
(in order to have native 4.1 database ).
9. Assure that all is correct then delete olddb, copy database to the slave
and start mysql servers.
10. Confirm replication is ok, then start the site.

--
Hristo Chernev






-

Work  Travel in USA - Ñòóäåíòñêè áðèãàäè â ÑÀÙ.
Èñêàø ëè äà ñïå÷åëèø $$$? Êàêâî ÷àêàø îùå? Çàïèøè ñå!
Ïîäðîáíîñòè íà àäðåñ: http://www.vega-exchanges.org 


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Client program

2004-11-24 Thread Scott Hamm
What is the best client program that I can use to get connected to MySQL
remotely?  I'm running Windows 2000...

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



VS.NET C++ and MySQL

2004-11-24 Thread Ferhat BINGOL
Hi,

I know this is not the exact topic of the list but I am sure some people
from this list spend some time on it.

I am new to VC++ but getting better indeed. I need help on how to connect to
MySQL server.

I need a connector and an example. It must be free because this is a student
project :)

So far, I have tried http://myweb.hinet.net/home4/s630417/ (Code Lib .NET)
but it only supports 4.1 or above.  I do not want to upgrade and you all
know why.

Here is my box info:
- Microsoft Development Enviroment 2003 version 7.1.3088
- Microsoft.NET Framework 1.1 version 1.1.4322 SP1
- Windows 2000 Professional
- MySQL v4.0.22
- MyODBC 3.51.10 (which is not working very well I do not know why so I
prefer File DSN if ODBC is needed.

If any body point me to a free tool or an example that would be very nice.

Regards...



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Client program

2004-11-24 Thread Ferhat BINGOL
Hi,

I use those 2...

MySQL Control Center
http://www.mysql.com/products/mysqlcc/

PHPMyAdmin
http://www.phpmyadmin.net/home_page/


Cheers...


- Original Message - 
From: Scott Hamm [EMAIL PROTECTED]
To: 'Mysql ' (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 2:38 PM
Subject: Client program


 What is the best client program that I can use to get connected to MySQL
 remotely?  I'm running Windows 2000...

 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]





-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



RE: Client program

2004-11-24 Thread Scott Hamm
Isn't there any text-based program like telnet.exe or putty.exe that allows
me to use similiar to 'cmd'?

-Original Message-
From: Ferhat BINGOL [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 8:47 AM
To: Scott Hamm; 'Mysql ' (E-mail)
Subject: Re: Client program


Hi,

I use those 2...

MySQL Control Center
http://www.mysql.com/products/mysqlcc/

PHPMyAdmin
http://www.phpmyadmin.net/home_page/


Cheers...


- Original Message - 
From: Scott Hamm [EMAIL PROTECTED]
To: 'Mysql ' (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 2:38 PM
Subject: Client program


 What is the best client program that I can use to get connected to MySQL
 remotely?  I'm running Windows 2000...

 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Multiple table count in one sql-query

2004-11-24 Thread Martin Rytz
Hello People
 
I should have the count from 3 tables in one query; something like this:
 
select count(*) from table1 union select count(*) from table2 union select
count(*) from table3 union;
 
The Problem ist, that the query gives 3 results back (the count from table1,
table2 and table3) BUT I should have only one result, the added value from
all 3 tables... 
 
How can I do this within MySQL? Are there variables I could use within the
query? Other possibilities?
 
Thank you for your help!
 
Kind Regards,
Martin Rytz


Re: Client program

2004-11-24 Thread Ferhat BINGOL
http://dev.mysql.com/doc/administrator/en/mysql-administrator-menus-tools-mysql-command-line-client.html

this may cheer you up than...


- Original Message - 
From: Scott Hamm [EMAIL PROTECTED]
To: 'Ferhat BINGOL' [EMAIL PROTECTED]; Scott Hamm
[EMAIL PROTECTED]; 'Mysql ' (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 2:46 PM
Subject: RE: Client program


 Isn't there any text-based program like telnet.exe or putty.exe that
allows
 me to use similiar to 'cmd'?

 -Original Message-
 From: Ferhat BINGOL [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 24, 2004 8:47 AM
 To: Scott Hamm; 'Mysql ' (E-mail)
 Subject: Re: Client program


 Hi,

 I use those 2...

 MySQL Control Center
 http://www.mysql.com/products/mysqlcc/

 PHPMyAdmin
 http://www.phpmyadmin.net/home_page/


 Cheers...


 - Original Message - 
 From: Scott Hamm [EMAIL PROTECTED]
 To: 'Mysql ' (E-mail) [EMAIL PROTECTED]
 Sent: Wednesday, November 24, 2004 2:38 PM
 Subject: Client program


  What is the best client program that I can use to get connected to MySQL
  remotely?  I'm running Windows 2000...
 
  -- 
  MySQL General Mailing List
  For list archives: http://lists.mysql.com/mysql
  To unsubscribe:
 http://lists.mysql.com/[EMAIL PROTECTED]
 
 
 




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



MySQL Founders speak out against software patents

2004-11-24 Thread David Axmark
You may have noticed that Monty  I have spoken out against software
patents regularly. We have actually been fighting them since way before
MySQL! For example David joined the LPF (see lpf.ai.mit.edu) in 89/90.

We believe that software patents will work against software developers
by enabling the largest companies to develop patent monopolies that
stifle innovation. We believe that copyright is the correct way to
protect innovation and preserve programmers rights.  

On Tuesday, Monty issued a statement along with Linus Torvalds (Linux)
and Rasmus Lerdorf (PHP) as part of a campaign conducted by
www.nosoftwarepatents.com. You can read the full statement here:
http://nosoftwarepatents.com/en/m/intro/app0411.html

Hopefully you will also take part in this fight (especially if you live
in any of the European Union states). See the How to Help link to the
left on the nosoftwarepatents.com website.

Monty  David
MySQL Founders



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Client program

2004-11-24 Thread Ferhat BINGOL
just to save your time..

C:root/to/mysql/dir/bin/mysql.exe -h HOST_NAME_HERE -u USERNAME -p

you will be promt for password.

- Original Message - 
From: Scott Hamm [EMAIL PROTECTED]
To: 'Ferhat BINGOL' [EMAIL PROTECTED]; Scott Hamm
[EMAIL PROTECTED]; 'Mysql ' (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 2:46 PM
Subject: RE: Client program


 Isn't there any text-based program like telnet.exe or putty.exe that
allows
 me to use similiar to 'cmd'?



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



The better and more efficient way to store datetime data.

2004-11-24 Thread Jose Antonio
I need to store huge data series using MySQL with InnoDB as storage
engine. The data type of the parameters can be double, float, int,
smallint, mediumint, tinyint  So, I've thought to store them in
the following way:

Table Parameter:
Parameter ID - small int
Parameter Name - varchar(8)
Parameter Description - varchar(16)
Parameter dbType - varchar(10)

Table floatParameter:
Parameter ID - small int
Datetime - datetime or long
Parameter value - float

etc 

for the Datetime field  is it better to use the MySQL built-in
DATETIME type, or is it better to save a long (as milliseconds)?

The required hard-disk storage by a 'datetime' is the same as for a 'long'?
Is there any different in the performance?

The queries I will be doing more often are similar to this one:
SELECT datetime, value FROM floatParameter WHERE datetime BETWEEN
'2004-10-01 00:00:00' and '2004-10-15 00:00:00'

Discussion is open and suggestions are more than welcome.

Jose.

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: VS.NET C++ and MySQL

2004-11-24 Thread Paul Grenyer
Hi

 I am new to VC++ but getting better indeed. I need help on how to connect
to
 MySQL server.

This is a big topic and as you say not really appropriate here. Join this
MSVC list and I'll help you there:

http://peach.ease.lsoft.com/archives/msvc.html


Regards
Paul

Paul Grenyer
email: [EMAIL PROTECTED]
web: http://www.paulgrenyer.co.uk
articles: http://www.paulgrenyer.dyndns.org/articles/

I put my hand upon the lever, said let it rock and let it roll.



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



serious bug in 4.1: doubles failing equality tests

2004-11-24 Thread Aaron J. Mackey
This is MySQL 4.1.5-gamma-max on Darwin Kernel Version 7.6.0 (OS X 
v10.3.6), installed via the Mac OS X installer.

mysql select gid, fbin from fdata where gid = 3557 order by fbin;
+--+--+
| gid  | fbin |
+--+--+
| 3557 |  1000.007086 |
| 3557 | 1.000708 |
| 3557 | 1.000708 |
| 3557 | 1.000708 |
+--+--+
4 rows in set (0.00 sec)
mysql select gid, fbin from fdata where fbin between 1.000708 and 
1.000709;
+--+--+
| gid  | fbin |
+--+--+
| 3442 | 1.000709 |
| 3442 | 1.000709 |
| 3558 | 1.000709 |
| 3558 | 1.000709 |
+--+--+
4 rows in set (0.13 sec)

Note that none of these rows have an fbin of 1.000708, which is the 
fbin of the last three rows from the first result; furthermore, if I 
try to extract those three rows by their fbin value directly:

mysql select gid, fbin from fdata where fbin = 1.000708;
Empty set (0.00 sec)
Yet:
mysql select 1.000708 BETWEEN 1.000708 AND 1.000709;
++
| 1.000708 BETWEEN 1.000708 AND 1.000709 |
++
|  1 |
++
1 row in set (0.00 sec)
The definition of the fdata table is:
CREATE TABLE fdata (
  fid int(11) NOT NULL auto_increment,
  fref varchar(100) NOT NULL default '',
  fstart int(10) unsigned NOT NULL default '0',
  fstop int(10) unsigned NOT NULL default '0',
  fbin double(20,6) NOT NULL default '0.00',
  ftypeid int(11) NOT NULL default '0',
  fscore float default NULL,
  fstrand enum('+','-') default NULL,
  fphase enum('0','1','2') default NULL,
  gid int(11) NOT NULL default '0',
  ftarget_start int(10) unsigned default NULL,
  ftarget_stop int(10) unsigned default NULL,
  PRIMARY KEY  (fid),
  UNIQUE KEY fref (fref,fbin,fstart,fstop,ftypeid,gid),
  KEY ftypeid (ftypeid),
  KEY gid (gid)
) TYPE=MyISAM;
Increasing the precision of fbin from 6 to 8 did not fix the problem; 
upgrading to the latest 4.1.7 did not fix the problem; downgrading to 
4.0.22 did fix the problem.

I'd very much like to upgrade back to 4.1 series, as the improvement to 
filesort seems to greatly affect my application ... I'm quite willing 
to apply a software patch locally to fix the problem.

Thanks,
-Aaron
--
Aaron J. Mackey, Ph.D.
Dept. of Biology, Goddard 212
University of Pennsylvania   email:  [EMAIL PROTECTED]
415 S. University Avenue office: 215-898-1205
Philadelphia, PA  19104-6017 fax:215-746-6697
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


RE: Client program

2004-11-24 Thread SGreen
Is there a reason you aren't using the mysql client that comes with the 
server? I am on a W2K machine and I can connect and interact with every 
MySQL server on our network from it. A useful by-product of setting this 
up is that you can have your own MySQL server on your machine. That has 
been great for me for testing and development purposes.

Shawn Green
Database Administrator
Unimin Corporation - Spruce Pine

Scott Hamm [EMAIL PROTECTED] wrote on 11/24/2004 08:46:25 AM:

 Isn't there any text-based program like telnet.exe or putty.exe that 
allows
 me to use similiar to 'cmd'?
 
 -Original Message-
 From: Ferhat BINGOL [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 24, 2004 8:47 AM
 To: Scott Hamm; 'Mysql ' (E-mail)
 Subject: Re: Client program
 
 
 Hi,
 
 I use those 2...
 
 MySQL Control Center
 http://www.mysql.com/products/mysqlcc/
 
 PHPMyAdmin
 http://www.phpmyadmin.net/home_page/
 
 
 Cheers...
 
 
 - Original Message - 
 From: Scott Hamm [EMAIL PROTECTED]
 To: 'Mysql ' (E-mail) [EMAIL PROTECTED]
 Sent: Wednesday, November 24, 2004 2:38 PM
 Subject: Client program
 
 
  What is the best client program that I can use to get connected to 
MySQL
  remotely?  I'm running Windows 2000...
 
  -- 
  MySQL General Mailing List
  For list archives: http://lists.mysql.com/mysql
  To unsubscribe:
 http://lists.mysql.com/[EMAIL PROTECTED]
 
 
 
 
 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
 


Update Query with special conditions.

2004-11-24 Thread list 123.
Using mySQL 4.0, I would like to know how I can code a query that will change 
the value of Participants.Active from Y to N is for three or more CONSECUTIVE 
sessions they have Attendance.Present = 'No'?

The Attendance Table has Attendance.Session which coresponds to 
Sessions.SessionID and Attendance.Participant coresponds to 
Participants.Part_ID; 

To assist, I have shown you the data of the Sessions and the descriptions of 
Attendance, Participants, Attendance

Thanks
G

mysql describe Participants;
+---+---+--+-+-++
| Field | Type  | Null | Key | Default | Extra  |
+---+---+--+-+-++
| Part_ID   | smallint(10) unsigned |  | PRI | NULL| auto_increment |
| LastName  | varchar(30)   |  | PRI | ||
| FirstName | varchar(30)   |  | PRI | ||
| DOB   | date  | YES  | | NULL||
| Sex   | enum('M','F') |  | | M   ||
| Phone1| varchar(12)   |  | MUL | ||
| Phone2| varchar(12)   | YES  | | NULL||
| Notes | text  |  | | ||
| Facesheet | enum('Have','Need')   |  | | Need||
| Active| set('Y','N')  |  | | Y   ||
+---+---+--+-+-++
10 rows in set (0.00 sec)

mysql describe Attendance;
+-+--+--+-+-++
| Field   | Type | Null | Key | Default | Extra  |
+-+--+--+-+-++
| AttID   | int(4)   |  | PRI | NULL| auto_increment |
| Session | int(2)   |  | MUL | 0   ||
| Participant | int(2)   |  | | 0   ||
| Present | enum('Yes','No') |  | | Yes ||
+-+--+--+-+-++
4 rows in set (0.00 sec)

mysql describe Sessions;
+-+-+--+-+++
| Field   | Type| Null | Key | Default| Extra  |
+-+-+--+-+++
| SessionID   | int(2) unsigned |  | PRI | NULL   | auto_increment |
| SessionDate | date|  | PRI | -00-00 ||
+-+-+--+-+++
2 rows in set (0.03 sec)

mysql select * from Sessions;
+---+-+
| SessionID | SessionDate |
+---+-+
| 1 | 2004-10-30  |
| 2 | 2004-11-06  |
| 3 | 2004-11-13  |
| 4 | 2004-11-20  |
| 5 | 2004-12-04  |
| 6 | 2004-12-11  |
| 7 | 2005-01-08  |
| 8 | -00-00  |
| 9 | 2005-01-29  |
|10 | 2005-02-05  |
|11 | 2005-02-12  |
|12 | 2005-02-26  |
|13 | 2005-03-05  |
|14 | 2005-03-12  |
|15 | 2005-03-19  |
|16 | 2005-04-02  |
|17 | 2005-04-09  |
|18 | 2005-04-16  |
|19 | 2005-04-23  |
|20 | 2005-05-07  |
|21 | 2005-05-14  |
|22 | 2005-05-21  |
+---+-+
22 rows in set (0.05 sec)

+-+
| Tables_in_AHRC  |
+-+
| Attendance  |
| Participants|
| ProgressNotes   |
| Sessions|
| Staff   |
| StaffAttendance |
+-+
6 rows in set (0.00 sec) 








 
   

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Three Questions :

2004-11-24 Thread litlpooh
I have three questions about mysql.

1.
mysql CREATE TABLE board (
- boardid char(6) binary NOT NULL,
- title varchar(128) binary NOT NULL,
- ) ENGINE=MYISAM;
Query OK, 0 rows affected, 0 warning (0.00 sec)

mysql desc board;
+--+--+--+-+-+---+
| Field | Type | Null | Key | Default | Extra |
+--+--+--+-+-+---+
| boardid | varchar(6) | | PRI | | |
| title | varchar(128) | | | | |
+--+--+--+-+-+---+
2 rows in set (0.00 sec)

char type column cannot be with varchar type column.
is there any plan to fix it..?
if there is not..
when do you think it will be fixed?

2.
my second and last question is index descending..
in the mysql document,

An index_col_name specification can end with ASC or DESC.
These keywords are allowed for future extensions
for specifying ascending or descending index value storage.
Currently they are parsed but ignored;
index values are always stored in ascending order

when do you think it will be possible?
what I want from you is just roughly plan.

3.
I want to get 'DATE' typed data which including millisecond
format.
What can I use for this? Which function can be made it possible?

---
Pok Myung Ho
RD Center
DBA TEAM / DBA

Tel : 02-6003-5607
Fax : 02-6003-5402
Mobile : 010-5505-1837

e-mail :
[EMAIL PROTECTED]
Daum messenger :
stickyboy

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Multiple table count in one sql-query

2004-11-24 Thread Rhino

- Original Message - 
From: Martin Rytz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 8:47 AM
Subject: Multiple table count in one sql-query


 Hello People

 I should have the count from 3 tables in one query; something like this:

 select count(*) from table1 union select count(*) from table2 union select
 count(*) from table3 union;

 The Problem ist, that the query gives 3 results back (the count from
table1,
 table2 and table3) BUT I should have only one result, the added value from
 all 3 tables...

 How can I do this within MySQL? Are there variables I could use within the
 query? Other possibilities?

 Thank you for your help!

One approach would be to create a temporary table consisting of one integer
column, then write the results of your query to that table. Here is a script
that demonstrates this technique:

#Create temporary table containing a union of the row counts from each of
severa
create temporary table if not exists temp01
select count(*) as total_rows
from Employee
UNION
select count(*) as total_rows
from emp
UNION
select count(*) as total_rows
from dept;

#Display the contents of the temporary table.
select * from temp01;

#Sum the row counts from the different tables.
select sum(total_rows) from temp01;

#Drop the temporary table.
drop table if exists temp01;

This script works perfectly on my 4.0.15 system.

Rhino


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Three Questions :

2004-11-24 Thread SGreen
RTFL.  THIS HAS BEEN ASKED AND ANSWERED TWICE BEFORE. If you have problems 
with the answers, address the answers. Stop re-posting!!!

1. http://dev.mysql.com/doc/mysql/en/Silent_column_changes.html

2. The physical sequencing of the records on disk is out of the 
administrator's control. 

3. http://dev.mysql.com/doc/mysql/en/Date_and_time_type_overview.html
http://dev.mysql.com/doc/mysql/en/Using_DATE.html

Shawn Green
Database Administrator
Unimin Corporation - Spruce Pine

litlpooh [EMAIL PROTECTED] wrote on 11/24/2004 09:44:22 AM:

 I have three questions about mysql.
 
 1.
 mysql CREATE TABLE board (
 - boardid char(6) binary NOT NULL,
 - title varchar(128) binary NOT NULL,
 - ) ENGINE=MYISAM;
 Query OK, 0 rows affected, 0 warning (0.00 sec)
 
 mysql desc board;
 +--+--+--+-+-+---+
 | Field | Type | Null | Key | Default | Extra |
 +--+--+--+-+-+---+
 | boardid | varchar(6) | | PRI | | |
 | title | varchar(128) | | | | |
 +--+--+--+-+-+---+
 2 rows in set (0.00 sec)
 
 char type column cannot be with varchar type column.
 is there any plan to fix it..?
 if there is not..
 when do you think it will be fixed?
 
 2.
 my second and last question is index descending..
 in the mysql document,
 
 An index_col_name specification can end with ASC or DESC.
 These keywords are allowed for future extensions
 for specifying ascending or descending index value storage.
 Currently they are parsed but ignored;
 index values are always stored in ascending order
 
 when do you think it will be possible?
 what I want from you is just roughly plan.
 
 3.
 I want to get 'DATE' typed data which including millisecond
 format.
 What can I use for this? Which function can be made it possible?
 
 ---
 Pok Myung Ho
 RD Center
 DBA TEAM / DBA
 
 Tel : 02-6003-5607
 Fax : 02-6003-5402
 Mobile : 010-5505-1837
 
 e-mail :
 [EMAIL PROTECTED]
 Daum messenger :
 stickyboy
 
 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
 


Re: I need to understand INNO better.

2004-11-24 Thread Jeff Smelser
On Wednesday 24 November 2004 04:02 am, Heikki Tuuri wrote:

  Only two ways to make copies of innodb..  mysqlhotcopy (its not free)

 mysqlhotcopy is free, but it works only for MyISAM.

 See:
 http://dev.mysql.com/doc/mysql/en/Backing_up.html

Sorry, I meant the hot backup tool for innodb.. ;)

Jeff


pgpv5iABnmP3v.pgp
Description: PGP signature


Re: upgrade from mysql 3.23 to 4.1

2004-11-24 Thread Jeff Smelser
On Wednesday 24 November 2004 07:32 am, Hristo Chernev wrote:
 How to upgrade from 3.23.58 to 4.1.7? Which is the easiest way with minimal
 risk and downtime?

Yeah right.. ;) 

 Background: Heavy loaded mysql server, only one database but it is huge -
 5GB.The database is replicated to another server.Mysql 3.23.58.Linux OS.

 Here is the my plan, please correct me if there is a better way or if I am
 doing unnecessary actions:

 1. Stop the site and mysql servers and backup database.
 2. Upgrade mysql versions on the two machines.
 3. Compiling apache and php with new mysql 4.1 client lib.
 4. Recreate users and rights ( the provided script fix_privilege_table will
 not work correctly form 3.23. to 4.1. will it?).
 5. Start main mysql server without replication.
 6. Rename database to olddb.
 7. Create new database named db.
 Do one of 8a or 8b:
 8a.Dump olddb with mysqldump, then run the result file to fill the new db
 (in order to have native 4.1 database ).
 8b.Using SQL queries (or phpmyadmin) copy all tables from olddb to new db
 (in order to have native 4.1 database ).
 9. Assure that all is correct then delete olddb, copy database to the slave
 and start mysql servers.
 10. Confirm replication is ok, then start the site.

This is a good list.. My suggestion would be to do this on some sort of 
back/dev machine.. php doesnt just work with 4.1 automatically (depending on 
version). 

Not sure which distro u use, that could be a driving factor of problems you 
may see to.

Jeff


pgpQkZExiFA1H.pgp
Description: PGP signature


RE: Multiple table count in one sql-query

2004-11-24 Thread Guillaume Giroux
How about:

select (@CNT:=count(*)) FROM table1 
union 
select (@CNT:[EMAIL PROTECTED](*)) from table2
union 
select (@CNT:[EMAIL PROTECTED](*)) from table3;


If you want only the sum: 

(select (@CNT:=count(*)) FROM table1)
union 
(select (@CNT:[EMAIL PROTECTED](*)) from table2)
union 
(select (@CNT:[EMAIL PROTECTED](*)) from table3)
ORDER BY 1 DESC LIMIT 1

GG

 -Original Message-
 From: Rhino [mailto:[EMAIL PROTECTED] 
 Sent: November 24, 2004 09:47
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Multiple table count in one sql-query
 
 
 - Original Message - 
 From: Martin Rytz [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Wednesday, November 24, 2004 8:47 AM
 Subject: Multiple table count in one sql-query
 
 
  Hello People
 
  I should have the count from 3 tables in one query; 
 something like this:
 
  select count(*) from table1 union select count(*) from 
 table2 union select
  count(*) from table3 union;
 
  The Problem ist, that the query gives 3 results back (the count from
 table1,
  table2 and table3) BUT I should have only one result, the 
 added value from
  all 3 tables...
 
  How can I do this within MySQL? Are there variables I could 
 use within the
  query? Other possibilities?
 
  Thank you for your help!
 
 One approach would be to create a temporary table consisting 
 of one integer
 column, then write the results of your query to that table. 
 Here is a script
 that demonstrates this technique:
 
 #Create temporary table containing a union of the row counts 
 from each of
 severa
 create temporary table if not exists temp01
 select count(*) as total_rows
 from Employee
 UNION
 select count(*) as total_rows
 from emp
 UNION
 select count(*) as total_rows
 from dept;
 
 #Display the contents of the temporary table.
 select * from temp01;
 
 #Sum the row counts from the different tables.
 select sum(total_rows) from temp01;
 
 #Drop the temporary table.
 drop table if exists temp01;
 
 This script works perfectly on my 4.0.15 system.
 
 Rhino
 
 
 -- 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
 

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Multiple table count in one sql-query

2004-11-24 Thread Michael Stassen
Rhino wrote:
- Original Message - 
From: Martin Rytz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 8:47 AM
Subject: Multiple table count in one sql-query

Hello People
I should have the count from 3 tables in one query; something like this:
select count(*) from table1 union select count(*) from table2 union select
count(*) from table3 union;
The Problem ist, that the query gives 3 results back (the count from
table1, table2 and table3) BUT I should have only one result, the added
value from all 3 tables...
How can I do this within MySQL? Are there variables I could use within the
query? Other possibilities?
Thank you for your help!
One approach would be to create a temporary table consisting of one integer
column, then write the results of your query to that table. Here is a script
that demonstrates this technique:
#Create temporary table containing a union of the row counts from each of
create temporary table if not exists temp01
select count(*) as total_rows
from Employee
UNION
select count(*) as total_rows
from emp
UNION
select count(*) as total_rows
from dept;
#Display the contents of the temporary table.
select * from temp01;
#Sum the row counts from the different tables.
select sum(total_rows) from temp01;
#Drop the temporary table.
drop table if exists temp01;
This script works perfectly on my 4.0.15 system.
Rhino
You could accomplish the same logic in one go with user variables:
  SELECT 'table1' AS 'table', @c1:= count(*) AS 'rows' FROM table1
  UNION
  SELECT 'table2', @c2:= count(*) FROM table2
  UNION
  SELECT 'table3', @c3:= count(*) FROM table3
  UNION
  SELECT 'Total', @c1 + @c2 + @c3;
The answer is in the last row.  If you don't care about the individual 
counts, or don't want to parse results, you can do it in two queries by 
separating the last SELECT from the UNIONs.  In that case, you might as well 
simplify a little:

  SELECT @rows:= count(*) FROM table1
  UNION
  SELECT @rows:= @rows + count(*) FROM table2
  UNION
  SELECT @rows:= @rows + count(*) FROM table3
  SELECT @rows;
@rows is a running total, so the answer is in the last row of the UNION 
output, but you can retrieve it directly with a separate SELECT.

Michael
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Changed development enviornment (PC to Mac)

2004-11-24 Thread Art.M (Wikki)
A little off topic, sorry, but I am wondering if anyone has any good
Mac Web Dev resourses that i may find useful. Right now I am trying to
figure out how to install mySQL to get my local dev setup and any
pointers would be appreciated.

Thanks

Wikki

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



MySQL and PHP

2004-11-24 Thread Danesh Daroui
Hi all,
I have problem by using PHP and MySQL. I have installed MySQL Server 
4.1.7 on a Linux  machine with Apache. PHP interpreter has been 
installed on it by default but I am not sure if PHP modules for MySQL 
has been installed too or not. On MySQL download section there is only 
some extensions which has links to PHP site. I couldn't use them really. 
Can anybody help ? How can I install PHP modules for MySQL so I would 
work with mysql database through PHP ?

Regards,
Danesh



Re: MySQL and PHP

2004-11-24 Thread Steve Buehler
You didn't say which Linux you were using and I am not sure about the rest, 
but if you are using RedHat, you probably need to install php-mysql which 
is A module for PHP applications that use MySQL databases.  If you can 
use up2date, you can type in up2date php-mysql and that will let you run 
php with the mysql module.  That is if you are using RedHat and have php 
installed by RPM from the up2date site or from the install CD.  Possibility 
that the php-mysql module is on the install CD too, but I don't know.

Steve
At 09:59 AM 11/24/2004, you wrote:
Hi all,
I have problem by using PHP and MySQL. I have installed MySQL Server 4.1.7 
on a Linux  machine with Apache. PHP interpreter has been installed on it 
by default but I am not sure if PHP modules for MySQL has been installed 
too or not. On MySQL download section there is only some extensions which 
has links to PHP site. I couldn't use them really. Can anybody help ? How 
can I install PHP modules for MySQL so I would work with mysql database 
through PHP ?

Regards,
Danesh

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


RE: MySQL and PHP

2004-11-24 Thread Jay Blanchard
[snip]
I have problem by using PHP and MySQL. I have installed MySQL Server 
4.1.7 on a Linux  machine with Apache. PHP interpreter has been 
installed on it by default but I am not sure if PHP modules for MySQL 
has been installed too or not. On MySQL download section there is only 
some extensions which has links to PHP site. I couldn't use them really.

Can anybody help ? How can I install PHP modules for MySQL so I would 
work with mysql database through PHP ?
[/snip]

This is probably a better question for a PHP list. Is PHP runinng? Make
a test page

?php

phpinfo();

?

and run it from your web browser. Have you checked basic PHP  MySQL
tutorials?

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: The better and more efficient way to store datetime data.

2004-11-24 Thread Mark Papadakis
Hello,

If you aim for for absolute control over the storage (the fileystem
nature is the limit), and speed, do not use an SQL system.  Of course,
you would have to face all the trouble of writing your own
mini-engine/subsystem for the job. It all comes down to what your
needs are and how much time you can spend on it.

If you want to use SQL, but do not wish to get down to milisecond
level, use a simple INT UNSIGNED, in conjuction with either
UNIX_TIMESTAMP or your favorite time() call equivalent in your
language. Thats 4 bytes.


Mark

On Wed, 24 Nov 2004 14:53:08 +0100, Jose Antonio [EMAIL PROTECTED] wrote:
 I need to store huge data series using MySQL with InnoDB as storage
 engine. The data type of the parameters can be double, float, int,
 smallint, mediumint, tinyint  So, I've thought to store them in
 the following way:
 
 Table Parameter:
 Parameter ID - small int
 Parameter Name - varchar(8)
 Parameter Description - varchar(16)
 Parameter dbType - varchar(10)
 
 Table floatParameter:
 Parameter ID - small int
 Datetime - datetime or long
 Parameter value - float
 
 etc 
 
 for the Datetime field  is it better to use the MySQL built-in
 DATETIME type, or is it better to save a long (as milliseconds)?
 
 The required hard-disk storage by a 'datetime' is the same as for a 'long'?
 Is there any different in the performance?
 
 The queries I will be doing more often are similar to this one:
 SELECT datetime, value FROM floatParameter WHERE datetime BETWEEN
 '2004-10-01 00:00:00' and '2004-10-15 00:00:00'
 
 Discussion is open and suggestions are more than welcome.
 
 Jose.
 
 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
 
 


-- 
Mark Papadakis
Head of RD
Phaistos Networks, S.A

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Changed development enviornment (PC to Mac)

2004-11-24 Thread Brent Baisley
Things are pretty much the same for the Mac as any other Unix platform, 
so there aren't too many sites out there that will give you Mac 
specific stuff. Any instructions for Unix/Linux are pretty much the 
same for the Mac, except for the darn path differences between Unix 
platforms. You should become familiar with the terminal and command 
line. Welcome to Unix, uh, I mean Macintosh.

The Mac already comes with MySQL installed (and php, perl, python, 
etc.). You just need to startup MySQL (and enable php in Apache). 
Follow the standard instructions for first time setup via command line, 
meaning setting the password and stuff.

If you want to install the very latest version, just download the Mac 
installer from the MySQL web site. If using PHP4, be careful about the 
password issue between PHP and MySQL 4.1.

Marc Liyange's website may help you get up to speed on the Mac.
http://www.entropy.ch/software/macosx/
This is also a decent site for general MacUnix stuff:
http://www.afp548.com/
(548 is the Appletalk protocol port as I recall).
Most people use BBEdit on the Mac for writing code like php, perl, etc. 
Get yourself a copy if you haven't settled on something else like 
Eclipse or XCode. If you want a graphical manager for MySQL, there are 
a bunch of them, look on versiontracker.com or just use phpMyAdmin (or 
Webmin).

On Nov 24, 2004, at 10:45 AM, Art.M (Wikki) wrote:
A little off topic, sorry, but I am wondering if anyone has any good
Mac Web Dev resourses that i may find useful. Right now I am trying to
figure out how to install mySQL to get my local dev setup and any
pointers would be appreciated.
Thanks
Wikki
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]


--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search  Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: MySQL and PHP

2004-11-24 Thread John Nichel
Jay Blanchard wrote:
snip
This is probably a better question for a PHP list.
Do you know of one? ;)
If you're running a rpm based distro (RedHat, Fedora, etc.), and you 
have php installed by rpm, you should just need to install the php-mysql 
rpm, and restart Apache.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Happy Thanksgiving Everyone!

2004-11-24 Thread Scott Hamm
I wish everyone a good and fateenin' Thanksgiving from United States!

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Partial Restore

2004-11-24 Thread Terry Riley
We are shortly to go live with a new set of databases (InnoDB). 

The data in each database is identical in fields and types, the only 
difference being in the relevance of the data - they are soccer leagues, 
and each database represents information on the leagues/teams for a 
single season. There is a separate controlling database which directs web 
requests to the right year.

Each league is identified within every table by a 3-4 character code. This 
all works pretty well, and was deemed a better scenario than having a 
database for each league, with a numeric field to identify the year. There 
are something like 160 leagues involved, but only 6 years (and rising). So 
we have 6 databases to take care of, not 160.

Having explained the basic setup, we come to a problem: what if one of the 
administrators accidentally deletes a set of league information (maybe 
fixture information, for instance) six hours after the last backup?

We could, of course, restore from the backup, but that would compromise 
every other league administrator's efforts since backup. Ideally, we would 
restore only the data relevant to that particular league (with the proper 
3-4 letter code).

Apart from opening up the latest mysqldump file and extracting the data 
from there (assuming the dork who deleted it knows more or less what has 
gone), and re-inserting table by table, having removed the data from other 
leagues, I can't think of another way to do it.

We're currently using 4.1.3/Apache/WinNT, with hopes of upgrading to 4.1.7 
before going live, though I doubt if the MySQL sub-version is relevant.

I'd appreciate any help or guidance or advice on suitable tools.

Cheers
Terry 


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Complete php,mysql packages

2004-11-24 Thread gunmuse
Wamp servers are an excellent windows install for It elimininates those
little hiccups


http://www.wampserver.com/en/index.php


Thanks
Donny Lairson
President
http://www.gunmuse.com
469 228 2183



-Original Message-
From: Danesh Daroui [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 8:59 AM
To: [EMAIL PROTECTED]
Subject: MySQL and PHP


Hi all,

I have problem by using PHP and MySQL. I have installed MySQL Server
4.1.7 on a Linux  machine with Apache. PHP interpreter has been
installed on it by default but I am not sure if PHP modules for MySQL
has been installed too or not. On MySQL download section there is only
some extensions which has links to PHP site. I couldn't use them really.
Can anybody help ? How can I install PHP modules for MySQL so I would
work with mysql database through PHP ?

Regards,

Danesh




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



4.1.7 installation problem. libcprts.so.5

2004-11-24 Thread Vasiliy Boulytchev

Gents,
Upgrading to Mysql 4.1.7 from 4.0.18...  I get the following error when
trying to start:

./bin/my_print_defaults: error while loading shared libraries:
libcprts.so.5: cannot open shared object file: No such file or directory

OS = Mandrake 9.2

Which RPM am I missing?


THANKS!!
-- 

-
Vasiliy Boulytchev
Colorado Information Technologies Inc.
http://www.coinfotech.com


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Innodb corrpution. Very Urgent

2004-11-24 Thread Carlos Augusto
well i´m having another problem now... I changed innodb_force_recovery
for 1 and mysql is not running due the following error:

041124 14:13:18 Innodb: fatal error: cannot allocate 2147500032 bytes of
innodb: memory with malloc! total allocated memory
innodb: by inndodb 16975556 bytes. Operating system errno: 8
innodb: Cannot continue operation!
innodb: check if you should increase the swap file of ulimits
innodb: of your operating system
innodb: On freeBSD check you have compiled the OS with
innodb:a big enough maximum process size

got signal 11. Aborted!
---
Can anyone help me with this new problem? 
thanks!
[´z] 
Carlos


On Tue, 23 Nov 2004 15:33:08 -0200, Carlos Augusto [EMAIL PROTECTED] wrote:
 I appreciate your help, but now i can´t get those error logs because i
 need access to this database that im not having at the moment.
 As fast as i can i´ll paste the full error log for you.
 Thanks for the help.
 [´z]
 
 On Mon, 22 Nov 2004 23:09:41 +0200, Heikki Tuuri
 
 
 [EMAIL PROTECTED] wrote:
  Carlos,
 
  - Original Message -
  From: Carlos Augusto [EMAIL PROTECTED]
  Newsgroups: mailing.database.myodbc
  Sent: Monday, November 22, 2004 10:37 PM
  Subject: Innodb corrpution. Very Urgent
 
   Hello, i=B4m having a problem with a large database...
   at ibdata1.My ibdata1 is corrupted and i saw other postings and all of
   them asks to use mysqldump, but in my case there=B4s a problem...
   I can=B4t run mysqld since ibdata1 is corrupted.=20
   Those anyone have a tip for me?
   in logfile says that mysqld can=B4t run because this corruption.
   When I make a new instalation of mysql whithout my 4 gb ibdata1, the
   daemon runs ok...and when i paste my corrupted ibdata1 at /data
   (shutting down the service) and turn on the service again, it don=B4t
   turns on.
   I don=B4t know what to do...
 
  please post the COMPLETE .err log of mysqld. Do not cut anything off. What
  does mysqld print when you try to start it?
 
  Which MySQL version this is, and what operating system?
 
  The following section:
  http://dev.mysql.com/doc/mysql/en/Forcing_recovery.html
  contains instructions how you can start mysqld, even though the ibdata file
  is corrupt.
 
   Thanks
   Carlos
 
  Best regards,
 
  Heikki Tuuri
  Innobase Oy
  Foreign keys, transactions, and row level locking for MySQL
  InnoDB Hot Backup - a hot backup tool for InnoDB which also backs up MyISAM
  tables
  http://www.innodb.com/order.php
 
  Order MySQL technical support from https://order.mysql.com/
 
  --
  MySQL General Mailing List
  For list archives: http://lists.mysql.com/mysql
  To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
 
 


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



cannot Connect to local MYSQL server through socket

2004-11-24 Thread Morris, Andrew
../var/lib/mysql/mysql.sock.

I've been round the houses with this following the thread but I can't
get past this error despite all the chmod and chown modifications,
installed MySQL admin and it still won't start.

Am I best to chuck it in the bin or uninstall the lot and start again?

This is Fedora Core 3 with MySQL 3.23.58-13.

Any help gladly appreciated but its not obvious from the web site how to
go beyond the chmod and chown fixes. What does the socks file do anyway?

Thanks

Andrew G Morris
ILT Advisor (Technical)
JISC RSC West Midlands
01902 824434
07980 982738



Re: cannot Connect to local MYSQL server through socket

2004-11-24 Thread Victor Pendleton
Is the MySQL server running and you can not connect? Or are you not able 
to start the MySQL server?

Morris, Andrew wrote:
../var/lib/mysql/mysql.sock.
I've been round the houses with this following the thread but I can't
get past this error despite all the chmod and chown modifications,
installed MySQL admin and it still won't start.
Am I best to chuck it in the bin or uninstall the lot and start again?
This is Fedora Core 3 with MySQL 3.23.58-13.
Any help gladly appreciated but its not obvious from the web site how to
go beyond the chmod and chown fixes. What does the socks file do anyway?
Thanks
Andrew G Morris
ILT Advisor (Technical)
JISC RSC West Midlands
01902 824434
07980 982738
 


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: cannot Connect to local MYSQL server through socket

2004-11-24 Thread Mark Papadakis
Hello,

The mysql sock file is used for Unix Domain Sockets communication.

In essence, it is used for interconnection between processes running
on the same system. They function just like ordinary-over-the-net
sockets. They are just faster for interprocess communication.

I am not sure I understand what your problem is with the file, or what
chmod/chown have to do with it. Please explain.

MarkP


On Wed, 24 Nov 2004 12:00:45 -0600, Victor Pendleton
[EMAIL PROTECTED] wrote:
 Is the MySQL server running and you can not connect? Or are you not able
 to start the MySQL server?
 
 
 
 Morris, Andrew wrote:
 
 ../var/lib/mysql/mysql.sock.
 
 I've been round the houses with this following the thread but I can't
 get past this error despite all the chmod and chown modifications,
 installed MySQL admin and it still won't start.
 
 Am I best to chuck it in the bin or uninstall the lot and start again?
 
 This is Fedora Core 3 with MySQL 3.23.58-13.
 
 Any help gladly appreciated but its not obvious from the web site how to
 go beyond the chmod and chown fixes. What does the socks file do anyway?
 
 Thanks
 
 Andrew G Morris
 ILT Advisor (Technical)
 JISC RSC West Midlands
 01902 824434
 07980 982738
 
 
 
 
 
 
 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
 
 


-- 
Mark Papadakis
Head of RD
Phaistos Networks, S.A

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Structure of .frm-Files ...

2004-11-24 Thread Gleb Paharenko
Hello.



There is a list in which you can expect to have your question answered: [EMAIL 
PROTECTED]  



Hagen Hoepfner [EMAIL PROTECTED] wrote:

 Dear list,

 

 perhaps there is some one who can help me ;-) I currently try to 

 understand the structure of .frm-Files. As I understood the 

 documentation correctly this file contains the data dictionary which is 

 independend from the storage engine (MyISAM, InnoDB, etc.). Is there any 

 online article or in which header-file i have to look?

 

 Thanx,

 

 Hagen

 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
   ___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Can't see table information

2004-11-24 Thread Gleb Paharenko
Hello.



I think we may open a bug, but still we have to try to find at least

the command line options with which mysqld has been started. You should find

a place in your startup scripts where mysqld is invoked. Start it with

--log[=file] --log-error[=file] options. Some clues could be found in these

log files.  





Jason St. Louis [EMAIL PROTECTED] wrote:

 Hi.  Thanks for the response.

 

 Here is all the relevent information you asked for:

 

 [EMAIL PROTECTED] mysql]$ ./bin/mysql -u root -p

 Enter password:

 Welcome to the MySQL monitor.  Commands end with ; or \g.

 Your MySQL connection id is 130 to server version: 3.23.55

 

 Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

 

 mysql use gb;

 Database changed

 mysql show tables;

 Empty set (0.01 sec)

 

 mysql show table status;

 Empty set (0.00 sec)

 

 mysql show table status from gb;

 Empty set (0.01 sec)

 

 mysql select count(*) from player;

 +--+

 | count(*) |

 +--+

 |   15 |

 +--+

 1 row in set (0.00 sec)

 

 mysql select count(*) from gb.player;

 +--+

 | count(*) |

 +--+

 |   15 |

 +--+

 1 row in set (0.00 sec)

 

 mysql Bye

 

 [EMAIL PROTECTED] mysql]$ ./bin/mysqlshow -u root -p gb

 Enter password:

 Database: gb

 ++

 | Tables |

 ++

 ++

 

 [EMAIL PROTECTED] mysql]$ ./bin/mysqlshow --status -u root -p gb

 Enter password:

 Database: gb

 +--+--++--++-+-+--+---++-+-+++-+

 | Name | Type | Row_format | Rows | Avg_row_length | Data_length | 

 Max_data_length | Index_length | Data_free | Auto_increment | 

 Create_time | Update_time | Check_time | Create_options | Comment |

 +--+--++--++-+-+--+---++-+-+++-+

 +--+--++--++-+-+--+---++-+-+++-+

 

 

 As you can see, it doesn't matter how I go about it, I always get the 

 same result.  I issued the select count(*) from player statement to 

 show that even though it doesn't show any tables, I can still perform an 

 sql statement against a table that should be there.

 

 I do not have a configuration file (I assume you are reffering to the 

 my.cnf file?)  I guess this is something you have to manually create and 

 I suppose I never did that.  I guess that means my mysql server is using 

 all defaults.

 

 I would just re-install mysql, except that I can't even do a mysqldump 

 to get my data/table structure out of the database because of this 

 problem.  guess I should have been taking backups, eh?

 

 Is there any other relevant information I can provide that may help?

 

 Here is the mysql user table entry for the user I am using to perform 

 these statements:

 

 mysql select * from user where user = 'root' and host='localhost';

 +---+--+--+-+-+-+-+-+---+-+---+--+---++-+++

 | Host  | User | Password | Select_priv | Insert_priv | 

 Update_priv | Delete_priv | Create_priv | Drop_priv | Reload_priv | 

 Shutdown_priv | Process_priv | File_priv | Grant_priv | References_priv 

 | Index_priv | Alter_priv |

 +---+--+--+-+-+-+-+-+---+-+---+--+---++-+++

 | localhost | root | -protected-- | Y   | Y   | Y 

 | Y   | Y   | Y | Y   | Y 

| Y| Y | Y  | Y   | Y 

| Y  |

 +---+--+--+-+-+-+-+-+---+-+---+--+---++-+++

 1 row in set (0.00 sec)

 

 

 Thanks.

 Jason

 

 Gleb Paharenko wrote:

 Hello.

 

 

 

 Sounds very strange. May be there is a bug, and it would be great if someone

 

 corrects me, but I haven't found anything related in bugs database.

 

 You said that you issued show tables statement on your database? Maybe 

 

 it would be helpful to try not only show tables from your_database, but

 

 also:

 

  use your_database;

 

  show tables;

 

 or

 

  show table status;

 

  show table status from your_db;

 

 

 

 What output the command line 

Re: Reset permissions

2004-11-24 Thread Gleb Paharenko
Hello.



See:

  http://dev.mysql.com/doc/mysql/en/Resetting_permissions.html

  

 How can I reset the permissions on my database?  I have no clue when I did

 it (at least several months ago), haven't used it until today but I cannot

 for the life of me figure out how I can create a new user with all

 permissions.  The only user I have does not have grant or create privileges.

 Am I screwed?Tim Trice [EMAIL PROTECTED] wrote:



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
   ___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Threads 1024 statically linking against linuxthreads library

2004-11-24 Thread Gleb Paharenko
Hello.



Have you tried official binaries?





Willem Roos [EMAIL PROTECTED] wrote:

 

 Hi list,

 

 We have apps that try to open  700 simultaneous connections to our

 4.0.20-max mysql server running on RH7 (Linux kernel 2.4.20). We get

 many 'Can't create a new thread (errno 11)' errors returned by

 mysql_real_connect().

 

 I'm trying to follow the directions given in the Linux Source

 Distribution Notes (section 2.12.1.3) about=0D

 - increasing PTHREAD_THREADS_MAX in

 `sysdeps/unix/sysv/linux/bits/local_lim.h',=0D

 - decreasing STACK_SIZE in `linuxthreads/internals.h',=0D

 - recompiling LinuxThreads to produce a new `libpthread.a' library, and=0D

 - relink MySQL against it.=0D

 

 The first three steps are ok, downloaded glibc-2.2.5 (which is also

 running on my box), downloaded glibc-linuxthreads-2.2.5, hacked 

 compiled everything ok.

 

 Downloaded mysql-4.0.22 source (close enough to my 4.0.20 production

 system). Now i realize i haven't the faintest idea how to 'statically

 link MySQL against it'. I keep on running into all kinds of dynamic

 linker errors.

 

 The page http://www.volano.com/linuxnotes.html referred to in the manual

 don't exist. Exhaustive search of this list didn't help (i followed the

 recent discussion re 'MySQL 4.0.2 is topping out at 1024 threads' but

 that don't help me).=0D

 

 Does anyone have any notes/pointers/info/idiot's guide in this regard?=0D

 

 Thanks,

 

 --

  Willem Roos

  Per sercas vi malkovri - JS Bach (freely translated)

 

 Disclaimer=0D

 http://www.shoprite.co.za/disclaimer.html

 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
   ___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Lost Connection To Mysql....................................Roime

2004-11-24 Thread Gleb Paharenko
Hello.



Citing Egor Egorov as of http://lists.mysql.com/mysql/166245:

Check that it's not max_allowed_packet or wait_timeout issue:

http://dev.mysql.com/doc/mysql/en/Gone_away.html;



 After that, when i tried to reconnect it, it's hang up

 !

Your Red Hat server machine hangs up? It's unusual behavior for Linux!

Did you use official binaries from MySQL? I've found that such problem

was solved by switching to official binaries. If it won't be helpful

send us your my.cnf files of both machines next time.

 server through mysql kernel

What is it - 'mysql kernel'?





roime puniran [EMAIL PROTECTED] wrote:

 

 i have mysql server located in in machine that used Red Hat 8.0

 and my mysql server version was 3.23.58. I am trying to connect

 using my machine..And currently i used Red Hat Fedora...But when

 i am trying to connect to mysql server i got this error

 message.

 

 ERROR 2013: Lost connection to MySQL server during query

 

 And i am also trying to killall my mysqld and start the mysql

 server through mysql kernel

 

 /usr/libexec/mysql -Sg --user=root

 

 After that, when i tried to reconnect it, it's hang up

 !.nothing to be done and i need to start my machine back to

 run mysql...

 

 Can anyone help me?...Do u guys have any idea?...

 

 Thanks !

 -

 Free POP3 Email from www.Gawab.com 

 Sign up NOW and get your account @gawab.com!!

 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
   ___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: MySQL configuration on Linux

2004-11-24 Thread Gleb Paharenko
Hello.



 ERROR 2002: Can't connect to local MySQL server through socket

I guess you've got such error while executed mysql command line client program.

 The documentation had a little info.  Tried all that; didn't work.



What did you tried exactly? Have you looked at:

  http://dev.mysql.com/doc/mysql/en/Can_not_connect_to_server.html



 The directory is there. 



Does mysql have neccessary permissions for this directory? Was MySQL running

while you had attempts to connect? If not, then what in the error log? Send

us your my.cnf file. How did you started mysqld (what command line

options did you use)?





Barry Drake [EMAIL PROTECTED] wrote:

 I installed mysql on windows XP pro without any problems.  But, on Linux 

  can't get it to work so far.

 

 I get the error:

 

 ERROR 2002: Can't connect to local MySQL server through socket 

 '/var/lib/mysql/mysql.sock' (2)

 

 The directory is there.  I thought that mysqld would create what it 

 needed at boot.  What's going on?

 

 I checked all of the Berkley Databases (bdb) statements in my.conf are 

 commented out with '#'.

 

 The documentation had a little info.  Tried all that; didn't work.

 

 System:

 Dell Inspiron 8500; 1GB ram

 Suse 9.2

 

 Any help would be appreciated.

 Thanks.

 Barry

 

 



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
   ___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Innodb corrpution. Very Urgent

2004-11-24 Thread Ronan Lucio
Carlos,

 041124 14:13:18 Innodb: fatal error: cannot allocate 2147500032 bytes of
 innodb: memory with malloc! total allocated memory
 innodb: by inndodb 16975556 bytes. Operating system errno: 8
 innodb: Cannot continue operation!
 innodb: check if you should increase the swap file of ulimits
 innodb: of your operating system
 innodb: On freeBSD check you have compiled the OS with
 innodb:a big enough maximum process size

It seems a tunning problem.
Perhaps if you make some changes in your my.cnf file MySQL could
run again.

Ronan



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



host blocked, but can't see errors

2004-11-24 Thread Anne Ramey
Last week I got this message:
Cannot connect DBI:mysql:formmail;myhost.net: Host 'myhost.net' is 
blocked because of many connection errors.  Unblock with 'mysqladmin 
flush-hosts'

I couldn't find the errors anywhere. Not in any of the apache logs and 
not in the mysql error log:
041103 20:09:11  mysqld started
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
041103 20:09:11  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
041103 20:09:12  InnoDB: Log file ./ib_logfile0 did not exist: new to be 
created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
041103 20:09:12  InnoDB: Log file ./ib_logfile1 did not exist: new to be 
created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
041103 20:09:13  InnoDB: Started
/usr/local/mysql/bin/mysqld: ready for connections.
Version: '4.0.21-max'  socket: '/tmp/mysql.sock'  port: 3306  Official 
MySQL-max binary

I've also checked my syslog, messages log, and formmail log, nothing. 
It's only happening to this one host.

it keeps happening over and over.  I have to flush my host every day or 
so.  Any ideas where to look?

--
Anne Ramey
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Innodb corrpution. Very Urgent

2004-11-24 Thread Carlos Augusto
Well i didn´t change nothing at no config file.  Any suggestions? 
thanks.
Sorry all for those lots of questions... i´m new at mysql and I need
it very much at my job.
and sorry for the english too.


On Wed, 24 Nov 2004 16:20:57 -0200, Ronan Lucio [EMAIL PROTECTED] wrote:
 Carlos,
 
 
 
  041124 14:13:18 Innodb: fatal error: cannot allocate 2147500032 bytes of
  innodb: memory with malloc! total allocated memory
  innodb: by inndodb 16975556 bytes. Operating system errno: 8
  innodb: Cannot continue operation!
  innodb: check if you should increase the swap file of ulimits
  innodb: of your operating system
  innodb: On freeBSD check you have compiled the OS with
  innodb:a big enough maximum process size
 
 It seems a tunning problem.
 Perhaps if you make some changes in your my.cnf file MySQL could
 run again.
 
 Ronan
 
 --
 
 
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
 


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Innodb corrpution. Very Urgent

2004-11-24 Thread Heikki Tuuri
Carlos,
I asked you to post the COMPLETE .err log. Do NOT cut anything off.
Regards,
Heikki
- Original Message - 
From: Carlos Augusto [EMAIL PROTECTED]
Newsgroups: mailing.database.myodbc
Sent: Wednesday, November 24, 2004 7:38 PM
Subject: Re: Innodb corrpution. Very Urgent


well i=B4m having another problem now... I changed innodb_force_recovery
for 1 and mysql is not running due the following error:
041124 14:13:18 Innodb: fatal error: cannot allocate 2147500032 bytes of
innodb: memory with malloc! total allocated memory
innodb: by inndodb 16975556 bytes. Operating system errno: 8
innodb: Cannot continue operation!
innodb: check if you should increase the swap file of ulimits
innodb: of your operating system
innodb: On freeBSD check you have compiled the OS with
innodb:a big enough maximum process size

got signal 11. Aborted!
---
Can anyone help me with this new problem?=20
thanks!
[=B4z]=20
Carlos
On Tue, 23 Nov 2004 15:33:08 -0200, Carlos Augusto [EMAIL PROTECTED] 
wr=
ote:
I appreciate your help, but now i can=B4t get those error logs because i
need access to this database that im not having at the moment.
As fast as i can i=B4ll paste the full error log for you.
Thanks for the help.
[=B4z]
=20
On Mon, 22 Nov 2004 23:09:41 +0200, Heikki Tuuri
=20
=20
[EMAIL PROTECTED] wrote:
 Carlos,

 - Original Message -
 From: Carlos Augusto [EMAIL PROTECTED]
 Newsgroups: mailing.database.myodbc
 Sent: Monday, November 22, 2004 10:37 PM
 Subject: Innodb corrpution. Very Urgent

  Hello, i=3DB4m having a problem with a large database...
  at ibdata1.My ibdata1 is corrupted and i saw other postings and all 
  o=
f
  them asks to use mysqldump, but in my case there=3DB4s a problem...
  I can=3DB4t run mysqld since ibdata1 is corrupted.=3D20
  Those anyone have a tip for me?
  in logfile says that mysqld can=3DB4t run because this corruption.
  When I make a new instalation of mysql whithout my 4 gb ibdata1, the
  daemon runs ok...and when i paste my corrupted ibdata1 at /data
  (shutting down the service) and turn on the service again, it 
  don=3DB=
4t
  turns on.
  I don=3DB4t know what to do...

 please post the COMPLETE .err log of mysqld. Do not cut anything off. 
 W=
hat
 does mysqld print when you try to start it?

 Which MySQL version this is, and what operating system?

 The following section:
 http://dev.mysql.com/doc/mysql/en/Forcing_recovery.html
 contains instructions how you can start mysqld, even though the ibdata 
 =
file
 is corrupt.

  Thanks
  Carlos

 Best regards,

 Heikki Tuuri
 Innobase Oy
 Foreign keys, transactions, and row level locking for MySQL
 InnoDB Hot Backup - a hot backup tool for InnoDB which also backs up 
 My=
ISAM
 tables
 http://www.innodb.com/order.php

 Order MySQL technical support from https://order.mysql.com/

 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe: 
 http://lists.mysql.com/[EMAIL PROTECTED]
.com


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: 
http://lists.mysql.com/[EMAIL PROTECTED]


--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Replication problems - packet sizes and more

2004-11-24 Thread Jon Drukman
My master has two databases:  channel and hardware.  I'm only interested 
in replicating hardware, so I set up replicate-do-db=hardware on the slaves.

However, I am having problems because of giant LOAD DATA operations 
performed nightly on channel.  Replication blows up with max packet 
exceeded errors.  Due to this weird java program we have to use to load 
data from our partner, I can't just make the packet size really large on 
the master and slave and be done with it.  I tried doing that, but the 
java program freaks out if i set mysql's packet size too big for the 
java heap.  (I hate java so much.)  So, my questions are:

- does anyone know how to make java not care how big the mysql packet is?
- is there any way to have the mysql master just not even send big 
packets to the slaves?

- is there any way to make the mysql slaves ignore too-big packets? 
they are only happening on a database that i don't want to replicate anyway.

thanks
-jsd-
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Replication problems - packet sizes and more

2004-11-24 Thread Jon Drukman
i probably should have mentioned: both master  slave are running 4.0.20
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: Replication problems - packet sizes and more

2004-11-24 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Jon Drukman wrote:
 My master has two databases:  channel and hardware.  I'm only interested 
 in replicating hardware, so I set up replicate-do-db=hardware on the slaves.
 
 However, I am having problems because of giant LOAD DATA operations 
 performed nightly on channel.  Replication blows up with max packet 
 exceeded errors.  Due to this weird java program we have to use to load 
 data from our partner, I can't just make the packet size really large on 
 the master and slave and be done with it.  I tried doing that, but the 
 java program freaks out if i set mysql's packet size too big for the 
 java heap.  (I hate java so much.)  So, my questions are:
 
 - does anyone know how to make java not care how big the mysql packet is?

Not really fixable, due to the way the MySQL protocol works, a query
(including the data for LOAD DATA LOCAL INFILE) has to fit in an entire
packet, the packet size needs to be sent to the server _first_, so that
means the clients have to allocate all memory required for a query, plus
some overhead to escape any 'special' characters...The c-based client
would have problems as well (it would have to allocate just as much
memory), you just wouldn't get an exception, your program would end up
in swap instead.

The JDBC client only grows the packet to max_allowed_packet if it needs
to. The one case where it probably doesn't need to is for LOAD DATA
LOCAL INFILEThe C-library implementation of LOAD DATA LOCAL INFILE
_does_ use max_allowed_packet sized packets to send the file from client
- - server.

Are you using LOAD DATA LOCAL INFILE with JDBC? If so, check out a
nightly build of Connector/J 3.1.x from
http://downloads.mysql.com/snapshots.php ... It has a change to it where
it will use the smaller of 1MB or max_allowed_packet for LOAD DATA LOCAL
INFILE operations (this still works, it's just not the 'normal' way the
client library works).

-Mark
- --
Mark Matthews
MySQL AB, Software Development Manager - Client Connectivity
Office: +1 708 332 0507
www.mysql.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBpTKctvXNTca6JD8RArT9AJ4/gvtsg3u9449Kk8y7N62zglfZOQCgrcXq
Ga820/B6m+joEVsKueFf/18=
=UHTi
-END PGP SIGNATURE-

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Update Query with special conditions.

2004-11-24 Thread GH
I am curious about doing something simular to this... does anyone have an idea


On Wed, 24 Nov 2004 00:43:32 -0500, list 123. list wrote:
 Using mySQL 4.0, I would like to know how I can code a query that will change 
 the value of Participants.Active from Y to N is for three or more CONSECUTIVE 
 sessions they have Attendance.Present = 'No'?
 
 The Attendance Table has Attendance.Session which coresponds to 
 Sessions.SessionID and Attendance.Participant coresponds to 
 Participants.Part_ID;
 
 To assist, I have shown you the data of the Sessions and the descriptions of 
 Attendance, Participants, Attendance
 
 Thanks
 G
 
 mysql describe Participants;
 +---+---+--+-+-++
 | Field | Type  | Null | Key | Default | Extra  |
 +---+---+--+-+-++
 | Part_ID   | smallint(10) unsigned |  | PRI | NULL| auto_increment |
 | LastName  | varchar(30)   |  | PRI | ||
 | FirstName | varchar(30)   |  | PRI | ||
 | DOB   | date  | YES  | | NULL||
 | Sex   | enum('M','F') |  | | M   ||
 | Phone1| varchar(12)   |  | MUL | ||
 | Phone2| varchar(12)   | YES  | | NULL||
 | Notes | text  |  | | ||
 | Facesheet | enum('Have','Need')   |  | | Need||
 | Active| set('Y','N')  |  | | Y   ||
 +---+---+--+-+-++
 10 rows in set (0.00 sec)
 
 mysql describe Attendance;
 +-+--+--+-+-++
 | Field   | Type | Null | Key | Default | Extra  |
 +-+--+--+-+-++
 | AttID   | int(4)   |  | PRI | NULL| auto_increment |
 | Session | int(2)   |  | MUL | 0   ||
 | Participant | int(2)   |  | | 0   ||
 | Present | enum('Yes','No') |  | | Yes ||
 +-+--+--+-+-++
 4 rows in set (0.00 sec)
 
 mysql describe Sessions;
 +-+-+--+-+++
 | Field   | Type| Null | Key | Default| Extra  |
 +-+-+--+-+++
 | SessionID   | int(2) unsigned |  | PRI | NULL   | auto_increment |
 | SessionDate | date|  | PRI | -00-00 ||
 +-+-+--+-+++
 2 rows in set (0.03 sec)
 
 mysql select * from Sessions;
 +---+-+
 | SessionID | SessionDate |
 +---+-+
 | 1 | 2004-10-30  |
 | 2 | 2004-11-06  |
 | 3 | 2004-11-13  |
 | 4 | 2004-11-20  |
 | 5 | 2004-12-04  |
 | 6 | 2004-12-11  |
 | 7 | 2005-01-08  |
 | 8 | -00-00  |
 | 9 | 2005-01-29  |
 |10 | 2005-02-05  |
 |11 | 2005-02-12  |
 |12 | 2005-02-26  |
 |13 | 2005-03-05  |
 |14 | 2005-03-12  |
 |15 | 2005-03-19  |
 |16 | 2005-04-02  |
 |17 | 2005-04-09  |
 |18 | 2005-04-16  |
 |19 | 2005-04-23  |
 |20 | 2005-05-07  |
 |21 | 2005-05-14  |
 |22 | 2005-05-21  |
 +---+-+
 22 rows in set (0.05 sec)
 
 +-+
 | Tables_in_AHRC  |
 +-+
 | Attendance  |
 | Participants|
 | ProgressNotes   |
 | Sessions|
 | Staff   |
 | StaffAttendance |
 +-+
 6 rows in set (0.00 sec)
 
 
 
 --
 MySQL General Mailing List
 For list archives: http://lists.mysql.com/mysql
 To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]
 


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: Alias query problem in 4.1.7?

2004-11-24 Thread Michael Stassen
Geoffrey R. Thompson wrote:
I have an interesting problem that I cannot find any clues to in the MySQL
documentation.  The following query works in 3.2.3, but does not work in
4.1.7:
You would increase your chances of getting a useful answer if you would take 
the time to reformat your query to be easily readable, as I have done for 
you below.

SELECT Product.Product, 
   AssignedToAgent.AgentName AS AssignedTo,
   sum(Inquiries) AS Inquiries 
FROM Inquiry 
INNER JOIN Product ON Inquiry.ProductKey = Product.ProductKey 
INNER JOIN Agent AS AssignedToAgent 
ON Inquiry.AssignedToKey = AssignedToAgent.AgentKey 
INNER JOIN DateDim AS DateOpen ON Inquiry.DateOpenKey = DateOpen.DateDimKey 
WHERE DateOpen.Year = '2003' 
GROUP BY Product.Product, AssignedToAgent.AssignedTo;
You don't say, but I expect you get
  ERROR 1054 (42S22): Unknown column 'AssignedToAgent.AssignedTo' in 'group
  statement'
Table AssignedToAgent (AKA Agent) does not have a column named AssignedTo. 
It has a column named AgentName.  AssignedTo is an alias which means 
AssignedToAgent.AgentName.  I would expect AssignedToAgent.AgentName and 
AssignedTo to work in the GROUP BY.  I wouldn't have expected 
AssignedToAgent.AssignedTo to work, but I have confirmed that it does work 
in 4.0.20.

It appears that if I take the table alias AssignedToAgent out of the GROUP
BY clause (leaving just the column alias AssignedTo), the query will then
work in 4.1.7 - even though the table alias does not present a problem in
3.2.3.  Any ideas why?
As I said, I'm surprised it ever worked.  In any case, having made 
AssignedTo an alias for the column in question, why not simply use that 
alias instead of trying to qualify it with an unnecessary table name?

Any help would be greatly appreciated.
Since it does work in 4.0.20, and I cannot find the change documented, I've 
gone ahead and submitted this as a bug report 
http://bugs.mysql.com/bug.php?id=6818, though I would not be surprised to 
hear that this was intentional.

Geoff Thompson
Avaion Support
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
http://www.avaion.com http://www.avaion.com/ 
Michael
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


RE: Alias query problem in 4.1.7?

2004-11-24 Thread Geoffrey R. Thompson

Michael Stassen wrote:
 
 You would increase your chances of getting a useful answer if you would
 take
 the time to reformat your query to be easily readable, as I have done for
 you below.
 
  SELECT Product.Product,
 AssignedToAgent.AgentName AS AssignedTo,
 sum(Inquiries) AS Inquiries
  FROM Inquiry
  INNER JOIN Product ON Inquiry.ProductKey = Product.ProductKey
  INNER JOIN Agent AS AssignedToAgent
  ON Inquiry.AssignedToKey = AssignedToAgent.AgentKey
  INNER JOIN DateDim AS DateOpen ON Inquiry.DateOpenKey =
 DateOpen.DateDimKey
  WHERE DateOpen.Year = '2003'
  GROUP BY Product.Product, AssignedToAgent.AssignedTo;
 

Thanks for the tip.

 You don't say, but I expect you get
 
ERROR 1054 (42S22): Unknown column 'AssignedToAgent.AssignedTo' in
 'group
statement'


That is correct.
 
 Table AssignedToAgent (AKA Agent) does not have a column named AssignedTo.
 It has a column named AgentName.  AssignedTo is an alias which means
 AssignedToAgent.AgentName.  I would expect AssignedToAgent.AgentName and
 AssignedTo to work in the GROUP BY.  I wouldn't have expected
 AssignedToAgent.AssignedTo to work, but I have confirmed that it does work
 in 4.0.20.
 
  It appears that if I take the table alias AssignedToAgent out of the
 GROUP
  BY clause (leaving just the column alias AssignedTo), the query will
 then
  work in 4.1.7 - even though the table alias does not present a problem
 in
  3.2.3.  Any ideas why?
 
 As I said, I'm surprised it ever worked.  In any case, having made
 AssignedTo an alias for the column in question, why not simply use that
 alias instead of trying to qualify it with an unnecessary table name?

I will.  As I mentioned earlier, I did determine that the query would run by
removing the table name.  I just wondered why something that did work in one
release ceased working in another.  I generally prefer to 'know why' vs.
just changing code when I see something like this.

FYI - the query is generated through a reporting engine that we have
written, which is why the 'heavy-handed' use of table names that are
seemingly unnecessary.  Depending on the column names selected by the user
in the reporting tool, the query engine sometimes builds queries with
ambiguous names without the table prefix.  Having said that, the alias name
will be sufficiently un-ambiguous, so it will definitely work for our
purposes.

 
 Since it does work in 4.0.20, and I cannot find the change documented,
 I've
 gone ahead and submitted this as a bug report
 http://bugs.mysql.com/bug.php?id=6818, though I would not be surprised
 to
 hear that this was intentional.

Thanks - I will keep tabs on the response.

Geoff



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



mysql maximum number of table entries

2004-11-24 Thread tom miller
what is the maximum number of entries that table can hold?
i have been experimenting with php and mysql.

i created a script that records iipaddress, browser info and timestamp
once the table reaches 127 entries it stops, is there a way to
increase this number?

i read thru the administrators guide but i didnt see the information i
was looking for.

thanks for any answers/or suggestions

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Re: mysql maximum number of table entries

2004-11-24 Thread Paul DuBois
At 21:53 -0600 11/24/04, tom miller wrote:
what is the maximum number of entries that table can hold?
i have been experimenting with php and mysql.
i created a script that records iipaddress, browser info and timestamp
once the table reaches 127 entries it stops, is there a way to
increase this number?
i read thru the administrators guide but i didnt see the information i
was looking for.
thanks for any answers/or suggestions
Do you have a TINYINT column that has the AUTO_INCREMENT attribute?
--
Paul DuBois, MySQL Documentation Team
Madison, Wisconsin, USA
MySQL AB, www.mysql.com
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


RE: Happy Thanksgiving Everyone!

2004-11-24 Thread Mulley, Nikhil
I wish you all a very good and cherishable 'Thanks Giving' to all the people in 
this list and and all the contributors to MySQL all over the World.

Once Again Thanks :)

Warm Regards,
Nikhil.

-Original Message-
From: Scott Hamm [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 10:24 PM
To: 'Mysql ' (E-mail)
Subject: Happy Thanksgiving Everyone!


I wish everyone a good and fateenin' Thanksgiving from United States!

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Delete duplicate records

2004-11-24 Thread Manish
I have got few duplicate record in my DB as follows.-

Let's say record_no is the unique id of duplicate records.
So I have fields ID, record_no , X and Y. (ID is a dif filed and is a
primary key)

To find duplicates I do following -

select record_no,count(record_no) from mytable group by record_no having
count  1;

Now I want to delete all these duplicate records in such a way that only one
of them for each record_no stays in the database (the one with highest ID
may stay).
How can I do this??

TIA,
- Manish





-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]