Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Extend The Space Of Database


I`m testing some queries about loading tables from files with a large amount of data, millions of records.
It proceeded until the half of the file, interting in the table 10 million records approximately, and then failed showing an error in MySQL query browser telling me that I have to remove some things in databse in order to free the space. All I want to do is to extend the actual database capacity but I dont know how and from where to do it.




View Complete Forum Thread with Replies

Related Forum Messages:
Extend Fields With UPDATE Clause
I don't know why MySQL handles the UPDATE-query not in that way it should be. To show the problem we assume to tables:

DROP TABLE IF EXISTS temp1;
CREATE TABLE temp1 (
id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
text1 VARCHAR(45) NOT NULL,
PRIMARY KEY(id)
);
INSERT INTO temp1
Values
( 1, "" ),
( 2, "" ),
( 3, "" ),
( 4, "" ),
( 5, "" );

DROP TABLE IF EXISTS temp2;
CREATE TABLE temp2 (
id_fk INTEGER UNSIGNED NOT NULL,
text2 VARCHAR(45) NOT NULL
);
INSERT INTO temp2
Values
( 1, "1-1" ),
( 1, "1-2" ),
( 2, "2-1" ),
( 2, "2-2" ),
( 3, "3-1" ),
( 3, "3-2" ),
( 4, "4-1" ),
( 5, "5-1" );

Now I want to update temp1.text2 with all referenced values from temp2.text2

UPDATE temp1 INNER JOIN temp2 ON id = id_fk
SET temp1.text1 = Concat( temp1.text1, ',', temp2.text2 );

The table temp1 should (actually) have this content:
SELECT * FROM temp1;
id text1
1 ,1-1,1-2
2 ,2-1,2-2
3 ,3-1,3-2
4 ,4-1
5 ,5-1

But when I look at the table:
SELECT * FROM temp1;
id text1
1 ,1-1
2 ,2-1
3 ,3-1
4 ,4-1
5 ,5-1

In doc is mentioned that every line is updated, but he doesn't.

View Replies !
Database Restore Space
i want to increase space of the database.. while restoring.. wen i click import it was '(Max: 2,048KiB)' i want to increase this space to.. higher

View Replies !
How Much Space Is The MySQL Database Using On IIS?
I'm running IIS on Windows Server 2003 with full access to my server.

How do I find out how much space the MySQL database is using on my server? Is there a way to break it down by Schema and/or table?

We do not have PHP MyAdmin installed.

View Replies !
Release Disk Space By Drop Database ?
OS. linux 2.4.22
MYsql : 4.0.18-standard

I created a database and populate 2 big InnoDB tables, the total size
is > 3G. After all testing, I droped the database .

But, the harddisk space is not release to the filesystem, Why, How
could I recover that ?

View Replies !
Release Disk Space By Drop Database
OS. linux 2.4.22
MYsql : 4.0.18-standard

I created a database and populate 2 big InnoDB tables, the total size
is > 3G. After all testing, I droped the database .

But, the harddisk space is not release to the filesystem, Why, How
could I recover that.

View Replies !
Can I Upload A MYSQL Database To My Free Web Hosting Space?
I have a domain with awardspace.com which has php and MYSQL enabled.

I am a newbie and not quite sure how to set it all up or if it's even possible with the Database I've created on my desktop.

When I go to the Database Manager in the administrator section it has a spot to create a database,and confirm a password. From there I take it you would use the PHPMyAdmin to alter the database.

Can I just upload a database using an FTP manager like Dreamweaver, or do I need to start from scratch and create the database on this server. If so is there a way to eventually download it so I don't lose any of the information in it.

View Replies !
How Do I Get The Space Being Used?
I have a client table, and then I have data table with a foreign key back to client. Is there a way to determine how much space a client is using is using in the DB? I would like to know if there is a way to cap a client from storing more then 1MB of data in the DB. Can MySQL support anything like this?

View Replies !
Set A Space Limit
I have any users who have hosting on my server and they want a MySQL User
Account for their websites.How can I do to limit the space of their database following the plan of their hosting?If I can't set a limit they can put much more datas into database.

View Replies !
Space Efficiency
I had a question about the most efficient way to arrange some data. I'm conducting a survey and I would like to store the responses in a MySQL database. I'm expecting a large number of responses, so I would like to avoid wasting space. However, each respondant is only asked some small subset of the possible questions.

I was wondering if it would be advisable to include a column for each response value, even if many or most are unused for each row, or if I could save space by making a single varchar field that stored a string indicating their responses (e.g. "1:a,2:b,3:c").

View Replies !
How To Do A Select When The Db Name Has A Space In It
I have a database named Property Tax in MySQl I need to create a query in c# where
the use database command is not given.
I need to do something like
Select * from Property Tax.tablename;

I have tried using: Select * from 'Property Tax'.tablename;
but that does not work; What is the method of specifying this.

View Replies !
Table Space
I'm using InnoDB table, and when my data reaches for about 4GB, i can no longer insert new data.

View Replies !
Storage Space
I've been reading a few books about MySQL and none of them give a clear answer. What I'd like to know is whether empty fields use up storage space.

For example, if I had a table as follows:
Username VARCHAR(50), Color CHAR (10)

If I enter a username, but don't put anything under Color, does each entry take up hard drive space for the empty CHAR?

What about if, there originally was data in the COLOR field, and I deleted the value next to a few Usernames, would that clear up the hard drive space?

Lastly, most data types say they take up x bytes in storage. Does that mean if you put any data in that field, regardless of how much data, it will take up that much storage?

If I am correct, I believe the VARCHARs are the exception, where they only take up as much storage as needed plus 2 Bytes.

View Replies !
Space Usage?
This are some of the information of the structure of my tbl_msg:

Space usage
--------------------------
Type Usage
----------------------------
Data 2,420 MiB
Index 112,517 KiB
Overhead 8,192 PiB
Effective -9,223,372,034,201,564,000 B
Total 2,530 MiB

what does Effective -9,223,372,034,201,564,000 B means, why is it - ...something. does this affect performance?

View Replies !
Zero = Blank = Space
how I can change it if possible:

mysql> select count(*) from property where number = 0 and number = "" and number = " " and number = " ";
+----------+
| count(*) |
+----------+
| 43 |
+----------+

View Replies !
Removing Space In Varchar
i have a problem to make a transtype

from field XX varchar(20), example :
19 200 340,56

to field YY integer, required :
19200340

I make two replace
- first for replacing the , by a .
- second for replacing the space by '' (nothing)

and a cast :

insert into table2
select cast(replace(replace(XX,',','.'),' ','') as unsigned) from table
1 ;

The problem is the first replace. The space is not recognized. Even for
example with others commands related to string. If I put any other
caracter, it works. Does anyone have any solution ?

View Replies !
Losing Storage Space
I have a slackware 10 box with mysql 4.0.20. I have just started learning to
use mysql.

I have used the medium file for my my.cnf file and have uncommented the
innodb stuff as that is what i wanted to play with.

I imported 3 million recs from my postgresql table into mysql as an myisam
table and ran some speed tests... I then converted the table to innodb
format and ran the same tests. When i was finished i dropped the table and
database i was using and my disk space is almst 2 gigs less than it was
before i started the test.

I am assuming the space went into a transaction log somewhere. Is there some
way to reclaim this space?

View Replies !
Adding A Space In Numbers
I have several phone numbers that I need to add spaces for.

If the number starts with 02 then I need a space between the third and 4 character and a space between the 7th and 8th character. So the number looks like:

020 1234 5678

And another query that if the number starts with 08 then the space should be after the 4th character and should look like:

0812 34567891


View Replies !
MySQL, Partition Out Of Space
I admin a small server for students of my major and recently we've been getting a lot more popular. We are already in the process of upgrading to better hardware by January but a problem has arisen that we need a temporary fix until then.

our root partition, because the guy before me made it 100meg insize, is at 100% usage. This is causing mySQL to refuse to run for our clients because it has no room. Since I'm assuming we can't repartition it without starting over, the best thing I can think of is to move mySQL to another partition. My question is two fold:

1) where the bloody hell IS mySQL? I can't find it, or I don't know what I'm looking for either. I've been told /databases is not it.

2) How, exactly, do I move mySQL safely and have it work properly afterwards?

I appreciate any help you can give me. We are running Debian Potato with MySQL 3.23.54. Also have phpMyAdmin if that means anything. Here's a paste of the df:


Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda2 120979 114733 0 100% /
/dev/sda5 2402848 2110956 169832 93% /usr
/dev/sda6 483930 301713 157233 66% /var
/dev/sda7 5227932 3867832 1094528 78% /home

View Replies !
Remove Text Space
Trying to format a string to remove text space characters that have been stored in the db, those nasty little narrow rectangular fellas, think its code U+2060.

There the last two characters in the field for export to a .csv file where they cause havoc.

View Replies !
Storage Space For NULL
Does anybody know how much storage is taken up if a NULL value is stored in an int column or timestamp column? Is it still 4 bytes, or is it less because it is null? The optimization page says that NOT NULL takes 1 less bit per column than NULL, but is that still true if the actual value stored in the field is NULL, as opposed to 0 or another integer or timestamp?

View Replies !
Remove Leading Space
Some data in my table came from a different source and some of the name fields have a leading space, which is hindering the effectiveness of my ORDER BYs.
I came up with this but it didn't work:
Code:

UPDATE table
SET name = SUBSTRING(name, 2)
WHERE SUBSTRING(name, 1) = ' '

View Replies !
How To Set A Default Colum Value To <space> ?
I am trying to set the default column value to a space, but when I use...
ALTER TABLE myTable MODIFY COLUMN myColumn varchar(255) DEFAULT ' ';

it behaves as if I'd entered....
ALTER TABLE myTable MODIFY COLUMN myColumn varchar(255) DEFAULT '';

Is there any way to force the default to be a space, rather than an empty string?

View Replies !
Hard Drive Space?
I have recently installed mysql to be the backend of a websystem. The system tracks and bills about 500 customers. I have it installed on a hard drive with nearly 4 gigs of free space. It was recomended to me that i move the mySQl datafiles to a different hard drive with more space, but 4gigs seems like plunty to me. Does anyone know if i really should move it or if 4gigs will be acceptable? If i should move it, anyone have any tips on moving it without uninstalling, reinstalling and rebuilding my tables?

View Replies !
Table Space Full
I have a problem in MySQL 4.0. When my data reaches 4GB, I can no longer insert new record. I've tried to use "ALTER TABLE tbl_name MAX_ROWS=5000000000;" to expand the limit
but when I check it's status it only return "max_rows=4294967295" as its max_rows.

Isn't that "max_rows=4294967295" only allocates 4GB?

View Replies !
Recovering Space In Tables
How does MySQL deal with space in tables when records are deleted? If we have 100 records auto numbered 1-100 and we deleted records 30-35 + 51 + 76 (for example) what happens to that space in the table (and on the disk). Does it write record 101 into the space used by 30 automatically? Does it leave "holes" in the space on the disk and not reuse that space? is there a function or command to reclaim that space by "packing" or "compressing" the table?

View Replies !
Query To Check Space Used
SELECT TABLE_NAME as 'Name table', TABLE_ROWS as 'NB lines',ROW_FORMAT as 'Format Table' . , Max_data_length as 'Max_Data_Length', Data_length as 'Data_Length'....

View Replies !
Drive Designation - Low Space
We have 3 databases connecting to this Windows server with MySQL version 3.23.51. I have MySql and the Data installed on the D drive of my server. It is running low on disk space. I would like to start using another set of drives for additional space, they will be set as another drive letter, E. Is it possible to have MySql look at data on 2 drive letters. My ini file, c:windowsmy.ini notes the following:

[mysqld]
basedir=D:/mysql
#bind-address=192.168.1.1
datadir=D:/mysql/data
set-variable=max_connections=300
#language=C:/mysql/share/your language directory
#slow query log#=
#tmpdir#=
#port=3306
#set-variable=key_buffer=16M
[WinMySQLadmin]
Server=D:/mysql/bin/mysqld-nt.exe
user=xxx
password=xxx

View Replies !
Space Characters At The End Of String
I would to know why if I insert a string with a space at the end within a field mysql doesn't store the space but only the string. For istance, in a varchar(50) field, my_isam db, latin1 etc..., if I insert the string "example ", mysql stores only "example" without space?

View Replies !
Space Character In Path
When displaying a filepath from a db if there is a space in the file name everything after the space is dropped. For example, if the path is c: est his doc.pdf it only shows C: est his

Is there any way to include the spaces and everything after them

View Replies !
How To Create A Table Space?
how to create a tablespace in mysql?

View Replies !
Space For MYSQL Corrupted
I have found that if I declare:

MYSQL mysql; MYSQL_RES *result;

that after a call to mysql_real_connect(), the result variable is clobbered causing subsequent queries to produce a crash. If I insert a dummy variable:

MYSQL mysql;
int dummy;
MYSQL_RES *result;

the variable dummy gets clobbered but this doesn't hurt anything and there are no more crashes. It appears that MYSQL is actually writing into space beyond the declared size of the structure.

View Replies !
Space Delimited Files
I have a space delimited file that I need to import into a database. I've done this before with other space delimited files, but before each row of data was contained on a single line.

In this file, there are multiple lines per entery and I need to know what to do to import those into my database. What would be the recommended way of doing this? Code:

View Replies !
Calculating Innodb Space ?
I have just started with some innodb. So first I say there was a file called ibdata1 of size 10Mb. So as I add on data it became 18Mb now. So I want to find out is how to exactly know what is size of my innodb database.

View Replies !
Trailing Space Issue
i just want to know how mysql handle the trailing spaces of the data.
do mysql automatically trim the trailing spaces of the stored data ?
i.e. what happen if i match 'India ' in the table with country = 'India' ?

View Replies !
Calculating Disk Space
I was wondering, is there a way to calculate the overhead in disk space for a table that contains column types that are only regular ints and floats. The table type is MyISAM, but I'd also like to know for other tables how to find this overhead. Basically I'm looking for a formula. If that's possible?

View Replies !
MySql Ibdata1 Compact Space
Using the tables of type INNODB, mysql it has created the archives
(ibdata1) whose dimensions exceed the 3G.

I have cancelled all the database but the occupied space is remained
the same one. How I can make in order to compattare this space?

View Replies !
Moving MySQL :: Run Out Of Disk Space
We've run out of disk space and would like to move either the entire MySQL system or if possible move the databases. Can this be done without any difficulties?

View Replies !
Limit Space In The User Account
I was searching information how to limit space for the user.
eg. user account will be have 5MB space to database.

View Replies !
Forum Outta Mysql Space
my forum (vbulletin) is currently not connected a database because my hosting says ive used 150 megs outta the 100 allowed and theres no way to increase the space.

i was wondering if it is normal to for forums to use that much space? i have about 7,500 users 80k posts. i dont know what to do, is it normal for a forum to use that much mysql space and would anyone know of a good realiable host for mysql hosting because i might have to change servers.

View Replies !
How To Include A Space In A LIKE Select Query?
On the bottom 3 lines you'll notice a space on either or both sides of the $term variable. What I'm trying to do is match $term with a space on the left, a space on both sides, or a space on the right.

IF( $col = '$term' ,$score,0)
or IF( $col LIKE '$term %' ,$score,0)
or IF( $col LIKE '% $term %' ,$score,0)
or IF( $col LIKE '% $term' ,$score,0)

But for some reason the space is just getting ignored - can anyone tell me how to get it to recognise that I want the space included as part of the match?

View Replies !
Free Disk Space On DELETE
I'm building a huge DB. One particular table can contain as much as 125 million records. I need to DELETE records older than a year. That part works fine but it doesn't free any space on my hard drive (C:/). I tried OPTIMIZE TABLE and it still won't free hard disk space.

View Replies !
Deletion Of Records Does Not Reduce HD Space
using MySQL 5.122, MyISAM partitioned table. Currently this table holds one month records with 120 GB hard disk space. So it takes 4 GB for one day records roughly. In this instance, when I delete 5 days records still the consumed HD capacity by this table is same. After I repaired the table only the HD capacity is freed by 20 GB (5 x 4 GB). So every time when I insert more records, I should have to repair the table to free the HD space.

View Replies !
Find And Replace Alphanumerics, Dot And Space
In a field I will first FIND all instances of the following:

a DOT, a SPACE and ANY SMALL LETTER ie. ". a" or ". b" or ". z"

Then I will REPLACE this string with "SPACE SMALL LETTER" ie. I will remove the DOT.
Would you write the appropriate expression for this scenario?

View Replies !
MySQL Trimming Trailing Space?
I've "inherited" a bit of ugly code and there's a section where an array is being stored in the db as a space-delimited string. Don't ask. The values are being fetched using a clause something like this:

AND banner_custom LIKE '% $id %'

Note the spaces inside the wildcards there. This query works, EXCEPT for the last value in the string, because it appears MySQL is trimming the trailing space upon insert/update.

I know the value contains the space just before the query is executed, Is this normal MySQL behavior? Is there a setting I can change somewhere to preserve those spaces at the end?

View Replies !
Saving Storage Space On Blank Entries In DB
If I have a table, of say.... people, with their names, ages, addresses
etc., and some lines in the table have the ages BLANK, how do I make
sure that the blank fields are not taking up disk space? Does OPTIMIZE
TABLE do this, or is another command?

View Replies !
Export/import Of Column Names With Space
I am using MySQL 4.0. Say that I have a table named "mytable" having a column "ID" and a
column "test columnname".

When dumping:

mysqldump --opt DATABASE -uUSER -hHOST -pPASS > myfile.txt

it gives someting like:

CREATE TABLE mytable(ID int(11) NOT NULL, test columnname text NOT
NULL);

Then I use the mysql command to import myfile.txt in another database:

mysql DATABASE -uUSER -hHOST -pPASS < myfile.txt

but it fails with:

"ERROR 1064 at line 1: You have an error in your SQL syntax. Check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'test columnname text NOT NULL)' at line 1"

Obviously, the mysql command can't handle column names with spaces. Is
this a bug? I would say so - mysqldump should put the column names
between quotes or so (alternatively, mysql shouldn't allow spaces in
column names).

My problem is that I have to work with these columns as they are.
They're also referred to from a lot of queries in the API's. Any
possible workarounds?

View Replies !
Replace Space With Dash And Remove Punctuation
SELECT LOWER(REPLACE(mytable.title,' ','-')); ....

View Replies !
Custom InnoDB Table Space In Windows
In Windows, there are lots of config files for MySQL. When installing MySQL, the config wizard created a single, autoextending ibdata1 file for InnoDB tablespace. However, I want to customize the tablespace. Instead of

innodb_data_file_path = ibdata1:10M:autoextend

I would like to have something like this

innodb_data_file_path = ibdata1:650M;ibdata2:650M;ibdata3:650M

But when I make this change in the file my-innodb-heavy-4G.ini the server fails to start. How can I change the default config for InnoDB and customize it to my needs?

View Replies !
How Do I Reclaim Disk Space In Data Folder
I have 5 databases:

- mysql
- test
- product1
- product2
- product3

The hard disk on my server was near full, so I decided to delete databases product2 and product3 as I no longer need them. I dropped the databases product2 and I noticed the disk space was not freeed by MySQL after dropping this database. The tables in databases product2 and product3 are INNODB.

What is the best method to reclaim my disk space when dropping entire databases?

View Replies !
Find Dot, Space And Any Lowercase Letter In A String
I want to find a string with a dot, space and any lowercase letter and replace it with a space and any lowercase letter.

-- FIND
". any lowercase letter" ie [DOT][SPACE][ANY LOWERCASE LETTER]
-- REPLACE with
" any lowercase letter" ie remove [DOT]

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved