How to select a database server when dealing with PHP. | (Server-side programming) by kiddady

View this thread on steempeak.com
· @kiddady · (edited)
How to select a database server when dealing with PHP. | (Server-side programming)
![maxresdefault.jpg](https://cdn.steemitimages.com/DQmU23EW4UtPGsCzjpVsT9FErkiiBPnoj7WWCU2zZAm25Co/maxresdefault.jpg)

Have you ever dealt with databases or have you been dealing with database management systems, here is a recap on how to select a database server when dealing specifically with PHP. 

With such a wide variety of choices,  it can be difficult to decide which Database Management system to use. While most people would balk at open source solutions simply because they are free (support is a must have feature for most people), the ability to get support contracts for these products brings them back into the set of possibilities.  

Therefore,  I will present a small list of the things you might want to keep in mind when making the choice between DBMSes for your web application. 

<h4>*Thinking about your data*.</h4>

Before you can begin selecting a particular database software package, you first have to think carefully about your data and how you might go about organizing it. Are you going to build a bunch of small tables,  where performance will not be so critical,  but ease of organisation and visualisation?  Or will you be building a system around a table that could grow into millions, if not billions?
It is not critical that you know exactly how your data will be laid out when designing and Creating your database, but if you at least have some idea of what your data is going to be and what order of magnitude is,  then you can start to think about what features you will value most in a DBMS. 

<h4>*Capability.*</h4>


![mysqlsshbackup.jpg](https://cdn.steemitimages.com/DQmXjsmFBRtACGzEJVt4DsBA2YiSrihj3tFDvTu9bUAdn6Y/mysqlsshbackup.jpg)

It may seem obvious,  but you should be sure that your choice in database servers supports everything you want it to support. Will it be able to work on the platform where you to place your servers?  If you want to deploy a non-Windows servers for you web application, Microsoft's SQL server will not do the trick. 
Similarly, some database systems do not fully support Unicode, and since you will be making this an important part of your web applications, you will not use a server that does not correctly handle multi-byte strings. If you imagine that your database will have a complicated logical structure, and you will benefit from transactions ( a feature by which you can be able to group a number of operations on the data into seemingly atomic action), then you should be sure to your choice supports this.
<h4>*Performance.*</h4>

When suggesting thoughts about how you might structure your data, performance can be a big concern. If you are writing an online discussion forum that takes about 45 seconds to show an individual discussion,  people will not likely do much talking. 
While it is generally unwise to think that it is safe to design your database and organize your data in an inefficient manner because some database package is "so fast it will take care of it," we should recognize that some systems will scale better than others as data size and user load increase. This will give you more time to recognize that your data the need rise. 
<h4>*Accessibility from within PHP*</h4>

![idz9bmcfxo10eosjmfrb.png](https://cdn.steemitimages.com/DQmX9frWz9yXEKTjCw1YdwrVvcARh9T2AxvyRZTXhixCuZa/idz9bmcfxo10eosjmfrb.png)

For any DBMS you will choose,  you want to be sure that any database engine is usable within PHP.  The ones in my previous post are fully supported by the language. However,  the specific features, you might want to make sure that they can be accessed via the available functions.  If you do not see what you need in the PHP Manual, spending more time searching the Internet for discussions about the feature often yields the answer. 
<h4>*Cost*</h4>
Another thing to keep in mind is to be sure that you can afford whatever database server you choose. It is important not only to consider the cost of the actual database software, but also what will cost to support it, what sort of hardware requirements the package has, and any operating system costs associated with it. 
There is also the cost of training somebody to manage the database, or hiring outside aid (outsourcing) to do so.  If you were down to choosing between MySQL and Microsoft SQL Server and had a friend or someone in your office who had extensive experience with the latter, then this might be a reason to consider that package more favorably despite the higher cost of acquisition.  Learning  the implementation details,  ins and outs, and quirks of a particular database engine can be both time-consuming and frustrating, while finding and hiring somebody to manage your database full time can be both difficult and expensive. 
<h4>Conclusion.</h4>

##### Thus,  due to the relative popularity, availability,  ease of use, and excellent online documentation, MySQL database is arguably a better database server to use. However,  it is absolutely vital to note that this is not the "best" database server available,  or the one that is always going to be best for your needs.
👍  , , , , , , , , , , , , , , ,
👎  ,
properties (23)
post_id58,401,546
authorkiddady
permlinkhow-to-select-a-database-server-when-dealing-with-php
categoryuganda
json_metadata{"image":["https:\/\/cdn.steemitimages.com\/DQmU23EW4UtPGsCzjpVsT9FErkiiBPnoj7WWCU2zZAm25Co\/maxresdefault.jpg"],"format":"markdown","app":"steemit\/0.1","tags":["uganda","technology","code","busy","utopian-io"]}
created2018-08-01 11:10:36
last_update2018-08-01 12:29:06
depth0
children5
net_rshares-7,333,843,835,511
last_payout2018-08-08 11:10:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length5,065
author_reputation1,314,888,384,444
root_title"How to select a database server when dealing with PHP. | (Server-side programming)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (18)
@orogot ·
hey i just got you an up vote so please vote my post for my vote to carry more weight in future
properties (22)
post_id58,403,007
authororogot
permlinkre-kiddady-how-to-select-a-database-server-when-dealing-with-php-20180801t113349965z
categoryuganda
json_metadata{"app":"steemit\/0.1","tags":["uganda"]}
created2018-08-01 11:31:18
last_update2018-08-01 11:31:18
depth1
children1
net_rshares0
last_payout2018-08-08 11:31:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length95
author_reputation169,390,437,178
root_title"How to select a database server when dealing with PHP. | (Server-side programming)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@kiddady · (edited)
@orogot, thanks a lot, I love your posts too, they are great! I think I got you with my blogs coz they are so educative about back-end programming. I am hoping to delve more into this.
👍  
properties (23)
post_id58,404,231
authorkiddady
permlinkre-orogot-re-kiddady-how-to-select-a-database-server-when-dealing-with-php-20180801t114710314z
categoryuganda
json_metadata{"users":["orogot"],"app":"steemit\/0.1","tags":["uganda"]}
created2018-08-01 11:47:06
last_update2018-08-01 11:49:33
depth2
children0
net_rshares265,396,603
last_payout2018-08-08 11:47:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length184
author_reputation1,314,888,384,444
root_title"How to select a database server when dealing with PHP. | (Server-side programming)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@jrswab ·
<center>🚀 This is a stellar post! 🚀

I will be featuring it in my weekly #technology and #science curation post for the @minnowsupport project and the [Tech Bloggers' Guild](https://discord.gg/ZTDzbvf)!  The Tech Bloggers' Guild is a new group of Steem bloggers and content creators looking to improve the overall quality of our niche.

Wish not to be featured in the curation post this Friday? Please let me know. In the meantime, keep up the hard work, and I hope to see you at the Tech Bloggers' Guild!

---
If you have a free witness vote and like what I am doing for the Steem blockchain it would be an honor to have your vote for my witness server. Either [click this SteemConnect link](https://steemconnect.com/sign/account-witness-vote?witness=jrswab&approve=1) or head over to [steemit.com/~witnesses](https://steemit.com/~witnesses) and enter my username it the box at the bottom.</center>
properties (22)
post_id58,405,810
authorjrswab
permlinkre-kiddady-how-to-select-a-database-server-when-dealing-with-php-20180801t120803886z
categoryuganda
json_metadata{"app":"steemit\/0.1","tags":["uganda","technology","science"],"links":["https:\/\/discord.gg\/ZTDzbvf","https:\/\/steemconnect.com\/sign\/account-witness-vote?witness=jrswab&approve=1","https:\/\/steemit.com\/~witnesses"],"users":["minnowsupport"]}
created2018-08-01 12:08:03
last_update2018-08-01 12:08:03
depth1
children1
net_rshares0
last_payout2018-08-08 12:08:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length899
author_reputation45,243,433,466,167
root_title"How to select a database server when dealing with PHP. | (Server-side programming)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@kiddady · (edited)
Hi @jrwwab, I surely wish to, thanks a lot for passing by @jrswab and thanks for contributing to #technology and #science. I cannot wait!
👍  ,
properties (23)
post_id58,406,412
authorkiddady
permlinkre-jrswab-re-kiddady-how-to-select-a-database-server-when-dealing-with-php-20180801t121528062z
categoryuganda
json_metadata{"app":"steemit\/0.1","tags":["uganda","technology","science"],"users":["jrwwab","jrswab"]}
created2018-08-01 12:15:27
last_update2018-08-01 15:12:51
depth2
children0
net_rshares5,204,014,141
last_payout2018-08-08 12:15:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length137
author_reputation1,314,888,384,444
root_title"How to select a database server when dealing with PHP. | (Server-side programming)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@steemcleaners · (edited)
$1.18
[Source](https://books.google.com.np/books?id=ARmNnO8I8I8C&pg=PA179&lpg=PA179&dq=Similarly,+some+database+systems+do+not+fully+support+Unicode,+and+since+you+will+be+making+this+an+important+part+of+your+web+applications,+you+will+not+use+a+server+that+does+not+correctly+handle+multi-byte+strings.+If+you+imagine+that+your+database+will+have+a+complicated+logical+structure,+and+you+will+benefit+from+transactions+(+a+feature+by+which+you+can+be+able+to+group+a+number+of+operations+on+the+data+into+seemingly+atomic+action),+then+you+should+be+sure+to+your+choice+supports+this.&source=bl&ots=La9udB7Cx5&sig=u5b2qIQkM-XzO6RhRFqIE-LKmHU&hl=en&sa=X&ved=2ahUKEwjj-s-njtncAhWMgI8KHR03B80Q6AEwAXoECAkQAQ#v=onepage&q=Similarly%2C%20some%20database%20systems%20do%20not%20fully%20support%20Unicode%2C%20and%20since%20you%20will%20be%20making%20this%20an%20important%20part%20of%20your%20web%20applications%2C%20you%20will%20not%20use%20a%20server%20that%20does%20not%20correctly%20handle%20multi-byte%20strings.%20If%20you%20imagine%20that%20your%20database%20will%20have%20a%20complicated%20logical%20structure%2C%20and%20you%20will%20benefit%20from%20transactions%20(%20a%20feature%20by%20which%20you%20can%20be%20able%20to%20group%20a%20number%20of%20operations%20on%20the%20data%20into%20seemingly%20atomic%20action)%2C%20then%20you%20should%20be%20sure%20to%20your%20choice%20supports%20this.&f=false)

![steemit2_source.png](https://cdn.steemitimages.com/DQmWBaf4BbUyw7oP5pcSPAkQL2euhqaHTvwEVBWxAF7wRvD/steemit2_source.png)


[Plagiarism](http://www.plagiarism.org/plagiarism-101/what-is-plagiarism/) is the copying & pasting of others work without giving credit to the original author or artist. Plagiarized posts are considered spam. 

Spam is discouraged by the community, and may result in action from the [cheetah bot](https://steemit.com/faq.html#What_is__cheetah).

[More information and tips on sharing content.](https://steemcleaners.org/copy-paste-plagiarism/)

If you believe this comment is in error, please contact us in [#disputes on Discord](https://discord.gg/YR2Wy5A)
👍  , , ,
properties (23)
post_id58,978,458
authorsteemcleaners
permlinkre-kiddady-how-to-select-a-database-server-when-dealing-with-php-20180807t082742964z
categoryuganda
json_metadata{"app":"steemit\/0.1","format":"markdown+html","tags":["uganda"],"community":"steemcleaners","image":["https:\/\/cdn.steemitimages.com\/DQmWBaf4BbUyw7oP5pcSPAkQL2euhqaHTvwEVBWxAF7wRvD\/steemit2_source.png"],"links":["https:\/\/books.google.com.np\/books?id=ARmNnO8I8I8C&pg=PA179&lpg=PA179&dq=Similarly,+some+database+systems+do+not+fully+support+Unicode,+and+since+you+will+be+making+this+an+important+part+of+your+web+applications,+you+will+not+use+a+server+that+does+not+correctly+handle+multi-byte+strings.+If+you+imagine+that+your+database+will+have+a+complicated+logical+structure,+and+you+will+benefit+from+transactions+(+a+feature+by+which+you+can+be+able+to+group+a+number+of+operations+on+the+data+into+seemingly+atomic+action),+then+you+should+be+sure+to+your+choice+supports+this.&source=bl&ots=La9udB7Cx5&sig=u5b2qIQkM-XzO6RhRFqIE-LKmHU&hl=en&sa=X&ved=2ahUKEwjj-s-njtncAhWMgI8KHR03B80Q6AEwAXoECAkQAQ#v=onepage&q=Similarly%2C%20some%20database%20systems%20do%20not%20fully%20support%20Unicode%2C%20and%20since%20you%20will%20be%20making%20this%20an%20important%20part%20of%20your%20web%20applications%2C%20you%20will%20not%20use%20a%20server%20that%20does%20not%20correctly%20handle%20multi-byte%20strings.%20If%20you%20imagine%20that%20your%20database%20will%20have%20a%20complicated%20logical%20structure%2C%20and%20you%20will%20benefit%20from%20transactions%20(%20a%20feature%20by%20which%20you%20can%20be%20able%20to%20group%20a%20number%20of%20operations%20on%20the%20data%20into%20seemingly%20atomic%20action)%2C%20then%20you%20should%20be%20sure%20to%20your%20choice%20supports%20this.&f=false","http:\/\/www.plagiarism.org\/plagiarism-101\/what-is-plagiarism\/","https:\/\/steemit.com\/faq.html#What_is__cheetah","https:\/\/steemcleaners.org\/copy-paste-plagiarism\/","https:\/\/discord.gg\/YR2Wy5A"]}
created2018-08-07 08:27:42
last_update2018-08-07 08:41:30
depth1
children0
net_rshares806,734,897,920
last_payout2018-08-14 08:27:42
cashout_time1969-12-31 23:59:59
total_payout_value0.887 SBD
curator_payout_value0.289 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,085
author_reputation3,004,538,530,204,693
root_title"How to select a database server when dealing with PHP. | (Server-side programming)"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (4)