innodb engine status

2007-08-29 Thread Ananda Kumar
Hi Friends,

When i do SHOW INNODB STATUS\G. It gives me details of transaction
happening on INNODB engine.

Please let me know what all information i should consider from this output
to ensure if everything is fine or there are issue which i should address.

I am using mysql version 5.0.41-community-log

regards
anandkl


Re: innodb engine status

2007-08-29 Thread Alex Arul Lurthu
To have a good understanding on the show innodb status output checkout
http://www.mysqlperformanceblog.com/2006/07/17/show-innodb-status-walk-through/

One area you can look at is the LATEST DETECTED DEADLOCK. But in most
cases have found calculations on the status variables more helpful.

--
Alex
http://alexlurthu.wordpress.com

On 8/29/07, Ananda Kumar [EMAIL PROTECTED] wrote:

 Hi Friends,

 When i do SHOW INNODB STATUS\G. It gives me details of transaction
 happening on INNODB engine.

 Please let me know what all information i should consider from this output
 to ensure if everything is fine or there are issue which i should address.

 I am using mysql version 5.0.41-community-log

 regards
 anandkl



SCRIPT OR TOOL TO GIVE CHANGES IN DATABASES

2007-08-29 Thread Krishna Chandra Prajapati
Hi All,

Is there is any script or tool that generate the report and send an email
for changes done in the databases;

There is any otherway (manual) So that i can look that what changes has been
done in the database today.

Regards,
Krishna


Re: innodb engine status

2007-08-29 Thread Ananda Kumar
Thanks a lot Alex.

regards
anandkl


On 8/29/07, Alex Arul Lurthu [EMAIL PROTECTED] wrote:

 To have a good understanding on the show innodb status output checkout 
 http://www.mysqlperformanceblog.com/2006/07/17/show-innodb-status-walk-through/


 One area you can look at is the LATEST DETECTED DEADLOCK. But in most
 cases have found calculations on the status variables more helpful.

 --
 Alex
 http://alexlurthu.wordpress.com

 On 8/29/07, Ananda Kumar [EMAIL PROTECTED] wrote:
 
  Hi Friends,
 
  When i do SHOW INNODB STATUS\G. It gives me details of transaction
  happening on INNODB engine.
 
  Please let me know what all information i should consider from this
  output
  to ensure if everything is fine or there are issue which i should
  address.
 
  I am using mysql version 5.0.41-community-log
 
  regards
  anandkl
 







Re: SCRIPT OR TOOL TO GIVE CHANGES IN DATABASES

2007-08-29 Thread Alex Arul Lurthu
If you want to track the schema level changes, updates, inserts etc you
always have the binlogs/update logs. If you want to track select queries
also you have the general query log. Check out
http://dev.mysql.com/doc/refman/4.1/en/log-files.html for the different logs
available. Of course be wary of the performance implications.

-- 
Alex
http://alexlurthu.wordpress.com/

On 8/29/07, Krishna Chandra Prajapati [EMAIL PROTECTED] wrote:

 Hi All,

 Is there is any script or tool that generate the report and send an email
 for changes done in the databases;

 There is any otherway (manual) So that i can look that what changes has
 been
 done in the database today.

 Regards,
 Krishna



Re: SCRIPT OR TOOL TO GIVE CHANGES IN DATABASES

2007-08-29 Thread Edoardo Serra

Hi Krishna,
you can use MySQL binlog to see queries that made changes to db data

Hope it helps

Regards

Krishna Chandra Prajapati ha scritto:

Hi All,

Is there is any script or tool that generate the report and send an email
for changes done in the databases;

There is any otherway (manual) So that i can look that what changes has been
done in the database today.

Regards,
Krishna



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



ANN: SQL Maestro for MySQL 7.8 released

2007-08-29 Thread SQL Maestro Group

Hi!

SQL Maestro Group announce the release of SQL Maestro for MySQL 7.8, a 
complete Windows GUI solution for MySQL administration and database 
development.


http://www.sqlmaestro.com/products/mysql/maestro/

New features:

1. SQL Maestro for MySQL is optimized to work with MySQL servers with a 
small timeout.


2. Since this version you can reorder columns for existing tables. It is 
also possible to reorder parameters for a stored procedure/function and 
reorder partitions (only for newly created tables).


3. It is now possible to cancel a long running query execution (MySQL 5) and 
data fetching (all MySQL versions).


4. The SQL Formatter for DML statements (SELECT, INSERT, UPDATE and DELETE) 
is implemented. It can be invoked through the Format SQL link on the SQL 
Editor's navigation bar (Ctrl+Alt+D shortcut). Also it is now used for view 
body formatting (MySQL stores such bodies as a single line)


5. Data grid: the editor for ENUM fields displays a lookup list with 
enumeration values.

// ...
14. Foreign key editor: now only InnoDB tables are displayed in the foreign 
table list. Table engine is also now checked for the Relation tool in 
Database Designer.


Full press release is available at:
http://www.sqlmaestro.com/news/company/4663/

Thank you for your attention.

Sincerely yours,
SQL Maestro Group
http://www.sqlmaestro.com


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



thread_concurrency in linux

2007-08-29 Thread Andrew Braithwaite
Hi,

Does anyone know if thread_concurrency works in linux or is it just
limited to Solaris and Windows?

I know the general rule is number of CPU's*2 but will this actually have
any effect with Linux's threading model?

Thanks for any help :)

Andrew

Mysql, query


This message has been scanned for viruses by BlackSpider MailControl - 
www.blackspider.com

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



Re: thread_concurrency in linux

2007-08-29 Thread Alex Arul Lurthu
I am not sure whether you are talking about innodb_thread_concurrency. If so
please check out
http://www.mysqlperformanceblog.com/2006/06/05/innodb-thread-concurrency for
more details. Innodb_thread_concurrency works on linux.

Thanks
Alex

On 8/29/07, Andrew Braithwaite [EMAIL PROTECTED] wrote:

 Hi,

 Does anyone know if thread_concurrency works in linux or is it just
 limited to Solaris and Windows?

 I know the general rule is number of CPU's*2 but will this actually have
 any effect with Linux's threading model?

 Thanks for any help :)

 Andrew

 Mysql, query


 This message has been scanned for viruses by BlackSpider MailControl -
 www.blackspider.com

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




-- 
Thanks
Alex
http://blog.360.yahoo.com/alex.lurthu


