Re: Precautions to not run out of disk space?

2016-06-21 Thread Reindl Harald
Am 21.06.2016 um 09:41 schrieb Götz Reinicke - IT Koordinator: we recently had a software bug who wrote gigs of data to our database in a loop and finally filled the whole system. O.K. we could serverside use a separate partition/storage for the database directory, but I was wondering is mysql

Precautions to not run out of disk space?

2016-06-21 Thread Götz Reinicke - IT Koordinator
Hi, we recently had a software bug who wrote gigs of data to our database in a loop and finally filled the whole system. O.K. we could serverside use a separate partition/storage for the database directory, but I was wondering is mysql has a feature/option to set some sort of "minimum disk free"

Disk space required for taking backup

2015-10-15 Thread Jatin Davey
Hi All I use mysqldump to take the backup of the entire DB. I want to know if there is way to find out how much disk space would mysqldump require to take the backup of the entire DB in .sql file. Currently what we are doing is to check the size of the /var/lib/mysql/data directory and

Re: LOAD DATA INFILE with space after quote but before comma

2013-12-19 Thread hsv
>>>> 2013/12/18 11:07 -0500, Anthony Ball >>>> I ran across a curious issue, I'd call it a bug but I'm sure others would call it a feature. I have a csv file with space between the " and , and it causes MySQL to eat that field and the field after it as a sin

Re: LOAD DATA INFILE with space after quote but before comma

2013-12-18 Thread Dhaval Jaiswal
(1) yes it is an issue even i faced. for the remedy i search the {(" ,) (",)} values of " , space between " and , & replaced by ", in .csv itself. (2) The other way is, if all the values are like space between " , then you can use space and , in fields term

LOAD DATA INFILE with space after quote but before comma

2013-12-18 Thread Anthony Ball
I ran across a curious issue, I'd call it a bug but I'm sure others would call it a feature. I have a csv file with space between the " and , and it causes MySQL to eat that field and the field after it as a single field. Is there a setting I can use to remedy this or do I just ha

Re: space gone after MyISAM REPAIR TABLE

2013-06-26 Thread Divesh Kamra
the SHOW CREATE TABLE? Some of this smells bad. >> * It is almost always bad to split day/month/year into multiple fields. >> * Often a "fact" table, which this sounds like, should not have extra >> indexes. >> * Is each datatype as small as is practical? &g

Re: space gone after MyISAM REPAIR TABLE

2013-06-26 Thread Jay Ess
On 2013-06-27 01:27, nixofortune wrote: Now importing with Keys in place. It takes longer, much longer but at least the server is working and customers do not complaint. Schema design is awful, agree. I try to understand the process so will redesign it soon, but any suggestions are welcome. I'

RE: space gone after MyISAM REPAIR TABLE

2013-06-26 Thread Rick James
year into multiple fields. * Often a "fact" table, which this sounds like, should not have extra indexes. * Is each datatype as small as is practical? * Are any of the fields VARCHAR, and could be 'normalized'? I would expect this to the fastest way to convert (assuming you have the

Re: space gone after MyISAM REPAIR TABLE

2013-06-26 Thread nixofortune
fields VARCHAR, and could be 'normalized'? I would expect this to the fastest way to convert (assuming you have the disk space): CREATE TABLE new LIKE old; ALTER TABLE new DROP (all indexes), ADD PRIMARY KEY (either autoincrement or a 'natural' compound PK), ENGI

Re: space gone after MyISAM REPAIR TABLE

2013-06-26 Thread hsv
2013/06/26 17:31 +0100, nixofortune ALTER TABLE `new_innodb` ADD KEY `idx1` (`col1`,`col2`), ADD KEY `idx2` (`col1`,`col2`,`col3`); Is it really seemly for one index to be a leading part of another? (or maybe I am really thinking of something else) -- MySQL General Mailing Li

Re: space gone after MyISAM REPAIR TABLE

2013-06-26 Thread Johan De Meersman
You can't actually move innodb tables around until 5.6 where you have transpotable tablespaces. I suggest having a good hard look at pt-online-schema-change or whatsitcalled. Jay Ess wrote: >On 2013-06-26 18:31, nixofortune wrote: >> What would be the best way to convert BIG MyISAM table into I

Re: space gone after MyISAM REPAIR TABLE

2013-06-26 Thread nixofortune
On 25/06/13 23:55, Rick James wrote: Switch to InnoDB so you won't have to repair after crashes. Caution: InnoDB takes 2x-3x the disk space per table. Be sure to use innodb_file_per_table=1. " Repair by sort." is usually much faster than "repair by keycache"; you pro

Re: space gone after MyISAM REPAIR TABLE

2013-06-26 Thread Jay Ess
On 2013-06-26 18:31, nixofortune wrote: > What would be the best way to convert BIG MyISAM table into InnoDB? We do not > have SLAVE. I would do it on another computer. Then copy the table to the server and then add the data that has been added from the original table. And/or i would experiment w

RE: space gone after MyISAM REPAIR TABLE

2013-06-25 Thread Rick James
Switch to InnoDB so you won't have to repair after crashes. Caution: InnoDB takes 2x-3x the disk space per table. Be sure to use innodb_file_per_table=1. " Repair by sort." is usually much faster than "repair by keycache"; you probably got 'sort

Re: space gone after MyISAM REPAIR TABLE

2013-06-24 Thread nixofortune
On 24/06/13 19:57, Reindl Harald wrote: Am 24.06.2013 18:47, schrieb Johan De Meersman: - Original Message - From: "nixofortune" Hi guys, any suggestions? I just repaired 90G MyISAM table with REPAIR TABLE command. the space on the hard drive gone down from 165 Gig to

Re: space gone after MyISAM REPAIR TABLE

2013-06-24 Thread Johan De Meersman
Oops, totally missed that, thanks. Reindl Harald wrote: > > >Am 24.06.2013 18:47, schrieb Johan De Meersman: >> - Original Message - >>> From: "nixofortune" >>> >>> Hi guys, >>> any suggestions? I just repaired 90G MyISAM tab

Re: space gone after MyISAM REPAIR TABLE

2013-06-24 Thread Reindl Harald
Am 24.06.2013 18:47, schrieb Johan De Meersman: > - Original Message - >> From: "nixofortune" >> >> Hi guys, >> any suggestions? I just repaired 90G MyISAM table with REPAIR TABLE >> command. the space on the hard drive gone down from 165

Re: space gone after MyISAM REPAIR TABLE

2013-06-24 Thread Johan De Meersman
- Original Message - > From: "nixofortune" > > Hi guys, > any suggestions? I just repaired 90G MyISAM table with REPAIR TABLE > command. the space on the hard drive gone down from 165 Gig to 70 > Gig. I understand that during repair process MySQL creates tem

space gone after MyISAM REPAIR TABLE

2013-06-24 Thread nixofortune
Hi guys, any suggestions? I just repaired 90G MyISAM table with REPAIR TABLE command. the space on the hard drive gone down from 165 Gig to 70 Gig. I understand that during repair process MySQL creates temp file and remove it after the job done. Or removal process executes on the server

RE: Dropping column/index from MyISAM table increases disk space without calling "optimize"

2013-05-14 Thread Rick James
Sorry, I can't address your specific question, but I have several other tips, some of which may save a lot of space... USING HASH -- ignored; presumably BTree is used instead. What Version of MySQL? 5.5(?) can drop an InnoDB (only?) index live. BTrees sometimes grow after any sort of

Re: Adding new disk (space) to mysql box

2013-04-09 Thread Reindl Harald
Am 09.04.2013 08:36, schrieb a bv: > What is the best way and steps to add new disk or SAN to a LVM setuped > mysql/linux box?. > > If there are slots is it better to add a physical one or a SAN space? How > would add that at linux /lvm. What to do at the current mysql database?

Adding new disk (space) to mysql box

2013-04-09 Thread a bv
Hi, What is the best way and steps to add new disk or SAN to a LVM setuped mysql/linux box?. If there are slots is it better to add a physical one or a SAN space? How would add that at linux /lvm. What to do at the current mysql database? Kernel is 2.6.x.x , any storage size restriction for

Unused space in table cache, while tables are being opened

2013-02-25 Thread Johan De Meersman
tuses: | Open_files | 5421 | | Open_table_definitions | 2669 | | Open_tables | 3913 | | Opened_table_definitions | 493857 | | Opened_tables | 638469 | In the space of five minutes, opened_table_definitions grows about 24 and opened_tables about 30; while there is still room in both caches. I'v

Re: innodb space free decreasing by more then the amount of data we're adding

2011-11-24 Thread Hal�sz S�ndor
;>>> 2011/11/22 12:44 -0800, Sean Sidelko >>>> We just moved a large amount of data off one of our db servers to another one (75gb of data). One thing I've noticed is that over the last couple days the free innodb space has been decreasing by over 2.5 gb a day while w

innodb space free decreasing by more then the amount of data we're adding

2011-11-22 Thread Sean Sidelko
We just moved a large amount of data off one of our db servers to another one (75gb of data). One thing I've noticed is that over the last couple days the free innodb space has been decreasing by over 2.5 gb a day while we've only been adding 400 mb of data a day to the db server.

RE: Reusing "ibdata1" space

2011-11-22 Thread Rozeboom, Kay [DAS]
To: Rozeboom, Kay [DAS] Cc: mysql@lists.mysql.com Subject: Re: Reusing "ibdata1" space - Original Message - > From: "Kay Rozeboom [DAS]" > > I realize that this would not return the unused space to the operating > system. But would it return it to M

Re: Reusing "ibdata1" space

2011-11-10 Thread Johan De Meersman
- Original Message - > From: "Prabhat Kumar" > I wonder, if there could be any method to regain InnoDB space other > than dump the whole database and reimport. Very simple answer to that: no. -- Bier met grenadyn Is als mosterd by den wyn Sy die't drinkt,

Re: Reusing "ibdata1" space

2011-11-10 Thread Prabhat Kumar
I wonder, if there could be any method to regain InnoDB space other than dump the whole database and reimport. Thanks, On Thu, Nov 10, 2011 at 12:44 AM, Johan De Meersman wrote: > - Original Message - > > From: "Nick Khamis" > > > > I should mention that

Re: Reusing "ibdata1" space

2011-11-10 Thread Johan De Meersman
- Original Message - > From: "Nick Khamis" > > I should mention that we have deleted the ib_* files in the past. I hope that was an accident, because if you thought that was a good idea I'm sending someone over with the spiked cluebat. Luckily for you, the solution to that particular p

Re: Reusing "ibdata1" space

2011-11-09 Thread Nick Khamis
Hello Reindl, I just noticed that I misspelled your name. Sorry about that! Cheers, Nick. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: Reusing "ibdata1" space

2011-11-09 Thread Nick Khamis
y growing.  I understand that to return >> the unused space to the operating system, we must delete and recreate >> "ibdata1" and its associated ".frm" files.  I am wondering if we could do >> the following instead: >> >> 1)      Let "ibdata1

Reusing "ibdata1" space

2011-11-02 Thread Rozeboom, Kay [DAS]
Thanks to everyone who replied to my question. Kay Rozeboom Information Technology Enterprise Iowa Department of Administrative Services Telephone: 515.281.6139 Fax: 515.281.6137 Email: kay.rozeb...@iowa.gov -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To u

Re: Reusing "ibdata1" space

2011-11-01 Thread Johan De Meersman
- Original Message - > From: "Kay Rozeboom [DAS]" > > I realize that this would not return the unused space to the > operating system. But would it return it to MySQL so that it could > be re-used for subsequent inserts, instead of extending "ibdata1&quo

Re: Reusing "ibdata1" space

2011-11-01 Thread Claudio Nanni
Kay, There's no way to regain InnoDB space. I can suggest some techniques but no magic. 1. dump the whole database and reimport 2. setup a brand new slave ,sync and switch to it Cheers Claudio 2011/11/1 Rozeboom, Kay [DAS] > We are running MySQL 5.0.77, and using I

Re: Reusing "ibdata1" space

2011-11-01 Thread Reindl Harald
eturn > the unused space to the operating system, we must delete and recreate > "ibdata1" and its associated ".frm" files. I am wondering if we could do the > following instead: > > 1) Let "ibdata1" grow for a while. > 2) Rebuild the tables

Reusing "ibdata1" space

2011-11-01 Thread Rozeboom, Kay [DAS]
We are running MySQL 5.0.77, and using INNODB in production for the first time. The production database has a lot of inserts and deletes, and the shared "ibdata1" file is continually growing. I understand that to return the unused space to the operating system, we must delete an

