Re: Storing IP blocks

2008-06-12 Thread Jim Lyons
For whatever it's worth, some years ago I wrote a database that kept track of IPs. I found it very easy if I treated the IPs as numbers. Each IP is a quartet of digits, each in the range 0-255. This really means an IP is a 4-digit number in base 256 and you can use use standard conversion functi

Re: Storing Larger MySQL Backups

2008-01-18 Thread Tom Brown
I'm curious if anyone has any thoughts on how I can handle a data retention issue I've been facing with a larger dataset. My process, roughtly is run mysqldump against the DB and gzip the output. Then I transfer it off to a different machine for archival onto optical media (yes I know the

Re: Storing Apache logs in MySQL.

2007-11-11 Thread Filip Krejci
This however is not an option at all when you run Apache in prefork mode. Because the sum of your MaxClients will be equal to the connections to your MySQL Server. You can use connection pooling eg SQLrelay -- Filip Krejci <[EMAIL PROTECTED]> Linux - und Spass dabei! -- MySQL General Ma

Re: Storing Apache logs in MySQL.

2007-11-09 Thread Samuel Vogel
Hi, An easier method may be to install mod_log_mysql on each of the Apache servers and log directly to the central MySQL installation. Regards Ian This however is not an option at all when you run Apache in prefork mode. Because the sum of your MaxClients will be equal to the connectio

Re: Storing Apache logs in MySQL.

2007-11-09 Thread Ian
On 9 Nov 2007 at 10:44, Shaun T. Erickson wrote: > I pull Apache (combined format) logs, daily, from a number of mirrors, > back to a central server for processing. I'd like to somehow load them > in MySQL for analysis. > > 1) Does anyone know of a script that can parse the logs and load them? >

Re: Storing Devnagari unicode data in MySQL

2007-09-28 Thread C K
Thanks for your help. I upgraded MyODBC 3.51.19 to 5.1 beta, and tried it for Devnagari data entry and it worked well. But now a new problem of showing newly added record as '#Deleted' is there. and even after adding a time stamp field in the table, this problem exists,(this problem is solved in 3.

RE: Storing Devnagari unicode data in MySQL

2007-09-28 Thread Jerry Schwartz
Try upgrading to a version 5 of the ODBC connector. It worked for our Chinese data. 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 >

Re: Storing a linked list

2007-06-19 Thread Baron Schwartz
Celko also discusses them in SQL For Smarties. Baron Peter Brawley wrote: Matt >I'd like to store paths to specific destinations... See -- Tropashko's 'materialized modell' eg http://www.dbazine.com/oracle/or-articles/tropashko4 -- the airports example at http://www.artfulsoftware.com/mysq

Re: Storing a linked list

2007-06-19 Thread Peter Brawley
Matt >I'd like to store paths to specific destinations... See -- Tropashko's 'materialized modell' eg http://www.dbazine.com/oracle/or-articles/tropashko4 -- the airports example at http://www.artfulsoftware.com/mysqlbook/sampler/mysqled1ch20.html PB - Matt Juszczak wrote: Hi all, I'

Re: Storing a linked list

2007-06-19 Thread Mogens Melander
How about: $id1 = 1; $id2 = 0; while ($id1) /** or ($id2 != 8) **/ { $sql = "select * from table where id1=$id1"; $row=query($sql); $id1=$row->id1; $id2=$row->id2; do_stuff(); $id1 = $id2 } On Tue, June 19, 2007 10:58, Matt Juszczak wrote: > Hi

Re: Storing forests in tables.

2007-04-20 Thread Peter Brawley
Nathan, >I ve recently been playing with storing trees in mysql using nested >set, and I was wondering if anyone knows if this could be extended to >forests (set of trees) to be stored in one table? Dead simple, add a treeID smallint column to the table that holds the nested sets, and add ... W

Re: storing images in the database

2006-11-01 Thread Richard Harris
Hi, In my honest opinion, uploading the image to a "preset" directory in the code, and setting the code to submit the image name, extension, and if needs be (it shouldnt, because you can set it in the HTML), the directory. Google has a lot of useful resources on this. But, if you are really

Re: storing images in the database

2006-10-13 Thread DreamWerx
I've stored millions of images/files in mysql with minimal performance hit, performance loss is mostly based on your storage implementation. Checkout this article: http://www.dreamwerx.net/phpforum/?id=1 On 10/11/06, Greg Donald <[EMAIL PROTECTED]> wrote: On 10/10/06, Rodney Courtis <[EMAIL PRO

Re: storing images in the database

2006-10-11 Thread Greg Donald
On 10/10/06, Rodney Courtis <[EMAIL PROTECTED]> wrote: I want to store jpeg images in a mysql database from php in the form of 'blob' types. Is this possible and can you detail for me the steps to achieve this? For a nice size performance hit, yup: http://www.zend.com/zend/trick/tricks-sept-2

Re: storing URL 2083 characters

2006-09-14 Thread Anders Karlsson
That is up to 64k bytes, not chars, which might not be the same thing if UNICODE is used using utf-8/utf-16 or ucs-2 for example. Although this is usually not an issue in the specific case of an URL. /Karlsson Johan Höök wrote: Hi Peter, I'd thought I'd just mention that the varchar length dep

Re: storing URL 2083 characters

2006-09-12 Thread Peter Van Dijck
the urls never repeat. and it's a very active table so I don't wanna compress right now. And you're right, most URLs are < 255chars, but some are bigger, so can't use varchar. I guess I'll just use TEXT :) Thanks! Peter On 9/12/06, Mike Wexler <[EMAIL PROTECTED]> wrote: Peter Van Dijck wrote:

Re: storing URL 2083 characters

2006-09-12 Thread Mike Wexler
Peter Van Dijck wrote: Hi, URL's have a practical limit of 2083 characters it seems. To store these in a space efficient way (I have 1,000,000s of url rows), what's the best approach? varchar has a 255 maximum, right? Should I just use TEXT? I'm not searching *in* the urls, I am selecting like th

Re: storing URL 2083 characters

2006-09-12 Thread Johan Höök
Hi Peter, I'd thought I'd just mention that the varchar length depends on your MySQL version and character set. 5.0.3 and later handles upto 64k chars. See: http://dev.mysql.com/doc/refman/5.0/en/char.html /Johan Peter Van Dijck skrev: Hi, URL's have a practical limit of 2083 characters it seem

Re: Storing a string value with slash(\)

2006-01-24 Thread Gleb Paharenko
Hello. > If I retrive the same value with the slash (\), not able to display > properly in the GUI. Do we need to use any MySQL specific functions to > select such values?. If you're retrieving the same values which have stored, that this is rather a GUI problem, not MySQL. > Is there any way in

Re: Storing underscores ( _ ) in database tables

2005-08-26 Thread David Blomstrom
--- [EMAIL PROTECTED] wrote: > Please, please! read up on normalization. The way I > would probably handle > this design issue is by creating a separate table of > taxonomic names (I > know this is very different than my previous advice > but I have had longer > to think about it). OK, I'll ha

Re: Storing underscores ( _ ) in database tables

2005-08-26 Thread SGreen
David Blomstrom <[EMAIL PROTECTED]> wrote on 08/26/2005 01:32:08 AM: > (Sorry if this is a repeat; I think my first post > didn't go through.) > > I'm still stuck on the problem I asked about a day or > two ago. I'm working on a page at > http://www.geozoo.org/stacks/ that draws data from a > ta

Re: Storing underscores ( _ ) in database tables

2005-08-26 Thread Jasper Bryant-Greene
David Blomstrom wrote: I'm still stuck on the problem I asked about a day or two ago. I'm working on a page at http://www.geozoo.org/stacks/ that draws data from a table that lists animal taxons (orders, families, species, etc.) in a child-parent relationship. It works exactly the way it should

Re: Storing manually diggested Passwords with MD5

2005-08-11 Thread Jasper Bryant-Greene
C.F. Scheidecker Antunes wrote: I will have the password stored in the database with MD5. What I actually need is a manual way to get the password back, that is decoding it. The whole point of MD5 is that you cannot decode it once encoded. When someone enters their password, just MD5 what th

Re: Storing manually diggested Passwords with MD5

2005-08-11 Thread Mike Wexler
C.F. Scheidecker Antunes wrote: I am sorry. I meant another thing and wrote something else. If I issue: INSERT INTO table1 values ('username',MD5('password')) I will have the password stored in the database with MD5. What I actually need is a manual way to get the password back, that is dec

Re: Storing manually diggested Passwords with MD5

2005-08-11 Thread C.F. Scheidecker Antunes
I am sorry. I meant another thing and wrote something else. If I issue: INSERT INTO table1 values ('username',MD5('password')) I will have the password stored in the database with MD5. What I actually need is a manual way to get the password back, that is decoding it. By using a software th

RE: Storing manually diggested Passwords with MD5

2005-08-11 Thread Partha Dutta
MySQL actually has an MD5() function: mysql> select MD5('password'); +--+ | MD5('password') | +--+ | 5f4dcc3b5aa765d61d8327deb882cf99 | +--+ 1 row in set (0.18 sec) Partha -- Partha

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

2005-07-25 Thread Lamont R. Peterson
On Saturday 23 July 2005 09:05am, Gregory Machin wrote: > Hi all. > I'm writing a php script to store the contents of html and php pages > in a data base, it works well until there are mysql queries in the > pages source then give errors such as this one. > > Query failed: You have an error in your

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

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

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

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

Re: Storing huge amount of binary data

2005-07-11 Thread Stephen Cook
Per Jessen wrote: 3. Again, as you can understand, I want to minimize the cost here. If you don't think I can use mysql, do you think Microsoft SQL server is good enough for this task? I don't think so, no. what are you basing this on? SQL Server is a truly great database package, don't l

Re: Storing huge amount of binary data

2005-07-11 Thread Devananda
First of all, I heard that Mysql does not perform very well when tablesize goes above 1 Gb. Is this a myth? I don't have much experience with individual tables being that large, though I have used MySQL databases with >100G total data with no problems at all. Based on my experience, it's not th

Re: Storing huge amount of binary data

2005-07-11 Thread Per Jessen
Cabbar Duzayak wrote: > So my questions are: > > 1. The main question is, do you guys have any experience with this > much binary and regular data? Do you think Mysql can handle this much > data in a reliable manner (without corrupting data and/or > degrading/terrible performance) ? I would say

RE: Storing huge amount of binary data

2005-07-11 Thread Matt Babineau
Sometimes, the easiest way to do this is to use the file system of the linux machine to store the files, and make reference to them in the DB...storing not data in the DB and getting rid of all your possible problems. Thanks, Matt Babineau Criticalcode 858.733.0160 [EMAIL PROTECTED] http://www

RE: storing recurring dates

2005-06-12 Thread mfatene
hi, have you tried to hack something with week, month and weekofyear ? there is an interesting url at http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html be aware that the week begins on sunday. mysql> select weekofyear('2005-01-02'); +--+ | weekofyear('2005-01-0

RE: storing recurring dates

2005-06-12 Thread christopher . l . hood
Bob, You should check out the Date::Manip module from CPAN, it will do what you need to do. Here is a snippet from the docs about recurrence: RECURRENCE A recurrence is simply a notation for defining when a recurring event occurs. For example, if an event occurs every other Friday or every 4

Re: Storing in HEX format.

2005-06-08 Thread Philippe Poelvoorde
[EMAIL PROTECTED] wrote: Uh-oh ;-) I think you put the HEX in the wrong part. Shouldn't it be in the VALUES clause? snprintf(query_length,query,"INSERT INTO idsmatch(sip,sport,dip,dport,payload) VALUES('%s',%d,'%s',%d,HEX('%s'))", inet_ntoa(ip->saddr),dbsport,inet_ntoa(ip->daddr),dbdport,t

Re: Storing in HEX format.

2005-06-08 Thread SGreen
Uh-oh ;-) I think you put the HEX in the wrong part. Shouldn't it be in the VALUES clause? snprintf(query_length,query,"INSERT INTO idsmatch(sip,sport,dip,dport,payload) VALUES('%s',%d,'%s',%d,HEX('%s'))", inet_ntoa(ip->saddr),dbsport,inet_ntoa(ip->daddr),dbdport,temp); Shawn Green Database A

Re: Storing in HEX format.

2005-06-08 Thread Philippe Poelvoorde
Hi, snprintf(query_length,query, "INSERT INTO idsmatch(sip,sport,dip,dport,HEX(payload))VALUES('%s',%d,'%s',%d,'%s')", inet_ntoa(ip->saddr),dbsport,inet_ntoa(ip->daddr),dbdport,temp); -- Philippe Poelvoorde COS Trading Ltd. -- MySQL General Mailing List For list archives: http://lists.m

RE: Storing foreign characters in DB

2004-09-06 Thread Chris Blackwell
Not sure whether this is applicable to your version of mysql, or to PHP. I had the same problem using Macromedia's Coldfusion, and adding this: useUnicode=true&characterEncoding=UTF-8 to the db connection string solved the problem chris -Original Message- From: MySQL [mailto:[EMAIL PROT

Re: Storing foreign characters in DB

2004-09-06 Thread Monty
> From: [EMAIL PROTECTED] > Date: Sun, 5 Sep 2004 22:39:39 -0500 (CDT) > Subject: Re: Storing foreign characters in DB > > I am not using 3.xx versions anymore, but if I remember correctly they > only allow a limited control for setting character sets. > > In order to

Re: Storing foreign characters in DB

2004-09-05 Thread valentin_nils
Hello Rhino, (B (BI am not sure how familiar you are with the character set settings. (B (BI am not using 3.xx versions anymore, but if I remember correctly they (Bonly allow a limited control for setting character sets. (B (BYour best guess might be the documentation that comes with your in

Re: Storing foreign characters in DB

2004-09-05 Thread Rhino
- Original Message - From: "MySQL" <[EMAIL PROTECTED]> To: "MySQL" <[EMAIL PROTECTED]> Sent: Sunday, September 05, 2004 2:05 AM Subject: Storing foreign characters in DB I'm having a problem figuring out how to deal with foreign characters in text that was copied from an MS Word documen

Re: storing 16 Bytes

2004-08-04 Thread Alec . Cawley
Sheraz <[EMAIL PROTECTED]> wrote on 04/08/2004 13:14:26: > Hi > I need to store a globabl unique identifer value in > mysql4.x database table. > > table field is varchar(16) as the string length is 16 > byte or 128 bitsmy string data is unsiged char > type.. > > how can i send that

Re: storing international char, like (Arabic, Russian) on mysql

2004-08-03 Thread Louie Miranda
thank you very much On Tue, 3 Aug 2004 20:08:51 -0500 (CDT), [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello, > > I have made apresentation at MySQLs UC2004 about using Japanese character > sets with MySQL. You may find this a good starting point. Links are below: > > http://dev.mysql.com/d

RE: Storing a subset of data in a slave database

2004-05-25 Thread Callan Tham
Hi Victor, Thanks for your reply. Yes, I did mean to only replicate certain tables, so your answer fits to a tee. Thanks! On Wed, 2004-05-26 at 01:12, Victor Pendleton wrote: > What do you mean by storing a subset? Are you only wanting to replication a > portion of the tables? If so, you can conf

RE: Storing a subset of data in a slave database

2004-05-25 Thread Victor Pendleton
What do you mean by storing a subset? Are you only wanting to replication a portion of the tables? If so, you can configure the master to ignore certain databases or you can configure the slave to apply updates for certain databases/tables or prohibit the master from replicating certain databases/t

Re: Storing a space

2004-05-02 Thread Remo Tex
Have you tried insertig non-breaking space instead #160 or 0xA0 ...i think so " " - this shoud be it /taken from here "3,02 KB (3 098 bytes)"-All NON-Breaking/ HTH ;-) John Mistler wrote: > Is there a way to force an invisible "space" character to be stored at the > END of a string in a column (e

Re: Storing a space

2004-04-30 Thread Paul DuBois
At 1:54 -0700 4/30/04, John Mistler wrote: Is there a way to force an invisible "space" character to be stored at the END of a string in a column (either VARCHAR or CHAR), so that when it is retrieved the space at the end is not cut off? No. I suggest that you use one of the TEXT types instead, wh

Re: Storing a space

2004-04-30 Thread Matt W
Hi John, I *think* VARCHAR is *supposed* to work that way, but doesn't in MySQL. So you'll have to use TINYTEXT. Its storage requirements are the same as VARCHAR(255) and it behaves the same way, except for, I think, 3 things: 1) the trailing space thing, obviously; 2) it can't have a DEFAULT val

Re: storing

2004-04-27 Thread Chris W
[EMAIL PROTECTED] wrote: hi, thanks for the info. I'm not very sure about mysql. but this is what ive got. ive got three tables with data in it.need to save the tables and run it on another machine or rather view the tables and records in another machine. 1. if i use mysqldump query, it will

Re: storing

2004-04-27 Thread lga2
hi, thanks for the info. I'm not very sure about mysql. but this is what ive got. ive got three tables with data in it.need to save the tables and run it on another machine or rather view the tables and records in another machine. 1. if i use mysqldump query, it will prepare a backup right?

RE: storing

2004-04-27 Thread Victor Pendleton
mysqldump when ensure consistency. If you are using InnoDB or DBD you run the risk of data not being committed. -Original Message- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 4/27/04 4:06 PM Subject: storing hi, i have mysql on my local machine.and i have created tables in my

Re: storing

2004-04-27 Thread zzapper
On Tue, 27 Apr 2004 17:06:59 -0400 (EDT), wrote: >hi, > i have mysql on my local machine.and i have created tables in my database. >if i need to copy these tables onto a cd and transfer them , which folder to i >copy? is it the data directory under mysql??? > >i am not sure abt this. > >Thank

Re: Storing App Settiings

2004-04-23 Thread olinux
> Unfortunately there is no standard way, i use a > directory called includes > and within that include_top.php includes global > stuff across pages and a > functions.php for functions and defines.php for > defining constants. > parse_ini_file is ok , i have used a modified > function to allow mult

Re: Storing App Settiings

2004-04-22 Thread daniel
>> >> --Bruce >> > > There are many different options. php-general list > might have something in the archives. > > Usually my preferred method is storing application > wide settings and commonly used functions in a file > that is included on each page. > > > > You might also take a look at parse

Re: Storing App Settiings

2004-04-22 Thread olinux
--- Bruce Vander Werf wrote: > I am developing a php/mysql web application, and I > am facing the task of > storing application settings. Because it is web > based, I will need to > read the app settings on a per-session basis. > > I see one of two choices here - store each setting > as a separat

Re: Storing currency values

2004-01-12 Thread Roger Baklund
* Asbjørn Konstad > I’ve spent some day(s) probing the web to find a solution to this problem: > > A table-column for storing currency –> float(10,2). > > As my users are punches the currency value like this “255,55”, > with a comma as decimal point, MySQL stores this value as zero (0.00). > > I qu

Re: Storing currency values

2004-01-12 Thread robert_rowe
Just convert the format of the input in your program before saving the value. In VB/ASP us can do: replace(255,55,",",".") -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Storing currency values

2004-01-12 Thread Mikhail Entaltsev
Hi Asbjørn, try to use "replace" function: http://www.mysql.com/doc/en/String_functions.html update YourTable set YourMoney = REPLACE('255,55', ',', '.') where ... ; Best regards, Mikhail. - Original Message - From: "Asbjørn Konstad" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: M

Re: Storing mysql dates as an integer

2004-01-08 Thread Craig A. Finseth
An unsigned int is probably more appropriate for timestamps than a signed int. Also note that the range for timestamps is 1970 until 2038 (or 2106? for unsigned ints), where DATE and DATETIME have a much greater range. Using a UNIX timestamp for birthdays might not be appropriate.

RE: Storing mysql dates as an integer [SOLVED]

2004-01-08 Thread Dave G
Fred, > An unsigned int is probably more appropriate for timestamps than a > signed int. Thank you, that was the kind of advice I was looking for. And your point about not using UNIX time stamps for birthdays and things that could well be outside their date range is well taken. I'm only u

Re: Storing mysql dates as an integer

2004-01-08 Thread Fred van Engen
Dave, On Thu, Jan 08, 2004 at 09:57:46AM +0900, Dave G wrote: > Because of time zone differences between my web site's intended > audience (Japan) and my server's location (Nevada), I've found that it's > most efficient, or at least most simple, to do all my time calculations > in PHP. >

RE: Storing mysql dates as an integer

2004-01-07 Thread Paul DuBois
At 11:25 +0900 1/8/04, Dave G wrote: Paul, >(Unix timestamps are ten digits, aren't they?). No, they're fourteen digits: CCYYMMDDhhmmss I think we might be talking about different things. A UNIX time stamp is ten digits long: http://www.unixtimestamp.com/ How MySQL stores it's own TIMESTAMP col

RE: Storing mysql dates as an integer

2004-01-07 Thread Dave G
Paul, > >(Unix timestamps are ten digits, aren't they?). > No, they're fourteen digits: CCYYMMDDhhmmss I think we might be talking about different things. A UNIX time stamp is ten digits long: http://www.unixtimestamp.com/ How MySQL stores it's own TIMESTAMP column is the format you describe.

Re: Storing mysql dates as an integer

2004-01-07 Thread Paul DuBois
At 9:57 +0900 1/8/04, Dave G wrote: MySQL Gurus, Because of time zone differences between my web site's intended audience (Japan) and my server's location (Nevada), I've found that it's most efficient, or at least most simple, to do all my time calculations in PHP. Up to now, I've s

RE: storing .tar files in mysql

2003-12-13 Thread colbey
True initially... What I've done is use a java appserver frontend (orion) that's a caching server.. It gets the request, checks if it has the image in it's memory cache, if so serves it, otherwise goes to the backend and gets it, stores in memory cache, serves it.. Very fast and aleviates alot o

RE: storing .tar files in mysql

2003-12-13 Thread colbey
16MB? you mean the max packet per query limit? If your storing data in huge/large blob then you are making a big mistake in my opinion and taking a huge performance hit... I've got files over 1GB in size in mysql now.. they went in and out at almost filesystem speed... On Sun, 14 Dec 2003,

Re: storing .tar files in mysql

2003-12-13 Thread colbey
I'd agree with chris. I've got a ton of data/files in mysql for years now and no problems... The thruput in/out is increadible if you implement the storage handler correctly. Plus it gives you certain advantages such as security/scalability/etc... With storing the files on disk, the files nee

RE: storing .tar files in mysql

2003-12-13 Thread colbey
This page has sample article/code how to store any type/size of file in mysql.. Depending on the appliation it could be a good idea (such as revision control or something) http://php.dreamwerx.net/forums/viewtopic.php?t=6 On Fri, 12 Dec 2003 [EMAIL PROTECTED] wrote: > I am working with a pro

RE: storing .tar files in mysql

2003-12-13 Thread Joshua Thomas
> With the NAS - what's to say that MySQL's retrieval and > network protocol > is not more efficient than whatever is running on your NAS boxes? Well, currently we work like so: Client <-> Webserver/Application Server <-> Database The database returns file names to the application/webserver (y

RE: storing .tar files in mysql

2003-12-13 Thread Chris Nolan
Forgot something in my other reply. With the NAS - what's to say that MySQL's retrieval and network protocol is not more efficient than whatever is running on your NAS boxes? Conversely, MySQL's current 16 MB per transfer limitation may very well not allow it to act in this role at all. Ah, the

RE: storing .tar files in mysql

2003-12-13 Thread Chris Nolan
Talk about a decent reply! For web site stuff, having control over everything is pretty much a requirement (if you want to do anything non-trivial). The way that I serve images from the database is by parsing URLs and I've found that the performance is very good. The fact that I can move stuff aro

Re: storing .tar files in mysql

2003-12-13 Thread Chris Nolan
Really? In both cases, it's just bits on a disk. In the case where you don't have access to a shared file repository for your client apps, you haven't got the option of just storing paths. Regards, Chris On Sat, 2003-12-13 at 23:30, Sime wrote: > Chris Nolan wrote: > > Personally, I would have t

RE: storing .tar files in mysql

2003-12-13 Thread Joshua Thomas
> you could very well do that, and frankly that is how alot of websites > work. Yep, including one I run. That site has to generate and links for visitors, and it seems far easier to return "/pics/imagefoo.jpg" then the image itself and decide how to embed that into the page. > But storing th

Re: storing .tar files in mysql

2003-12-13 Thread Sime
Chris Nolan wrote: > Personally, I would have to disagree. I have just completed a > year-long > uni project whereby we built some software that stored massive images > in InnoDB tables. We found that the performance was (at very worst) > comparable to the alternative method. > > Additionally, this

Re: storing .tar files in mysql

2003-12-13 Thread Chris Nolan
Personally, I would have to disagree. I have just completed a year-long uni project whereby we built some software that stored massive images in InnoDB tables. We found that the performance was (at very worst) comparable to the alternative method. Additionally, this method is better on many levels

Re: storing .tar files in mysql

2003-12-12 Thread Jeremy Zawodny
On Fri, Dec 12, 2003 at 02:54:44PM -0600, [EMAIL PROTECTED] wrote: > Hi all, > I am new to mysql and I was wondering if someone could point me in the > right direction on how to store .tar and .tar.gz (bzip2) files inside a > mysql database. I have googled to try and find some help there but most

RE: storing .tar files in mysql

2003-12-12 Thread jake
I am working with a project on sourceforge http://leopard.sourceforge.net and this is one of the package management stratagies we are thinking about trying. As I said I have almost no experience with mysql so I open to any and all suggestions. Very good points being made about the size of the rows.

Re: storing .tar files in mysql

2003-12-12 Thread Neil Watson
On Fri, Dec 12, 2003 at 02:54:44PM -0600, [EMAIL PROTECTED] wrote: I am new to mysql and I was wondering if someone could point me in the right direction on how to store .tar and .tar.gz (bzip2) files inside a mysql database. I have googled to try and find some help there but most I believe the dat

RE: storing .tar files in mysql

2003-12-12 Thread Joshua Thomas
Can I ask why? Why not define a char(50) (or whatever size) with the relative or complete path to the .tar file? Storing it in your database would create huge row sizes. Joshua Thomas Network Operations Engineer PowerOne Media, Inc. tel: 518-687-6143 [EMAIL PROTECTED] --- In theory there is no

Re: Storing binary data (string with nulls/ASCII 0 in them) in CHAR/VARCHAR?

2003-11-28 Thread Dan Nelson
In the last episode (Nov 29), David Garamond said: > >It seems the string in CHAR/VARCHAR is stored as null-terminated ala > >C. But why is record 3 rejected too? > > Ugh, never mind. I forgot about the automatic trailing blanks removal > feature. Well, since trailing blanks are always removed, i

Re: Storing binary data (string with nulls/ASCII 0 in them) in CHAR/VARCHAR?

2003-11-28 Thread David Garamond
David Garamond wrote: insert into t1 values (3,char(32)); Record 3, 5, and 7 is rejected due to duplicate value. ++--+--+ | id | length(code) | code | ++--+--+ | 1 |0 | | | 2 |1 | 0| | 4 |2 | 0 0 | | 6 |

Re: Storing utf8 text

2003-11-06 Thread sowee
Hello ALL (B (B (BHow can a dataset return the default value from the database(MySQL, (BMSSQL, Interbase). (BI have try in ADO, dbx, BDE, and the result is not, (BHow Can I do? (B (B (B-- (BMySQL General Mailing List (BFor list archives: http://lists.mysql.com/mysql (BTo unsubscrib

Re: storing tables in ram / compressed myisam tables

2003-10-09 Thread Matt W
Hi Gabriel, No, you can't currently modify compressed tables. For in memory tables, are you aware of the HEAP type for non-critical data? You're probably talking regular permanent tables, though. For those, the OS will use all free memory (that programs aren't using) to cache file data after it'

Re: Storing Unprintable Characters

2003-09-09 Thread Dan Nelson
In the last episode (Sep 09), Andrew Kuebler said: > I need to store strings encrypted with TripleDES that sometimes > contain unprintable characters (Hexidecimal values under 20). The > values do not seem to properly store in CHAR columns and I don't see > any other column types that might work.

Re: Storing Java Objects

2003-08-29 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > I'd be willing to bet if you implement serializable, serialize it and dump > it to a binary column (blob) .. you should be able to restore... > If you use PreparedStatements, Connector/J will do it 'automagically' for you a

Re: Storing Java Objects

2003-08-29 Thread colbey
I'd be willing to bet if you implement serializable, serialize it and dump it to a binary column (blob) .. you should be able to restore... On Fri, 29 Aug 2003, Dennis Knol wrote: > Hello, > > Is it possible to store Java objects in the mysql database? > > Kind regards, > Dennis > > > _

Re: Storing Java Objects

2003-08-29 Thread Jeff Mathis
I wonder if you could serialize your object, and then store it in a blob column. I'd be interested to know ... Dennis Knol wrote: > > Hello, > > Is it possible to store Java objects in the mysql database? > > Kind regards, > Dennis > > _

Re: storing large integers properly

2003-08-14 Thread Eben Goodman
yes, some do end in 'x' as I just discovered. Thanks to everyone for the input, I have decided to convert to varchar and re-index. Keith C. Ivey wrote: On 5 Aug 2003 at 9:49, Eben Goodman wrote: The data type of the field I am storing this info in is a bigint(16) unsigned. It appears tha

RE: storing large integers properly

2003-08-14 Thread Kevin Gale
Eben. Yes, use a character based data type as the leading zero's are insignificant and will be removed. HTH Kev. > -- > From: Eben Goodman > Sent: Tuesday, August 5, 2003 14:49 PM > To: [EMAIL PROTECTED] > Subject: storing large integers properly > > I am storing

Re: storing large integers properly

2003-08-10 Thread Yves Goergen
you can create/alter the particular column with 'zerofill' attribute set. i.e.: create table books (isbn bigint(16) unsigned zerofill, somemore varchar(100)); -yves -Ursprüngliche Nachricht- Von: "Eben Goodman" <[EMAIL PROTECTED]> An: <[EMAIL PROTECTED]> Gesendet: Dienstag, 5. August

Re: storing large integers properly

2003-08-07 Thread Cybot
Eben Goodman wrote: I am storing book isbn numbers in a table. isbn numbers are 10 digit numbers and many start with 0. The data type of the field I am storing this info in is a bigint(16) unsigned. It appears that isbns that start with 0 are going in as 9 digit numbers, the 0 is being ignor

Re: storing large integers properly

2003-08-06 Thread Keith C. Ivey
On 5 Aug 2003 at 9:49, Eben Goodman wrote: > The data type of the field I am > storing this info in is a bigint(16) unsigned. It appears that isbns > that start with 0 are going in as 9 digit numbers, the 0 is being > ignored or stripped. I have experienced this before with integer data > types

Re: storing large integers properly

2003-08-05 Thread Roger Baklund
* Eben Goodman > I am storing book isbn numbers in a table. isbn numbers are 10 digit > numbers and many start with 0. The data type of the field I am storing > this info in is a bigint(16) unsigned. Why not use "BIGINT(10) UNSIGNED ZEROFILL"? > It appears that isbns that start > with 0 are goi

Re: storing large integers properly

2003-08-05 Thread gerald_clark
How about BIGINT(10) ZEROFILL ? Eben Goodman wrote: I am storing book isbn numbers in a table. isbn numbers are 10 digit numbers and many start with 0. The data type of the field I am storing this info in is a bigint(16) unsigned. It appears that isbns that start with 0 are going in as 9 di

Re: Storing negative numbers in AUTO_INCREMENT

2003-06-10 Thread Becoming Digital
ROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, 10 June, 2003 05:42 Subject: Re: Storing negative numbers in AUTO_INCREMENT >I hate to be the one to ask, but what's the subject have to do with the >rest of >the message? I can't see how the two are related at all. They are not

Re: Storing negative numbers in AUTO_INCREMENT

2003-06-10 Thread Egor Egorov
"rich johnson" <[EMAIL PROTECTED]> wrote: > > Short question: I understand that MySQL in some circumstances > may decide that it's faster to do a full table scan rather than use > the index to look up values. > > But I miss some information on *when* this happens. Is there some > way, short of re

Re: Storing negative numbers in AUTO_INCREMENT

2003-06-10 Thread rich johnson
I hate to be the one to ask, but what's the subject have to do with the rest of the message? I can't see how the two are related at all. They are not :-( I started out using an old draft (which was never sent, because I figured it out in the meantime). Didn't want to blast away at the list once a

Re: Storing negative numbers in AUTO_INCREMENT

2003-06-10 Thread Becoming Digital
I hate to be the one to ask, but what's the subject have to do with the rest of the message? I can't see how the two are related at all. Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: "rich johnson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tue

Re: Storing procedures

2003-05-29 Thread Egor Egorov
"Themis Kafetzopoulos" <[EMAIL PROTECTED]> wrote: > How can I store procedures in mysql? Stored procedures will come only in 5.0 version of MySQL server. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/

  1   2   >