Re: SCRIPT OR TOOL TO GIVE CHANGES IN DATABASES

2007-08-29 Thread Ananda Kumar
Hi All,
Also, i guess u can use tools like TOAD or sqltools to get reports on db
changes.

regards
anandkl


On 8/29/07, Edoardo Serra [EMAIL PROTECTED] wrote:

 Hi Krishna,
you can use MySQL binlog to see queries that made changes to db
 data

 Hope it helps

 Regards

 Krishna Chandra Prajapati ha scritto:
  Hi All,
 
  Is there is any script or tool that generate the report and send an
 email
  for changes done in the databases;
 
  There is any otherway (manual) So that i can look that what changes has
 been
  done in the database today.
 
  Regards,
  Krishna
 

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




RE: thread_concurrency in linux

2007-08-29 Thread Andrew Braithwaite
Hi,

Just to make it clear; I mean thread_concurrency, not
innodb_thread_concurrency.

Cheers,

Andrew



From: Alex Arul Lurthu [mailto:[EMAIL PROTECTED] 
Sent: Wed, 29 August 2007 10:10
To: Andrew Braithwaite
Cc: mysql@lists.mysql.com
Subject: Re: thread_concurrency in linux


I am not sure whether you are talking about innodb_thread_concurrency.
If so please check out
http://www.mysqlperformanceblog.com/2006/06/05/innodb-thread-concurrency
http://www.mysqlperformanceblog.com/2006/06/05/innodb-thread-concurrenc
y for more details. Innodb_thread_concurrency works on linux.

Thanks
Alex


On 8/29/07, Andrew Braithwaite  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

Hi,

Does anyone know if thread_concurrency works in linux or is it
just 
limited to Solaris and Windows?

I know the general rule is number of CPU's*2 but will this
actually have
any effect with Linux's threading model?

Thanks for any help :)

Andrew

Mysql, query 


This message has been scanned for viruses by BlackSpider
MailControl - www.blackspider.com

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






-- 
Thanks
Alex
http://blog.360.yahoo.com/alex.lurthu 



Click here
https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg==
iiiREta3C9fLX2sgE4nZ0noAtl5JkL!iHvm8DPbEDRRKpLeL7ikiuRlyFp0i7J7fYEY7nF3F
VUYnGZkja2gCxA9NHjly6QmOpZocISpuA+UrwziytsgRcJau9lJ+URueA6A4sujcf4weV3KV
xWnxPySn+mZ5GsUC1bNZpbK2T8Bb8k9u!n4UIOoj  to report this email as spam.


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



INSERT QUERY

2007-08-29 Thread Krishna Chandra Prajapati
hi all,

create table stu (name varchar(20), roll int(2), id decimal(2));

insert into stu values ('krishna', '25', '25');
insert into stu values ('krishna', 25, 25);

The above two queries are working properly.
my question is whether it is going to impact in future.
Integer and decimal values in quotes (') and without quotes makes any
difference.
Normally which format should be used.

Regards,
Krishna


Re: INSERT QUERY

2007-08-29 Thread Ananda Kumar
Its all ways better to use integers without quotes. It would effect
execution plan of the sql.

regards
anandkl


On 8/29/07, Krishna Chandra Prajapati [EMAIL PROTECTED] wrote:

 hi all,

 create table stu (name varchar(20), roll int(2), id decimal(2));

 insert into stu values ('krishna', '25', '25');
 insert into stu values ('krishna', 25, 25);

 The above two queries are working properly.
 my question is whether it is going to impact in future.
 Integer and decimal values in quotes (') and without quotes makes any
 difference.
 Normally which format should be used.

 Regards,
 Krishna



Re: INSERT QUERY

2007-08-29 Thread Krishna Chandra Prajapati
Hi Anand,

Is there any other way it effects the queries.

Regards,
Krishna

On 8/29/07, Ananda Kumar [EMAIL PROTECTED] wrote:

 Its all ways better to use integers without quotes. It would effect
 execution plan of the sql.

 regards
 anandkl


 On 8/29/07, Krishna Chandra Prajapati [EMAIL PROTECTED] wrote:
 
  hi all,
 
  create table stu (name varchar(20), roll int(2), id decimal(2));
 
  insert into stu values ('krishna', '25', '25');
  insert into stu values ('krishna', 25, 25);
 
  The above two queries are working properly.
  my question is whether it is going to impact in future.
  Integer and decimal values in quotes (') and without quotes makes any
  difference.
  Normally which format should be used.
 
  Regards,
  Krishna
 




-- 
Krishna Chandra Prajapati
MySQL DBA,

Ed Ventures e-Learning Pvt. Ltd,
201,202, Ashoka Bhoopal Chambers,
S P Road, Secunderabad 53.
Ph. No. - 040-39188771
Url: www.ed-ventures-online.com


Unknown column error after upgrading from 4.0 to 5.0

2007-08-29 Thread Federico Giannici
Since we upgraded from MySQL 4.0 to 5.0 (under OpenBSD 4.1 amd64) the 
following command:


select count(*) as total from products_description pd, products p left 
join manufacturers m on p.manufacturers_id = m.manufacturers_id, 
products_to_categories p2c left join specials s on p.products_id = 
s.products_id where p.products_status = '1' and p.products_id = 
p2c.products_id and pd.products_id = p2c.products_id and pd.language_id 
= '1' and p2c.categories_id = '1'


give the following error:

ERROR 1054 (42S22): Unknown column 'p.products_id' in 'on clause'

What's wrong with that command?
And why it worked correctly under 4.0?


I tried to eliminate the aliases and use directly the real tables names 
but nothing changed.


Obviously the column exists, the following command works:

select products.products_id from products



Thanks.

--
___
__
   |-  [EMAIL PROTECTED]
   |ederico Giannici  http://www.neomedia.it
___

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



Re: INSERT QUERY

2007-08-29 Thread Ananda Kumar
No, i dont see any other effect.

On 8/29/07, Krishna Chandra Prajapati [EMAIL PROTECTED] wrote:

 Hi Anand,

 Is there any other way it effects the queries.

 Regards,
 Krishna

 On 8/29/07, Ananda Kumar  [EMAIL PROTECTED] wrote:
 
  Its all ways better to use integers without quotes. It would effect
  execution plan of the sql.
 
  regards
  anandkl
 
 
   On 8/29/07, Krishna Chandra Prajapati [EMAIL PROTECTED]  wrote:
  
   hi all,
  
   create table stu (name varchar(20), roll int(2), id decimal(2));
  
   insert into stu values ('krishna', '25', '25');
   insert into stu values ('krishna', 25, 25);
  
   The above two queries are working properly.
   my question is whether it is going to impact in future.
   Integer and decimal values in quotes (') and without quotes makes any
   difference.
   Normally which format should be used.
  
   Regards,
   Krishna
  
 
 


 --
 Krishna Chandra Prajapati
 MySQL DBA,

 Ed Ventures e-Learning Pvt. Ltd,
 201,202, Ashoka Bhoopal Chambers,
 S P Road, Secunderabad 53.
 Ph. No. - 040-39188771
 Url: www.ed-ventures-online.com


Re: Unknown column error after upgrading from 4.0 to 5.0

2007-08-29 Thread Baron Schwartz
Try not mixing left join and comma-joins, and use an INNER JOIN keyword 
between m.manufacturers_id, products_to_categories


Baron

Federico Giannici wrote:
Since we upgraded from MySQL 4.0 to 5.0 (under OpenBSD 4.1 amd64) the 
following command:


select count(*) as total from products_description pd, products p left 
join manufacturers m on p.manufacturers_id = m.manufacturers_id, 
products_to_categories p2c left join specials s on p.products_id = 
s.products_id where p.products_status = '1' and p.products_id = 
p2c.products_id and pd.products_id = p2c.products_id and pd.language_id 
= '1' and p2c.categories_id = '1'


give the following error:

ERROR 1054 (42S22): Unknown column 'p.products_id' in 'on clause'

What's wrong with that command?
And why it worked correctly under 4.0?


I tried to eliminate the aliases and use directly the real tables names 
but nothing changed.


Obviously the column exists, the following command works:

select products.products_id from products



Thanks.




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



Re: Unknown column error after upgrading from 4.0 to 5.0

2007-08-29 Thread Johan Höök

Hi Frederico,
the precedence between the comma-operator and JOIN changed
with 5.0.12.
See http://dev.mysql.com/doc/refman/5.0/en/join.html
Excerpt from that article:
Previously, the comma operator (,) and JOIN both had the same 
precedence, so the join expression t1, t2 JOIN t3 was interpreted as 
((t1, t2) JOIN t3). Now JOIN has higher precedence, so the expression is 
interpreted as (t1, (t2 JOIN t3)). This change affects statements that 
use an ON clause, because that clause can refer only to columns in the 
operands of the join, and the change in precedence changes 
interpretation of what those operands are.


Example:
CREATE TABLE t1 (i1 INT, j1 INT);
CREATE TABLE t2 (i2 INT, j2 INT);
CREATE TABLE t3 (i3 INT, j3 INT);
INSERT INTO t1 VALUES(1,1);
INSERT INTO t2 VALUES(1,1);
INSERT INTO t3 VALUES(1,1);
SELECT * FROM t1, t2 JOIN t3 ON (t1.i1 = t3.i3);

Previously, the SELECT was legal due to the implicit grouping of t1,t2 
as (t1,t2). Now the JOIN takes precedence, so the operands for the ON 
clause are t2 and t3. Because t1.i1 is not a column in either of the 
operands, the result is an Unknown column 't1.i1' in 'on clause' error. 
To allow the join to be processed, group the first two tables explicitly 
with parentheses so that the operands for the ON clause are (t1,t2) and t3:

End excerpt.

/Johan

Federico Giannici skrev:
Since we upgraded from MySQL 4.0 to 5.0 (under OpenBSD 4.1 amd64) the 
following command:


select count(*) as total from products_description pd, products p left 
join manufacturers m on p.manufacturers_id = m.manufacturers_id, 
products_to_categories p2c left join specials s on p.products_id = 
s.products_id where p.products_status = '1' and p.products_id = 
p2c.products_id and pd.products_id = p2c.products_id and pd.language_id 
= '1' and p2c.categories_id = '1'


give the following error:

ERROR 1054 (42S22): Unknown column 'p.products_id' in 'on clause'

What's wrong with that command?
And why it worked correctly under 4.0?


I tried to eliminate the aliases and use directly the real tables names 
but nothing changed.


Obviously the column exists, the following command works:

select products.products_id from products



Thanks.



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



MySQL Proxy documentation

2007-08-29 Thread Stefan Hinz
The MySQL Proxy documentation is in place!

The MySQL Proxy is an application that communicates over the network
using the MySQL Network Protocol and provides communication between
MySQL servers and MySQL clients. In the most basic configuration, MySQL
Proxy simply passes on queries from the client to the MySQL Server and
returns the responses from the MySQL Server to the client.

By intercepting queries from the client, the Proxy can insert additional
queries into the list of queries sent to the server, and remove the
additional results when they are returned by the server. Using this
functionality you can add informational statements to each query, for
example to monitor their execution time or progress, and separately log
the results, while still returning the results from the original query
to the client.

The proxy allows you to perform additional monitoring, filtering or
manipulation on queries without you having to make any modifications to
the client and without the client even being aware that it is
communicating with anything but a genuine MySQL server.

The MySQL Proxy is available for MySQL servers 4.1 or better and is
documented in these MySQL Reference Manuals:

* http://dev.mysql.com/doc/refman/5.1/en/mysql-proxy.html
* http://dev.mysql.com/doc/refman/5.0/en/mysql-proxy.html
* http://dev.mysql.com/doc/refman/4.1/en/mysql-proxy.html

It's also available in various download formats from the MySQL
documentation overview page (http://dev.mysql.com/doc).

Regards,

Stefan
-- 
Stefan Hinz [EMAIL PROTECTED]
MySQL AB Documentation Manager. Berlin, Germany (UTC +2:00)
Skype:stefanhinz Cell:+491777841069 Desk:+493082702940 Fax:+493082702941

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



Re: innodb engine status

2007-08-29 Thread Baron Schwartz

Alex Arul Lurthu wrote:

To have a good understanding on the show innodb status output checkout
http://www.mysqlperformanceblog.com/2006/07/17/show-innodb-status-walk-through/

One area you can look at is the LATEST DETECTED DEADLOCK. But in most
cases have found calculations on the status variables more helpful.


A great article.  Once you learn what all those things mean, innotop 
(http://innotop.sourceforge.net/) can help monitor them too.


Baron

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



MySQL 5.1.21-beta has been released

2007-08-29 Thread Joerg Bruehe

Dear MySQL users,

We are proud to present to you the MySQL Server 5.1.21-beta
release, a new beta version of the popular open source database.

Bear in mind that this is a beta release, and as with any other
pre-production release, caution should be taken when installing on
production level systems or systems with critical data. For production
level systems using 5.0, we would like to direct your attention to the
product description of MySQL Enterprise at:

  http://mysql.com/products/enterprise/

The MySQL 5.1.21-beta release is now available in source and binary form
for a number of platforms from our download pages at

  http://dev.mysql.com/downloads/

and mirror sites. Note that not all mirror sites may be up to date at
this point in time, so if you can't find this version on some mirror,
please try again later or choose another download site.

Please also note that some of our mirrors are currently experiencing
problems that may result in serving corrupted files. We are working with
the mirror maintainers to resolve this.

We welcome and appreciate your feedback, bug reports, bug fixes,
patches etc.:

  http://forge.mysql.com/wiki/Contributing

The following section lists the changes from version to version in the
MySQL source code since the latest released version of MySQL 5.1, the
MySQL 5.1.20-beta release. It can also be viewed online at

  http://dev.mysql.com/doc/refman/5.1/en/news-5-1-21.html


Functionality added or changed:
  * Incompatible change: In MySQL 5.1.6, when log tables were
implemented, the default log destination for the general query
and slow query log was TABLE. This default has been changed to
FILE, which is compatible with MySQL 5.0, but incompatible
with earlier releases of MySQL 5.1 from 5.1.6 to 5.1.20. If
you are upgrading from MySQL 5.0 to this release, no logging
option  changes should be necessary. However, if you are
upgrading from 5.1.6 through 5.1.20 to this release and were
using  TABLE  logging, use the --log-output=TABLE option
explicitly to preserve your server's table-logging behavior.
(Bug#29993: http://bugs.mysql.com/29993)
  * The  --syslog  option  that was introduced in 5.1.20 for
mysqld_safe (to send error output to syslog) did not work
correctly:  Error  output  was  buffered  and not logged
immediately.  This has been corrected. In addition, some
feature changes were made:
   + Important: The default mysqld_safe logging behavior now
 is  --skip-syslog  rather  than  --syslog, which is
 compatible with the default behavior of writing an error
 log file for releases prior to 5.1.20.
   + A new option, --syslog-tag=tag, modifies the default tags
 written  by  mysqld_safe and mysqld to syslog to be
 mysqld_safe-tag and mysqld-tag rather than the default
 tags of mysqld_safe and mysqld.
(Bug#29992: http://bugs.mysql.com/29992)
  * Several programs now accept --debug-check and --debug-info
options:  mysql,  mysqladmin,  mysqlbinlog,  mysqlcheck,
mysqldump, mysqlimport, mysqlshow, mysqlslap, mysqltest,
mysql_upgrade. (Note: mysql and mysqltest already accepted
--debug-info.) --debug-check prints debugging information at
program exit. --debug-info is similar but also prints memory
and CPU usage statistics. This patch also corrects a problem
for mysql that --debug-info did not display statistics at exit
time. (Bug#30127: http://bugs.mysql.com/30127)
  * Transaction support in the FEDERATED storage engine has been
disabled due to issues with multiple active transactions and
sessions on the same FEDERATEDtable.
(Bug#29875: http://bugs.mysql.com/29875)
  * Previously, prepared statements processed using PREPARE and
EXECUTE were not subject to caching in the query cache if they
contained any ? parameter markers. This limitation has been
lifted. (Bug#29318: http://bugs.mysql.com/29318)
  * Replication between master and slaves now supports different
column numbers within a table on both master and slave. The
rules  for  replication  where the table definitions are
different has also changed. This supercedes the functionality
for replication from the master table to a slave table with
more  columns  that  was added in MySQL 5.1.12. For more
information, see Section 15.3.1.19, Replication with Fewer
Columns on the Slave.
  * The SQL thread on a slave now is always allowed to enter
InnoDB even if this would exceed the limit imposed by the
innodb_thread_concurrency system variable. In cases of high
load on the slave server (when innodb_thread_concurrency is
reached), this change helps the slave stay more up to date
with the master; in the previous behavior, the SQL thread was
competing for resources with all client threads active on the
slave server. (Bug#25078: http://bugs.mysql.com/25078)


Reset a auto increment field?

2007-08-29 Thread Jason Pruim
Is there away to reset an auto incrementing field count? I have a  
database that currently has 935 records in it but because I have  
deleted a few the current number used for NEW records is 938 :) How  
can I get it to count the records and assign a record number based on  
the total count?


Hope that makes sense! Thanks for looking! :)

--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]




Re: Reset a auto increment field?

2007-08-29 Thread dpgirago
 Is there away to reset an auto incrementing field count? I have a 
 database that currently has 935 records in it but because I have 
 deleted a few the current number used for NEW records is 938 :) How 
 can I get it to count the records and assign a record number based on 
 the total count?

 Hope that makes sense! Thanks for looking! :)

 --

 Jason Pruim
 Raoset Inc.
 Technology Manager
 MQC Specialist
 3251 132nd ave
 Holland, MI, 49424
 www.raoset.com
 [EMAIL PROTECTED]

AFAIK, you need to drop and then recreate the auto-increment field, 
otherwise you'll get holes when you delete a record.

David



RE: Reset a auto increment field?

2007-08-29 Thread emierzwa
 To change the value of the AUTO_INCREMENT  counter to be used for new
rows, do this:

ALTER TABLE t2 AUTO_INCREMENT = value;

You cannot reset the counter to a value less than or equal to any that
have already been used. For MyISAM, if the value is less than or equal
to the maximum value currently in the AUTO_INCREMENT column, the value
is reset to the current maximum plus one. For InnoDB, you can use ALTER
TABLE ... AUTO_INCREMENT = value as of MySQL 5.0.3, but if the value is
less than the current maximum value in the column, no error message is
given and the current sequence value is not changed. 


Ed 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 29, 2007 11:02 AM
To: Jason Pruim
Cc: MySQL List
Subject: Re: Reset a auto increment field?

 Is there away to reset an auto incrementing field count? I have a 
 database that currently has 935 records in it but because I have 
 deleted a few the current number used for NEW records is 938 :) How 
 can I get it to count the records and assign a record number based on 
 the total count?

 Hope that makes sense! Thanks for looking! :)

 --

 Jason Pruim
 Raoset Inc.
 Technology Manager
 MQC Specialist
 3251 132nd ave
 Holland, MI, 49424
 www.raoset.com
 [EMAIL PROTECTED]

AFAIK, you need to drop and then recreate the auto-increment field, 
otherwise you'll get holes when you delete a record.

David



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



RE: [MYSQL]Time formatting for cycle time.

2007-08-29 Thread Weston, Craig \(OFT\)
Peter, Baron and all,

I think that I am almost there. Here's my query to return
cycle time in hours:minutes:seconds accounting for business hours. There
is some discussion as to when a ticket cycle time ends - for example if
a person works on a ticket at 10:00 at night and closes it, it should
end then, not at close of business that day. 

 

Thank you for your help. This is more complex than I really
feel qualified for and you have really helped me.

 

Regards,

Craig

 

 

DELIMITER $$

 

DROP FUNCTION IF EXISTS `BizHoursTimeDiff` $$

 

CREATE [EMAIL PROTECTED] FUNCTION `BizHoursTimeDiff`( d1
DATETIME, d2 DATETIME ) RETURNS char(30) CHARSET latin1

DETERMINISTIC

BEGIN

  DECLARE dow1, dow2, days, wknddays INT;

  DECLARE tdiff CHAR(20);

  SET dow1 = DAYOFWEEK(d1);

  SET dow2 = DAYOFWEEK(d2);

  set @dayEnd = (select time(`business_hours`.`Day_End`) from
`business_hours` limit 1);

  SET @dayStart = (select time(`business_hours`.`Day_Start`) from
`business_hours` limit 1);

 

set @d1 = if (TIME(d1)  @dayEnd,@dayEnd,d1);

 

 

set @d1 = if (TIME(d1) 

@dayStart,@dayStart,d1);

 

 

#set @d2 = if (TIME(@d2)  @dayStart,@dayStart,@d2);

 

#set @d2 = if @dayEnd,@dayEnd,@d2);

 

  SET tdiff = TIMEDIFF( TIME(d2), TIME(d1) );

  SET days = DATEDIFF(d2,d1);

  SET wknddays = 2 * FLOOR( days / 7 ) +

 IF( dow1 = 1 AND dow2  1,1,

 IF( dow1 = 7 AND dow2 = 1, 1,

 IF( dow1  1 AND dow1  dow2, 2,

 IF( dow1  7 AND dow2 = 7, 1, 0 )

   )

   )

   );

  SET @tdiff = tdiff;

  SET days = FLOOR(days - wkndDays) - (IF( ASCII(tdiff) = 45, 1, 0 ) +
(SELECT count(*)  FROM `holidays` WHERE `holidays`.`date` BETWEEN d1 AND
d2 AND WEEKDAY(`Holidays`.`date`)5));

  SET tdiff = IF( ASCII(tdiff) = 45, TIMEDIFF( '24:00:00',
SUBSTRING(tdiff,2)), TIMEDIFF( tdiff, '00:00:00' ));

 

  SET @hr = days * left((@dayEnd - @dayStart),2) + left(tdiff,2);

  SET @min = mid(tdiff,4,2);

  SET @sec = mid(tdiff,7,2);

 

  RETURN concat_ws(':',@hr,@min,@sec);

 

   END $$

 

DELIMITER ;

This e-mail, including any attachments, may be confidential, privileged or 
otherwise legally protected. It is intended only for the addressee. If you 
received this e-mail in error or from someone who was not authorized to send it 
to you, do not disseminate, copy or otherwise use this e-mail or its 
attachments.  Please notify the sender immediately by reply e-mail and delete 
the e-mail from your system.


Re: Reset a auto increment field?

2007-08-29 Thread Jason Pruim
If I understand you correctly, if my table is MyISAM, after I did a  
delete query I could just: ALTER TABLE t2 AUTO_INCREMENT=1; and  
that would cause the auto increment value to be set to 901 (Assuming  
900 total current records) on the next insert?



On Aug 29, 2007, at 1:48 PM, [EMAIL PROTECTED]  
[EMAIL PROTECTED] wrote:



 To change the value of the AUTO_INCREMENT  counter to be used for new
rows, do this:

ALTER TABLE t2 AUTO_INCREMENT = value;

You cannot reset the counter to a value less than or equal to any that
have already been used. For MyISAM, if the value is less than or equal
to the maximum value currently in the AUTO_INCREMENT column, the value
is reset to the current maximum plus one. For InnoDB, you can use  
ALTER
TABLE ... AUTO_INCREMENT = value as of MySQL 5.0.3, but if the  
value is

less than the current maximum value in the column, no error message is
given and the current sequence value is not changed.


Ed

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 29, 2007 11:02 AM
To: Jason Pruim
Cc: MySQL List
Subject: Re: Reset a auto increment field?


Is there away to reset an auto incrementing field count? I have a
database that currently has 935 records in it but because I have
deleted a few the current number used for NEW records is 938 :) How
can I get it to count the records and assign a record number based on
the total count?

Hope that makes sense! Thanks for looking! :)

--



Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]


AFAIK, you need to drop and then recreate the auto-increment field,
otherwise you'll get holes when you delete a record.

David



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





--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]



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



RE: Reset a auto increment field?

2007-08-29 Thread emierzwa
Yes, for a MyIsam type table.

Ed 

-Original Message-
From: Jason Pruim [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 29, 2007 11:53 AM
To: emierzwa
Cc: [EMAIL PROTECTED]; mysql@lists.mysql.com
Subject: Re: Reset a auto increment field?

If I understand you correctly, if my table is MyISAM, after I did a  
delete query I could just: ALTER TABLE t2 AUTO_INCREMENT=1; and  
that would cause the auto increment value to be set to 901 (Assuming  
900 total current records) on the next insert?


On Aug 29, 2007, at 1:48 PM, [EMAIL PROTECTED]  
[EMAIL PROTECTED] wrote:

  To change the value of the AUTO_INCREMENT  counter to be used for new
 rows, do this:

 ALTER TABLE t2 AUTO_INCREMENT = value;

 You cannot reset the counter to a value less than or equal to any that
 have already been used. For MyISAM, if the value is less than or equal
 to the maximum value currently in the AUTO_INCREMENT column, the value
 is reset to the current maximum plus one. For InnoDB, you can use  
 ALTER
 TABLE ... AUTO_INCREMENT = value as of MySQL 5.0.3, but if the  
 value is
 less than the current maximum value in the column, no error message is
 given and the current sequence value is not changed.


 Ed

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 29, 2007 11:02 AM
 To: Jason Pruim
 Cc: MySQL List
 Subject: Re: Reset a auto increment field?

 Is there away to reset an auto incrementing field count? I have a
 database that currently has 935 records in it but because I have
 deleted a few the current number used for NEW records is 938 :) How
 can I get it to count the records and assign a record number based on
 the total count?

 Hope that makes sense! Thanks for looking! :)

 --

 Jason Pruim
 Raoset Inc.
 Technology Manager
 MQC Specialist
 3251 132nd ave
 Holland, MI, 49424
 www.raoset.com
 [EMAIL PROTECTED]

 AFAIK, you need to drop and then recreate the auto-increment field,
 otherwise you'll get holes when you delete a record.

 David



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



--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]



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



InnoDB and RAW Device and autoextend question

2007-08-29 Thread Mariella Petrini
Hi All,


I have been using MySQL 5.1.x with InnoDB and Raw
Devices.

[mysqld]
innodb_data_home_dir=
innodb_data_file_path=/dev/hdd1:3Gnewraw;/dev/hdd2:2Gnewraw
...

[mysqld]
innodb_data_home_dir=
innodb_data_file_path=/dev/hdd1:5Graw;/dev/hdd2:2Graw


Is there any way to specifiy the autoextend option
(...::autoextend) when using Innodb with raw devices
for the Shared Tablespace ?


Thanks in advance for your help,

Mariella


   

Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/

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



Re: Reset a auto increment field?

2007-08-29 Thread Shawn Green

Hi Jason,

Jason Pruim wrote:
Is there away to reset an auto incrementing field count? I have a 
database that currently has 935 records in it but because I have deleted 
a few the current number used for NEW records is 938 :) How can I get it 
to count the records and assign a record number based on the total count?


Hope that makes sense! Thanks for looking! :)



Actually, it doesn't make sense and for the very reason you are trying 
to use it. At some point in history you had a record # 936. Because that 
record once existed, there may have been one or several things 
associated with it. Imagine the confusion that would ensue if the Social 
Security administration recycled an already issued number just as soon 
as the person using it died.