Re: Disk space ending with multiple tables

2011-10-28 Thread Johan De Meersman
- Original Message - > From: "a bv" > > I have a phpsyslog-ng box with different tables and disk usage is I assume that means you have a syslog service that logs to a MySQL database? > growing so fast nearly no space left. How must i move the old > files? I

Disk space ending with multiple tables

2011-10-27 Thread a bv
Hi, I have a phpsyslog-ng box with different tables and disk usage is growing so fast nearly no space left. How must i move the old files ? Is it ok to move just like an ordinary file or do something on mysql? Regards -- MySQL General Mailing List For list archives: http://lists.mysql.com

Re: Innodb table space questions

2011-01-17 Thread Angela liu
n, 1/17/11, Eric Bergen wrote: From: Eric Bergen Subject: Re: Innodb table space questions To: "Angela liu" Cc: mysql@lists.mysql.com Date: Monday, January 17, 2011, 10:09 PM reply inline On Mon, Jan 17, 2011 at 9:30 PM, Angela liu wrote: > Folks : > > two questions: > >

Re: Innodb table space questions

2011-01-17 Thread Eric Bergen
reply inline On Mon, Jan 17, 2011 at 9:30 PM, Angela liu wrote: > Folks : > > two questions: > > 1. can Innodb create per database table space , not per table table space? No. The only available options are creating a global tablespace which can be many files or a file per tabl

Innodb table space questions

2011-01-17 Thread Angela liu
Folks : two questions: 1. can Innodb create per database table space , not per table table space? 2. can we store table on specific tablespace like Oracle or DB2 when creating table? Many thanks.

Re: tmpdir running out of space

2011-01-03 Thread joshua
> I'm new to MySQL, and I hope somebody can help me. > I have a 3.7G database and a 10G tmpdir. > Sometimes the tmpdir runs out of space, and I get the following message on > the logs: > [ERROR] /usr/libexec/mysqld: Incorrect key file for table > '/tmp/tmpdir/#sql_2

tmpdir running out of space

2011-01-03 Thread Santiago Soares
Hello, everybody! I'm new to MySQL, and I hope somebody can help me. I have a 3.7G database and a 10G tmpdir. Sometimes the tmpdir runs out of space, and I get the following message on the logs: [ERROR] /usr/libexec/mysqld: Incorrect key file for table '/tmp/tmpdir/#sql_22f_33.MYI'

Re: Does innodb have a temp table space?

2010-09-02 Thread Shawn Green (MySQL)
On 9/2/2010 1:39 PM, neutron wrote: Hello Johan, Thanks for the reply. On Thu, Sep 2, 2010 at 3:34 AM, Johan De Meersman wrote: I suspect he is talking about the Temp Tablespace concept from Oracle, which is different from a temporary table or a memory table. MySQL will allocate a memory tab

Re: Does innodb have a temp table space?

2010-09-02 Thread neutron
h RAM and >> DISK >> based) >> >> http://dev.mysql.com/doc/refman/5.1/en/create-table.html >> >> Look at: >> >> TABLESPACE >> PARTITIONS >> ENGINE >> >> > -Original Message- >> > From: neutron [mail

Re: Does innodb have a temp table space?

2010-09-02 Thread Johan De Meersman
able.html > > Look at: > > TABLESPACE > PARTITIONS > ENGINE > > > -Original Message- > > From: neutron [mailto:neutronsh...@gmail.com] > > Sent: Wednesday, September 01, 2010 6:05 PM > > To: mysql@lists.mysql.com > > Subject: Does innodb have

RE: Does innodb have a temp table space?

2010-09-01 Thread Daevid Vincent
tronsh...@gmail.com] > Sent: Wednesday, September 01, 2010 6:05 PM > To: mysql@lists.mysql.com > Subject: Does innodb have a temp table space? > > Hi all, > > As far as I know, some DB has a separate table space to store temp > data (such as for external sort). > > M

Does innodb have a temp table space?

2010-09-01 Thread neutron
Hi all, As far as I know, some DB has a separate table space to store temp data (such as for external sort). My questions are: 1. Does innodb also has a separate temp-tablespace? 2. If I don't use "innodb_file_per_table", where is innodb's temporary tablespace? Is it in t

Re: How to define the initial space for a table

