mysql or flat-file - which is cheaper?

This is a discussion on mysql or flat-file - which is cheaper? within the PHP Language forums, part of the PHP Programming Forums category; I am debating whether I need to learn mysql or if I can get by with flat-files? I sell ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2005
el_roachmeister@yahoo.com
 
Posts: n/a
Default mysql or flat-file - which is cheaper?

I am debating whether I need to learn mysql or if I can get by with
flat-files? I sell hosted software and currently host dozens of
flat-file databases for clients. My webhost only allows 7 mysql
databases for my account. Does that mean I could only host seven mysql
databases? If so I think it is much cheaper to do things in flat-files
since my databases are rather small . Am I missing something here?

Thanks!

Reply With Quote
  #2 (permalink)  
Old 04-20-2005
BKDotCom
 
Posts: n/a
Default Re: mysql or flat-file - which is cheaper?

perhaps these flat-files aren't databases so much as they are "tables"?
each of the 7 databases could have countless tables.

"7 mysql databases" seems a bit arbitrary, since theres really no limit
to the size of a database. Probably still falls under the general
filespace limits you have....

Reply With Quote
  #3 (permalink)  
Old 04-20-2005
Gordon Burditt
 
Posts: n/a
Default Re: mysql or flat-file - which is cheaper?

>I am debating whether I need to learn mysql or if I can get by with
>flat-files? I sell hosted software and currently host dozens of
>flat-file databases for clients. My webhost only allows 7 mysql
>databases for my account. Does that mean I could only host seven mysql
>databases? If so I think it is much cheaper to do things in flat-files
>since my databases are rather small . Am I missing something here?


You can put an enormous number of tables in a single database.
The main reason you want separate databases is because the data
should be kept separate: it's for separate clients and should
have separate passwords, or you want several instances of the same
software that doesn't easily let you use alternate table names,
or you just want to keep data for separate virtual hosts separate.

How much disk storage does your host let you use? That's an issue
both for MySQL and flat files, although the disk usage may come out
of separate "buckets".

Gordon L. Burditt
Reply With Quote
  #4 (permalink)  
Old 04-20-2005
Good Man
 
Posts: n/a
Default Re: mysql or flat-file - which is cheaper?

el_roachmeister@yahoo.com wrote in news:1114013428.342173.9950
@z14g2000cwz.googlegroups.com:

> I am debating whether I need to learn mysql or if I can get by with
> flat-files? I sell hosted software and currently host dozens of
> flat-file databases for clients. My webhost only allows 7 mysql
> databases for my account. Does that mean I could only host seven mysql
> databases? If so I think it is much cheaper to do things in flat-files
> since my databases are rather small . Am I missing something here?
>
> Thanks!


learn mysql - if not now, you'll have to learn it sometime. to do basic
things, it's really not that complicated.

you will only need one database. many tables can be in a single
database.

databases are more robust, offer easier updating/retreiving of data, and
are clearly the way to go unless your webhost charges a lot of money for
mysql databases (most webhosts provide one free of charge).

Reply With Quote
  #5 (permalink)  
Old 04-20-2005
el_roachmeister@yahoo.com
 
Posts: n/a
Default Re: mysql or flat-file - which is cheaper?

Thanks, I will certainly start learning mysql . One concern I have is I
like the ease with which I can open a flatfile, view all the data and
make changes directly. This is very useful for debugging purposes as
well as quick editing. I am assuming this is not possible with mysql
since it is all stored as binary data. I would need to write various
commands to display a table and edit entries, no?

Reply With Quote
  #6 (permalink)  
Old 04-20-2005
jerry gitomer
 
Posts: n/a
Default Re: mysql or flat-file - which is cheaper?

el_roachmeister@yahoo.com wrote:
> Thanks, I will certainly start learning mysql . One concern I have is I
> like the ease with which I can open a flatfile, view all the data and
> make changes directly. This is very useful for debugging purposes as
> well as quick editing. I am assuming this is not possible with mysql
> since it is all stored as binary data. I would need to write various
> commands to display a table and edit entries, no?
>

It is even easier and faster to change a MySQL table (once you
learn how) than it is to edit a flat file.

If you choose to use PHPMyAdmin you don't even have to learn the
three SQL commands needed to INSERT, UPDATE, and DELETE rows
from a MySQL table.

HTH
Jerry
Reply With Quote
  #7 (permalink)  
Old 04-20-2005
Good Man
 
Posts: n/a
Default Re: mysql or flat-file - which is cheaper?

el_roachmeister@yahoo.com wrote in news:1114018555.928413.146760
@o13g2000cwo.googlegroups.com:

> I would need to write various commands to display a table and edit
> entries, no?


you can if you like, but no, its not necessary.

many webhosts set up something called PhpMyAdmin which gives you a GUI of
sorts, really through webpages.

or you can go get a GUI.... head to Navicat.com to try a 30-day trial... it
makes adminstering MySQL pretty simple, though it does require your webhost
to provide access to the MySQL database...

To sum up - you can go hard-core command-line MySQL if you want, but you
aren't limited to it at all.

Reply With Quote
  #8 (permalink)  
Old 04-20-2005
Malcolm Dew-Jones
 
Posts: n/a
Default Re: mysql or flat-file - which is cheaper?

el_roachmeister@yahoo.com wrote:
: Thanks, I will certainly start learning mysql . One concern I have is I
: like the ease with which I can open a flatfile, view all the data and
: make changes directly. This is very useful for debugging purposes as
: well as quick editing. I am assuming this is not possible with mysql
: since it is all stored as binary data. I would need to write various
: commands to display a table and edit entries, no?

To open and modify a flat file you need a tool like a text editor. And
you have to learn the commands of that editor.

To open and modify a database table you need a tool like the mysql client
program. And you have to learn SQL commands like SELECT and UPDATE.

In some ways the mysql program is easier because you can't mess up the
format of the data.

Otherwise, there's not really much difference at all. Choose the tool.
Learn the commands. Edit the data.


--

This space not for rent.
Reply With Quote
  #9 (permalink)  
Old 04-20-2005
CJ Llewellyn
 
Posts: n/a
Default Re: mysql or flat-file - which is cheaper?

On Wed, 20 Apr 2005 09:10:28 -0700, el_roachmeister wrote:

> I am debating whether I need to learn mysql or if I can get by with
> flat-files? I sell hosted software and currently host dozens of
> flat-file databases for clients. My webhost only allows 7 mysql
> databases for my account. Does that mean I could only host seven mysql
> databases? If so I think it is much cheaper to do things in flat-files
> since my databases are rather small . Am I missing something here?


You need a better web host ;)


Reply With Quote
  #10 (permalink)  
Old 04-21-2005
Tim Van Wassenhove
 
Posts: n/a
Default Re: mysql or flat-file - which is cheaper?

On 2005-04-20, el_roachmeister@yahoo.com <el_roachmeister@yahoo.com> wrote:
> I am debating whether I need to learn mysql or if I can get by with
> flat-files? I sell hosted software and currently host dozens of
> flat-file databases for clients. My webhost only allows 7 mysql
> databases for my account. Does that mean I could only host seven mysql
> databases? If so I think it is much cheaper to do things in flat-files
> since my databases are rather small . Am I missing something here?


You forget to calculate the time (and costs) you will spend implementing
transaction support etc.. for your flat files.

--
Met vriendelijke groeten,
Tim Van Wassenhove <http://www.timvw.info>
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:12 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0