The safest thing to do is to pretend that the auto-incrementing field is 
an internal, non-editable field. Should you have gaps in your auto-inc 
values treat them as normal conditions of having an active database.


For another instance, assume that you are auto-incrementing the serial 
numbers to various items in an inventory control system. If an item is 
destroyed or taken out of use, you probably want to move that record 
from an activeitems table to some other location. Would you want to 
re-issue those numbers to newly purchased items just to fill in the gaps 
in the activeitems table? Of course not.


Now, with the understanding that doing this on a regular basis would be 
wrong, here is how to do it anyway: Use the auto_increment= option to 
an ALTER TABLE statement like this


ALTER TABLE mydata AUTO_INCREMENT=936;

(alter table)
http://dev.mysql.com/doc/refman/5.0/en/alter-table.html
(for the definition of table option)
http://dev.mysql.com/doc/refman/5.0/en/create-table.html

--
Shawn Green, Support Engineer
MySQL Inc., USA, www.mysql.com
Office: Blountville, TN
__  ___ ___   __
   /  |/  /_ __/ __/ __ \/ /
  / /|_/ / // /\ \/ /_/ / /__
 /_/  /_/\_, /___/\___\_\___/
___/
 Join the Quality Contribution Program Today!
 http://dev.mysql.com/qualitycontribution.html

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