2010-07-14 Thread Prabhat Kumar
I am no sure you are taking about cluster table space or innodb table space. Just check : http://dev.mysql.com/doc/refman/5.1/en/create-tablespace.html http://dev.mysql.com/doc/refman/5.0/en/innodb-configuration.html On Wed, Jul 14, 2010 at 2:52 PM, alba.albetti wrote: > Is it possible

How to define the initial space for a table

2010-07-14 Thread alba.albetti
Is it possible in MySQL to define the initial space that the table is going to use and the space for its growth? I usually work on Oracle where the syntax is: create table MYTABLE (...fields...) tablespace MYTABLESPACE (initial 2M next 1M); that means Oracle reserves a data block of 2Mb for

Re: Altering database size to add more space

2010-06-25 Thread Carsten Pedersen
On Fri, 25 Jun 2010 06:31:11 -0500, Jim Lyons wrote: > I think you're confusing table size with data base size. The original post > grouped by schema so it appears the question concerns database size. I > don't believe mysql imposes any limits on that. Is there a limit on the > number of

Re: Altering database size to add more space

2010-06-25 Thread Jim Lyons
ri, Jun 25, 2010 at 4:13 AM, Johan De Meersman wrote: > On Fri, Jun 25, 2010 at 7:11 AM, Prabhat Kumar wrote: > >> In case MyISAM it will grow up to space on your data drive or the Max size >> of file limited by OS.. >> > > > Not entirely correct. There is some kind

Re: Altering database size to add more space

2010-06-25 Thread Johan De Meersman
On Fri, Jun 25, 2010 at 7:11 AM, Prabhat Kumar wrote: > In case MyISAM it will grow up to space on your data drive or the Max size > of file limited by OS.. > Not entirely correct. There is some kind of limit to a MyISAM file that has to do with pointer size - I've encountered it

Re: Altering database size to add more space

2010-06-24 Thread Prabhat Kumar
and-table.html> How can I increase the size of a database? > Its depend upon the how have you configured my.cnf and the type of engine you are using. In case MyISAM it will grow up to space on your data drive or the Max size of file limited by OS.. and In case of Innodb it will also grow up to

Re: Altering database size to add more space

2010-06-24 Thread Jim Lyons
t;) to another filesystem and symlink it. You can also store individual tables and table files on other file systems and symlink those. Either way, you have the total collection of disk space available to you. This assumes a Linux OS. If your innodb tables are being restricted, you need to s

Re: Altering database size to add more space

2010-06-24 Thread Ananda Kumar
what is the innodb file size that u have specified in my.cnf. If the last file is autoextend, that this will grow to the size of the disk space avaliable. regards anandkl On Thu, Jun 24, 2010 at 7:43 PM, Sarkis Karayan wrote: > I feel like I am missing something, because I am not able to f

Altering database size to add more space

2010-06-24 Thread Sarkis Karayan
I feel like I am missing something, because I am not able to find the answer to this simple question. How can I increase the size of a database? I am using the following query to check the available space and notice that it is time to increase. SELECT table_schema AS 'Db Name',

Re: disk space on arbitrary rows

2009-10-02 Thread Shawn Green
/storage-requirements.html 2009/9/30 John Dove Hi! I need to figure out how much disk space an arbitrary number of rows in a table take up. For example SELECT DISK_SPACE(*) FROM ORDERS WHERE CREATED_AT BETWEEN x AND y I know i could do something like a mysqldump with conditions and

Re: disk space on arbitrary rows

2009-09-30 Thread Claudio Nanni
-requirements.html 2009/9/30 John Dove > > > > > > > Hi! > > I need to figure out how much disk space an arbitrary number of rows in a > table take up. For example > > > SELECT DISK_SPACE(*) FROM ORDERS WHERE CREATED_AT BETWEEN x AND y > > > I know i could do someth

disk space on arbitrary rows

2009-09-30 Thread John Dove
Hi! I need to figure out how much disk space an arbitrary number of rows in a table take up. For example SELECT DISK_SPACE(*) FROM ORDERS WHERE CREATED_AT BETWEEN x AND y I know i could do something like a mysqldump with conditions and analyze the output file but i'd like to

disk space on arbitrary rows

