Database client

Just starting out? Need help? Post your questions and find answers here.
rogal79
User
User
Posts: 11
Joined: Tue Feb 10, 2004 3:08 pm
Location: Poland, Toruñ

Database client

Post by rogal79 »

I've got the following problem:

I'd like to write a database client program,
but database is not on the local machine but
only on remote host.
The database server is MySQL.

Is it possible to do it by PB?
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Yes. Install the MySQL ODBC drivers and use the procedure from the database library in PB..
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: Database client

Post by Fangbeast »

rogal79 wrote:I've got the following problem:

I'd like to write a database client program,
but database is not on the local machine but
only on remote host.
The database server is MySQL.

Is it possible to do it by PB?
Yes, it's suprisingly easy i've found, now that I've done it too. Many people in the forum run MySql and swear by it.

I'm running a library book management program being used remotely and locally by friends and family. MySQL server is running on my machine and no problems at all.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

I swear by PostgreSQL (www.postgresql.org). MySQL died and took my data with it one too many times.
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Scary thought.

Post by Fangbeast »

Karbon wrote:I swear by PostgreSQL (www.postgresql.org). MySQL died and took my data with it one too many times.
I had a conversation like this with an Oracle employee, lots of heat there :):):) Still, I haven't had any problems (to date) and I know a lot of (really big) sites haven't either.

I'm using the current (stable) release of the server and client. What release were you using?
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
wings
User
User
Posts: 21
Joined: Fri Apr 25, 2003 5:09 pm
Location: Canada

Post by wings »

I don't like MySQL at all. It's a fast and suitable database for Internet applications, but to use it as an internal database for your company, it's possible, but it's really NOT the best solution. It misses triggers, stored procedures, not very good protecting data against corruption, not free when you use it in a commercial application (unless that same application is open source, yeah right), just a small SQL-92 set, etc.

I use Firebird, 100% free, doesn't that feel great! I can great server/client applications without paying one dime! :lol:
It has everything MySQL has but a lot more. It's slightly slower than MySQL, but for that you get a lot of data integrity in return. I can run it single user, client/server, they even have an embedded version.

Maintenance? Zero. Running? Always. Data corruption? What's that?

About MySQL; I've visited some Borland newsgroups and get the impression that 90% think MySQL is free. Only some smart Borland employees belonged to the 10%.
In reality, if you use MySQL more than just storing your private CD collection, you have to pay, simple as that. And that is a VERY important factor that should be taken in account when you start comparing MySQL with other databases.
Beach
Enthusiast
Enthusiast
Posts: 677
Joined: Mon Feb 02, 2004 3:16 am
Location: Beyond the sun...

Post by Beach »

wings wrote:if you use MySQL more than just storing your private CD collection, you have to pay, simple as that. And that is a VERY important factor that should be taken in account when you start comparing MySQL with other databases.
That is a little extreme Wings.

From MySQL web site:

The software from MySQL AB listed below is licensed under the GNU General Public License (GPL) and is provided "as is" and is without any warranty.

You need to purchase commercial non-GPL MySQL licenses:

* If you distribute MySQL Software with your non open source software,
* If you want warranty from MySQL AB for the MySQL software,
* If you want to support MySQL development.
The_Pharao
User
User
Posts: 57
Joined: Sun Jan 04, 2004 2:11 pm

Post by The_Pharao »

if you can decide what database you want to use, give firebird (opensource & free to use) a try!
http://www.firebirdsql.org/
dell_jockey
Enthusiast
Enthusiast
Posts: 767
Joined: Sat Jan 24, 2004 6:56 pm

Post by dell_jockey »

Pharao,

thanks a lot for that link. I sort of lost sight of InterBase over the years; I didn't know that Firebird is the open source continuation of InterBase.
What I like about it, is that it scales nicely from embedded usage up to enterprise deployement.
Too bad that the dll that you need for embedded apps is over 1 Mb large. SQLite is very nice in that respect. I guess it's a matter of 'horses for courses'.

Do you use Firebird with PureBasic? If so, can you please write some notes about how to get up and running with this combination?
cheers,
dell_jockey
________
http://blog.forex-trading-ideas.com
dagcrack
Addict
Addict
Posts: 1868
Joined: Sun Mar 07, 2004 8:47 am
Location: Argentina
Contact:

Post by dagcrack »

By myself I run a MySQL Server 24/7, Web server 24/7 with php support, Ftp server (only when needed, like.. when I go out of home and I need to catch stuff from my server or pc, I just use FTP and/or Radmin). I used to run many other services, but they are useless right now... I'm just waiting to move, and get a better upstream line.
! Black holes are where God divided by zero !
My little blog!
(Not for the faint hearted!)
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Re: Scary thought.

Post by Karbon »

Fangbeast wrote:
Karbon wrote:I swear by PostgreSQL (www.postgresql.org). MySQL died and took my data with it one too many times.
I had a conversation like this with an Oracle employee, lots of heat there :):):) Still, I haven't had any problems (to date) and I know a lot of (really big) sites haven't either.

I'm using the current (stable) release of the server and client. What release were you using?
In all fairness this was several years ago now. I had some trouble about 6 months ago with a crash corrupting the database but I successfully restored from a backup. I don't remember what version it wasbut I'm sure it wasn't their latest and greatest.

I've never (yes, never) had PostgreSQL screw any of my data up and I've been using it since the mid 6.X versions. It provides all the power, speed and reliability I've ever needed. It's also released under the BSD license so there aren't any GPL entanglements. PG is developed by a core group of people (IE not everyone with WinCVS!) so I sleep better at night knowing that it is very stable.

MySQL has it's uses for sure - I use it for a few things but don't (and never will) trust it for mission critical stuff. I know I'm probably just holding an old grudge too long but you know what they say - once bitten, twice shy :-)
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
User avatar
the.weavster
Addict
Addict
Posts: 1576
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

low cost, small footprint SQL server

Post by the.weavster »

There's a low cost, small footprint (about 1mb) SQL server available here:

http://www.colourfull.com/multidb.html

the 3 user version is completely free so why not give it a go.
Post Reply