RE: Reset a auto increment field?

2007-08-29 Thread Jerry Schwartz
It would not reset to 901 unless the highest numbered record were 900. It
won't fill in holes.

Since autoincrement fields are typically used as keys linking to other
tables, renumbering existing records is not done often. If you REALLY want
to renumber them all, copy the records to a new table but leave off the
autoincrement field. TRUNCATE the original table and copy back the original
records, supplying NULL for the autoincrement field.

Regards,

Jerry Schwartz
The Infoshop by Global Information Incorporated
195 Farmington Ave.
Farmington, CT 06032

860.674.8796 / FAX: 860.674.8341

www.the-infoshop.com
www.giiexpress.com
www.etudes-marche.com


 -Original Message-
 From: Jason Pruim [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 29, 2007 1:53 PM
 To: [EMAIL PROTECTED]@micron.com
 Cc: [EMAIL PROTECTED]; mysql@lists.mysql.com
 Subject: Re: Reset a auto increment field?

 If I understand you correctly, if my table is MyISAM, after I did a
 delete query I could just: ALTER TABLE t2 AUTO_INCREMENT=1; and
 that would cause the auto increment value to be set to 901 (Assuming
 900 total current records) on the next insert?


 On Aug 29, 2007, at 1:48 PM, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:

   To change the value of the AUTO_INCREMENT  counter to be
 used for new
  rows, do this:
 
  ALTER TABLE t2 AUTO_INCREMENT = value;
 
  You cannot reset the counter to a value less than or equal
 to any that
  have already been used. For MyISAM, if the value is less
 than or equal
  to the maximum value currently in the AUTO_INCREMENT
 column, the value
  is reset to the current maximum plus one. For InnoDB, you can use
  ALTER
  TABLE ... AUTO_INCREMENT = value as of MySQL 5.0.3, but if the
  value is
  less than the current maximum value in the column, no error
 message is
  given and the current sequence value is not changed.
 
 
  Ed
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, August 29, 2007 11:02 AM
  To: Jason Pruim
  Cc: MySQL List
  Subject: Re: Reset a auto increment field?
 
  Is there away to reset an auto incrementing field count? I have a
  database that currently has 935 records in it but because I have
  deleted a few the current number used for NEW records is 938 :) How
  can I get it to count the records and assign a record
 number based on
  the total count?
 
  Hope that makes sense! Thanks for looking! :)
 
  --
 
  Jason Pruim
  Raoset Inc.
  Technology Manager
  MQC Specialist
  3251 132nd ave
  Holland, MI, 49424
  www.raoset.com
  [EMAIL PROTECTED]
 
  AFAIK, you need to drop and then recreate the auto-increment field,
  otherwise you'll get holes when you delete a record.
 
  David
 
 
 
  --
  MySQL General Mailing List
  For list archives: http://lists.mysql.com/mysql
  To unsubscribe:http://lists.mysql.com/mysql?
  [EMAIL PROTECTED]
 
 

 --

 Jason Pruim
 Raoset Inc.
 Technology Manager
 MQC Specialist
 3251 132nd ave
 Holland, MI, 49424
 www.raoset.com
 [EMAIL PROTECTED]



 --
 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: Reset a auto increment field?