2009-09-30 Thread John Dove
Hi! I need to figure out how much disk space an arbitrary number of rows in a table take up. For example SELECT DISK_SPACE(*) FROM ORDERS WHERE CREATED_AT BETWEEN x AND y I know i could do something like a mysqldump with conditions and analyze the output file but i'd like to

Re: Ever-shrinking disk space after repeated DB restores

2009-03-16 Thread René Fournier
OK, I found the answer. The binary log files were filling up (/usr/ local/mysql/data on OS X/mysql-bin.x). Easy fix: mysql> reset master; And all the disk space is recovered On 15-Mar-09, at 10:47 AM, René Fournier wrote: It seems MySQL isn't releasing disk space on m

Ever-shrinking disk space after repeated DB restores

2009-03-15 Thread René Fournier
It seems MySQL isn't releasing disk space on my laptop after I copy a database from one machine to it. From the server, I'm running something like this: gzip -dc /Backup/Latest/alba2_2009-03-10_00h45m.Tuesday.sql.gz | mysql -h 192.168.0.224 -u root -p alba2 ...every night. And the

InnoDB table space errors

2008-11-03 Thread Marten Lehmann
How can I remove a table space from the internal data dictionary? The documentation doesn't help at all. Even after a fresh installation and importing all dumps of the databases from scratch, I get these errors: Attempting backtrace. You can use the following information to find out

Re: Incrementing a "Private" Integer Space

2007-11-25 Thread David T. Ashley
Hi Martin, The easiest way to restore context in this conversation is to go to the MySQL home page (www.mysql.com), then go to "Community", then "Lists", then to look at the archives of the main MySQL mailing list (this one). I believe at this point that Chris and Stut answered my question decisi

RE: Incrementing a "Private" Integer Space

2007-11-25 Thread Martin Gainty
Dave is trying to establish an algorithm which would fit your requirement I can see column q is auto-increment which makes sense as you retain the capability to generate a unique row but jumping into the middle of a conversation without knowing the prior discussionWhat is/was/will be the purpos

Re: Incrementing a "Private" Integer Space

2007-11-25 Thread Chris W
David T. Ashley wrote: Hi Chris, OK, I will try that. Thanks for the help. My assumption in reading your original post was that you didn't understand what I wanted to do (but you did). In order for me to use the solution you have proposed, in addition to working, this behavior would have to

Re: Incrementing a "Private" Integer Space

2007-11-25 Thread David T. Ashley
On 11/25/07, Chris W <[EMAIL PROTECTED]> wrote: > > Stut wrote: > > > > insert into test1 set p = 2, q = (select max(q) + 1 from test1 as tmp > > where p = 2) > > > > Probably not very efficient, but it works. > > > > -Stut > > > Auto increment is much easier to do. If your primary key is made up

Re: Incrementing a "Private" Integer Space

2007-11-25 Thread Chris W
Stut wrote: insert into test1 set p = 2, q = (select max(q) + 1 from test1 as tmp where p = 2) Probably not very efficient, but it works. -Stut Auto increment is much easier to do. If your primary key is made up of two fields and one of them is Auto Increment, then it will have the desir

Re: Incrementing a "Private" Integer Space

2007-11-25 Thread Stut
David T. Ashley wrote: On 11/25/07, Stut <[EMAIL PROTECTED]> wrote: David T. Ashley wrote: I have a table with two integer fields (call them p and q). When I insert a record with a known p, I want to choose q to be one larger than the largest q with that p. What is the best and most effici

Re: Incrementing a "Private" Integer Space

2007-11-25 Thread David T. Ashley
On 11/25/07, Stut <[EMAIL PROTECTED]> wrote: > David T. Ashley wrote: > > I have a table with two integer fields (call them p and q). > > > > When I insert a record with a known p, I want to choose q to be one > larger > > than the largest q with that p. > > > > What is the best and most efficient

Re: Incrementing a "Private" Integer Space

2007-11-25 Thread Stut
David T. Ashley wrote: I have a table with two integer fields (call them p and q). When I insert a record with a known p, I want to choose q to be one larger than the largest q with that p. What is the best and most efficient way to do this? For example, let's say the table contains (p,q): 1,

Re: Incrementing a "Private" Integer Space

2007-11-24 Thread Chris W
David T. Ashley wrote: I have a table with two integer fields (call them p and q). When I insert a record with a known p, I want to choose q to be one larger than the largest q with that p. What is the best and most efficient way to do this? For example, let's say the table contains (p,q):