2007-08-29 Thread Jason Pruim


On Aug 29, 2007, at 2:30 PM, Shawn Green wrote:


Hi Jason,

Jason Pruim wrote:
Is there away to reset an auto incrementing field count? I have a  
database that currently has 935 records in it but because I have  
deleted a few the current number used for NEW records is 938 :)  
How can I get it to count the records and assign a record number  
based on the total count?

Hope that makes sense! Thanks for looking! :)


Actually, it doesn't make sense and for the very reason you are  
trying to use it. At some point in history you had a record # 936.  
Because that record once existed, there may have been one or  
several things associated with it. Imagine the confusion that would  
ensue if the Social Security administration recycled an already  
issued number just as soon as the person using it died.


The safest thing to do is to pretend that the auto-incrementing  
field is an internal, non-editable field. Should you have gaps in  
your auto-inc values treat them as normal conditions of having an  
active database.


For another instance, assume that you are auto-incrementing the  
serial numbers to various items in an inventory control system. If  
an item is destroyed or taken out of use, you probably want to move  
that record from an activeitems table to some other location.  
Would you want to re-issue those numbers to newly purchased items  
just to fill in the gaps in the activeitems table? Of course not.


Now, with the understanding that doing this on a regular basis  
would be wrong, here is how to do it anyway: Use the  
auto_increment= option to an ALTER TABLE statement like this


ALTER TABLE mydata AUTO_INCREMENT=936;

(alter table)
http://dev.mysql.com/doc/refman/5.0/en/alter-table.html
(for the definition of table option)
http://dev.mysql.com/doc/refman/5.0/en/create-table.html


I see what you are getting at with this, and have decided that  
mucking around with auto incrementing values doesn't exactly fit in  
with the way databases were designed to work.


Somehow though, I still need to supply this whether I end up adding a  
Record number field in the database, and then through php (The way  
the database is going to be accessed) assigned a record number to  
that field based on the total rows, and display that number rather  
then the internal record number.


This is getting complicated :)





--
Shawn Green, Support Engineer
MySQL Inc., USA, www.mysql.com
Office: Blountville, TN
__  ___ ___   __
   /  |/  /_ __/ __/ __ \/ /
  / /|_/ / // /\ \/ /_/ / /__
 /_/  /_/\_, /___/\___\_\___/
___/
 Join the Quality Contribution Program Today!
 http://dev.mysql.com/qualitycontribution.html

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





--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]



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



Re: Reset a auto increment field?

2007-08-29 Thread Shawn Green

Jason Pruim wrote:


snip

I see what you are getting at with this, and have decided that mucking 
around with auto incrementing values doesn't exactly fit in with the way 
databases were designed to work.


Somehow though, I still need to supply this whether I end up adding a 
Record number field in the database, and then through php (The way the 
database is going to be accessed) assigned a record number to that field 
based on the total rows, and display that number rather then the 
internal record number.


This is getting complicated :)



The concept of sequential numbers only applies to people. If a row has a 
unique identifier that's all you need to know to work with it.


For instance, if you have a list of 26 last names where each name starts 
with a different letter of the alphabet. You could enter them in any 
order you want and their ID values will be in apparently random order. 
However to see the names sorted, you apply an ORDER BY clause to your 
query. Now, the A name is #1 and the Z name is #26. Reverse that with 
ORDER BY ... desc and the A name will be #26 and the Z name will be #1 
in your output.  What if you wanted to list just those names after 'K'? 
Now the L name becomes #1. I hope this makes it clear that the concept 
of sequential numbers is only nice for people. Computers and databases 
don't need them to function well.


When you need to supply sequential numbers (as in popularity ranks) the 
easiest way to do it is to return an ordered list then number them as 
you output them with your client application.


--
Shawn Green, Support Engineer
MySQL Inc., USA, www.mysql.com
Office: Blountville, TN
__  ___ ___   __
   /  |/  /_ __/ __/ __ \/ /
  / /|_/ / // /\ \/ /_/ / /__
 /_/  /_/\_, /___/\___\_\___/
___/
 Join the Quality Contribution Program Today!
 http://dev.mysql.com/qualitycontribution.html

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



RE: Reset a auto increment field?

2007-08-29 Thread Jerry Schwartz
Do you mean you want to be able to display the record number as sorted by
the auto-increment field, rather than the auto-increment field itself? Or do
you just want the total number of records? Or do you just want the highest
current value of the auto-increment field?

The latter two are easy:

SELECT COUNT(*) FROM table;

SELECT MAX(auto_inc) FROM table;

Offhand, I do not know how to do the first.

Regards,

Jerry Schwartz
The Infoshop by Global Information Incorporated
195 Farmington Ave.
Farmington, CT 06032

860.674.8796 / FAX: 860.674.8341