Incrementing a "Private" Integer Space

2007-11-24 Thread David T. Ashley
I have a table with two integer fields (call them p and q). When I insert a record with a known p, I want to choose q to be one larger than the largest q with that p. What is the best and most efficient way to do this? For example, let's say the table contains (p,q): 1,1 1,2 1,3 2,1 2,2 2,3 2.4

Re: How to find Free space in innodb

2007-11-13 Thread Baron Schwartz
:500M;datafile7:500M and datafile is created as per the configuration in the disk. My Question is how to find the exact free space avaliable in these datafile.How much data is occupied in the disk. Use SHOW TABLE STATUS on any InnoDB table. -- MySQL General Mailing List For list archives: http

How to find Free space in innodb

2007-11-13 Thread John Dba
datafile is created as per the configuration in the disk. My Question is how to find the exact free space avaliable in these datafile.How much data is occupied in the disk. Get easy, one-click access to

Re: Saving space disk (innodb)

2007-10-10 Thread mos
e expected that the size can be decreased if 50% (135 GB) but the ibdata was the same value than before "clean"... How can I force to save this space? You must dump your data to files, Why not change the table type to MyISAM instead of dumping to a file? If you have a bunch of indexes

Re: Saving space disk (innodb)

2007-10-10 Thread Baron Schwartz
Eric Frazier wrote: Andrew Carlson wrote: If you do what Baron suggests, you may want to set Innodb to create a file-per-table - that way, in the future, you could save space when tables are dropped, or you could recreate innodb tables individually to save space, not have to dump all your

Re: Saving space disk (innodb)

2007-10-10 Thread Baron Schwartz
0% (135 GB) but the ibdata was the same value than before "clean"... How can I force to save this space? You must dump your data to files, Why not change the table type to MyISAM instead of dumping to a file? If you have a bunch of indexes on the table, you're creating the indexes

Re: Saving space disk (innodb)

2007-10-10 Thread Eric Frazier
Andrew Carlson wrote: If you do what Baron suggests, you may want to set Innodb to create a file-per-table - that way, in the future, you could save space when tables are dropped, or you could recreate innodb tables individually to save space, not have to dump all your innodb tables at one time

RE: Saving space disk (innodb)

2007-10-10 Thread Dan Rogart
; mysql@lists.mysql.com Subject: Re: Saving space disk (innodb) Hi Tiago, Tiago Cruz wrote: > Thank you guys!! > > I have a lot of MyISAM and a lot of InnoDB on this database. > > I did one little "for" to run one "OPTIMIZE TABLE" in each table that I > have, o

Re: Saving space disk (innodb)

2007-10-10 Thread mos
the ibdata was the same value than before "clean"... How can I force to save this space? You must dump your data to files, Why not change the table type to MyISAM instead of dumping to a file? shut down MySQL, delete your current InnoDB tablespace and log files, reconfigure the serve

Re: Saving space disk (innodb)

2007-10-10 Thread Baron Schwartz
Hi Tiago, Tiago Cruz wrote: Thank you guys!! I have a lot of MyISAM and a lot of InnoDB on this database. I did one little "for" to run one "OPTIMIZE TABLE" in each table that I have, on my database. If this step don't save enough disk space, I'll do the B

Re: Saving space disk (innodb)

2007-10-10 Thread Tiago Cruz
Thank you guys!! I have a lot of MyISAM and a lot of InnoDB on this database. I did one little "for" to run one "OPTIMIZE TABLE" in each table that I have, on my database. If this step don't save enough disk space, I'll do the Baron suggestion. Thank you all! - T

Re: Saving space disk (innodb)

2007-10-10 Thread Eric Frazier
Dan Rogart wrote: OPTIMIZE TABLE should reclaim that space, but be aware that it could take a while to run (locking your table all the while) since it just maps to an ALTER TABLE statement which creates a new copy of the table. Depends on how big your tables are. Doc: http://dev.mysql.com/doc

Re: Saving space disk (innodb)