www.the-infoshop.com
www.giiexpress.com
www.etudes-marche.com


 -Original Message-
 From: Jason Pruim [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 29, 2007 3:16 PM
 To: Shawn Green
 Cc: MySQL List
 Subject: Re: Reset a auto increment field?


 On Aug 29, 2007, at 2:30 PM, Shawn Green wrote:

  Hi Jason,
 
  Jason Pruim wrote:
  Is there away to reset an auto incrementing field count? I have a
  database that currently has 935 records in it but because I have
  deleted a few the current number used for NEW records is 938 :)
  How can I get it to count the records and assign a record number
  based on the total count?
  Hope that makes sense! Thanks for looking! :)
 
  Actually, it doesn't make sense and for the very reason you are
  trying to use it. At some point in history you had a record # 936.
  Because that record once existed, there may have been one or
  several things associated with it. Imagine the confusion
 that would
  ensue if the Social Security administration recycled an already
  issued number just as soon as the person using it died.
 
  The safest thing to do is to pretend that the auto-incrementing
  field is an internal, non-editable field. Should you have gaps in
  your auto-inc values treat them as normal conditions of having an
  active database.
 
  For another instance, assume that you are auto-incrementing the
  serial numbers to various items in an inventory control system. If
  an item is destroyed or taken out of use, you probably want
 to move
  that record from an activeitems table to some other location.
  Would you want to re-issue those numbers to newly purchased items
  just to fill in the gaps in the activeitems table? Of course not.
 
  Now, with the understanding that doing this on a regular basis
  would be wrong, here is how to do it anyway: Use the
  auto_increment= option to an ALTER TABLE statement like this
 
  ALTER TABLE mydata AUTO_INCREMENT=936;
 
  (alter table)
  http://dev.mysql.com/doc/refman/5.0/en/alter-table.html
  (for the definition of table option)
  http://dev.mysql.com/doc/refman/5.0/en/create-table.html

 I see what you are getting at with this, and have decided that
 mucking around with auto incrementing values doesn't exactly fit in
 with the way databases were designed to work.

 Somehow though, I still need to supply this whether I end up
 adding a
 Record number field in the database, and then through php (The way
 the database is going to be accessed) assigned a record number to
 that field based on the total rows, and display that number rather
 then the internal record number.

 This is getting complicated :)



 
  --
  Shawn Green, Support Engineer
  MySQL Inc., USA, www.mysql.com
  Office: Blountville, TN
  __  ___ ___   __
 /  |/  /_ __/ __/ __ \/ /
/ /|_/ / // /\ \/ /_/ / /__
   /_/  /_/\_, /___/\___\_\___/
  ___/
   Join the Quality Contribution Program Today!
   http://dev.mysql.com/qualitycontribution.html
 
  --
  MySQL General Mailing List
  For list archives: http://lists.mysql.com/mysql
  To unsubscribe:http://lists.mysql.com/mysql?
  [EMAIL PROTECTED]
 
 

 --

 Jason Pruim
 Raoset Inc.
 Technology Manager
 MQC Specialist
 3251 132nd ave
 Holland, MI, 49424
 www.raoset.com
 [EMAIL PROTECTED]



 --
 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: servers full potential / FT searches locking tables

2007-08-29 Thread Michael Dykman
I mean that the theoretical limit of a 32-bit application is 4G... in
practice, you won't quite get that (for a pile of practical reasons)..
  best to keep your configured memory requirements to around 3.5G or
you will run into weird errors.

 - michael dykman

On 8/28/07, Ken Peng [EMAIL PROTECTED] wrote:

 On Tue, 28 Aug 2007 13:31:43 -0400, Michael Dykman [EMAIL PROTECTED]
 said:
  No, I'm afraid not.  32 bit architectures have a theoretical limit of
  4G of memory space for the entire application: in actual practice, for
  a variety of reasons too complex to go into here (and are well
  documented elsewhere) your key buffer should be limited to around 2.5G
  max, and this is assuming a pure MyISAM implementation.  There simply
  is no way a 32 bit build can make use of all that RAM, regardless of
  OS.
 

 Hello Michael,

 Do you mean the entire mysqld server including its child,modules should
 only use 4G memory?
 If so,the config below for 32 bit OS is may wrong,is it?Thanks.

 key_buffer_size=2G
 innodb_buffer_pool_size=2G
 --
   Ken Peng
   [EMAIL PROTECTED]

 --
 http://www.fastmail.fm - The way an email service should be




-- 
 - michael dykman
 - [EMAIL PROTECTED]

 - All models are wrong.  Some models are useful.

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



remove me from this list please

2007-08-29 Thread [EMAIL PROTECTED]
Please remove me from this list or tell me how I can do this procedure...
Thanks...


mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



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



Re: [MySQL] remove me from this list please

2007-08-29 Thread Ashley M. Kirchner

[EMAIL PROTECTED] wrote:

Please remove me from this list or tell me how I can do this procedure...
Thanks...

   Have you noticed what the footer of each message says?

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


   Note I edited the above to include your e-mail address (instead of 
mine).  Each subscriber will have his or her e-mail address in that footer.



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



Re: servers full potential / FT searches locking tables

2007-08-29 Thread Ken Peng

On Wed, 29 Aug 2007 18:02:31 -0400, Michael Dykman [EMAIL PROTECTED]
said:
 I mean that the theoretical limit of a 32-bit application is 4G... in
 practice, you won't quite get that (for a pile of practical reasons)..
   best to keep your configured memory requirements to around 3.5G or
 you will run into weird errors.
 

Sorry,I mean is the entire mysql application limited to 4G?
Or single configuration argument is limited to 4G?

for example,

config_directive_a 2G
config_directive_b 2G
config_directive_c 2G

Though here I configured 6G totally,but each directive is 2G.
Is this right for a 32bit system?Thanks.
-- 
  Ken Peng
  [EMAIL PROTECTED]

-- 
http://www.fastmail.fm - I mean, what is it about a decent email service?


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



Re: servers full potential / FT searches locking tables

2007-08-29 Thread Michael Dykman
Sorry man, as everyone keeps saying, there is only 4 gig of ram in the
entire known 32 bit universe.. that includes space for
process-specific system buffers, file handles, internals...   the
TOTAL amount of ram you can give to 32-bit MySQL in ANY combination is
around 3.5G (many will tell you, not without reason the it's closer to
3.2 or 3.4..  situations vary)

 - md

On 8/29/07, Ken Peng [EMAIL PROTECTED] wrote:

 On Wed, 29 Aug 2007 18:02:31 -0400, Michael Dykman [EMAIL PROTECTED]
 said:
  I mean that the theoretical limit of a 32-bit application is 4G... in
  practice, you won't quite get that (for a pile of practical reasons)..
best to keep your configured memory requirements to around 3.5G or
  you will run into weird errors.
 

 Sorry,I mean is the entire mysql application limited to 4G?
 Or single configuration argument is limited to 4G?

 for example,

 config_directive_a 2G
 config_directive_b 2G
 config_directive_c 2G

 Though here I configured 6G totally,but each directive is 2G.
 Is this right for a 32bit system?Thanks.
 --
   Ken Peng
   [EMAIL PROTECTED]

 --
 http://www.fastmail.fm - I mean, what is it about a decent email service?


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




-- 
 - michael dykman
 - [EMAIL PROTECTED]

 - All models are wrong.  Some models are useful.

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