2007-10-10 Thread Baron Schwartz
He's using 4.0, it's not an option in that version :-( Andrew Carlson wrote: If you do what Baron suggests, you may want to set Innodb to create a file-per-table - that way, in the future, you could save space when tables are dropped, or you could recreate innodb tables individual

Re: Saving space disk (innodb)

2007-10-10 Thread Andrew Carlson
If you do what Baron suggests, you may want to set Innodb to create a file-per-table - that way, in the future, you could save space when tables are dropped, or you could recreate innodb tables individually to save space, not have to dump all your innodb tables at one time. On 10/10/07, Baron

RE: Saving space disk (innodb)

2007-10-10 Thread Dan Rogart
OPTIMIZE TABLE should reclaim that space, but be aware that it could take a while to run (locking your table all the while) since it just maps to an ALTER TABLE statement which creates a new copy of the table. Depends on how big your tables are. Doc: http://dev.mysql.com/doc/refman/4.1/en

Re: Saving space disk (innodb)

2007-10-10 Thread Baron Schwartz
ore "clean"... How can I force to save this space? You must dump your data to files, shut down MySQL, delete your current InnoDB tablespace and log files, reconfigure the server, restart MySQL and let InnoDB create new (empty) files. Then reload the data. You should probably save y

Saving space disk (innodb)

2007-10-10 Thread Tiago Cruz
can I force to save this space? set-variable= innodb_buffer_pool_size=500M set-variable= innodb_additional_mem_pool_size=100M set-variable= innodb_log_files_in_group=5 set-variable= innodb_log_file_size=150M set-variable= innodb_log_buffer_size=8M set-variable= innodb_flush

Re: Reusing deleted variable-size record space

2007-09-30 Thread Dan Buettner
leted during the usage and administration, so my doubt is: how > can > I compact the records to remove those blank spaces and save space, lets > say "defragment" the database file so data is continuous and contiguous? > > This task should be performed just once or twice a month, so no m

Reusing deleted variable-size record space

2007-09-30 Thread Renito 73
Hello I have a database with variable-size fields, some of them may be modified/deleted during the usage and administration, so my doubt is: how can I compact the records to remove those blank spaces and save space, lets say "defragment" the database file so data is continuous and

Re: There's not enough space in /var/lib/mysql/ ---help!!!!

2007-08-13 Thread Michael Habashy
h' > command is showing 0 bytes available in /. > > Dan > > > On 8/13/07, Michael Habashy <[EMAIL PROTECTED]> wrote: > > > > I am using debian 4.0 and mysql-server-5.0 package. > > My server will not start because it states that there is not enough

Re: There's not enough space in /var/lib/mysql/ ---help!!!!

2007-08-13 Thread Dan Buettner
el Habashy <[EMAIL PROTECTED]> wrote: > > I am using debian 4.0 and mysql-server-5.0 package. > My server will not start because it states that there is not enough > spaceCan someone assist? > > rider:~# df -h > FilesystemSize Used Avail Use% Moun

Fwd: There's not enough space in /var/lib/mysql/ ---help!!!!

2007-08-13 Thread Michael Habashy
I am using debian 4.0 and mysql-server-5.0 package. My server will not start because it states that there is not enough spaceCan someone assist? rider:~# df -h FilesystemSize Used Avail Use% Mounted on /dev/mapper/vg_house-lv_root 493G 468G 0 100

Re: Redo logs take to much disk space

2007-05-15 Thread Alex Arul Lurthu
necessary for data replication and sometimes for data recovery. you can read about it here: http://dev.mysql.com/doc/refman/5.0/en/binary-log.html > Or can you tweak it somehow so that it won't' take some much disk space? you can bzip old logs if you need them but don't want

Re: Redo logs take to much disk space

2007-05-15 Thread asv
; take some much disk space? you can bzip old logs if you need them but don't want them to take so much space :) -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Redo logs take to much disk space

2007-05-15 Thread chiel
server -- Thanks, it works. I also had to comment: expire_logs_days and max_binlog_size. One question about this, is it safe to turn of log_bin? Or can you tweak it somehow so that it won't' take some much disk space? -- MySQL General Mailing List For list archives: http://lists

Re: Redo logs take to much disk space

2007-05-15 Thread asv
> What can I do to stop this kind of behavior? and is > its safe to delete all the files with a cronjob? and witch files are > recommend to delete if so? just commet log-bin option of [mysqld] section in your my.cnf file (/etc/my.cnf) you can also remove these files manually -- it will not affect

  1   2   3   4   >