Kubo2 / diggyshelper

dh Forum — software, na ktorom beží diskusné fórum Diggy's Helper.
https://diggyshelper.net
3 stars 0 forks source link

Prechod na mysqli driver #14

Open Kubo2 opened 7 years ago

Kubo2 commented 7 years ago

Pomaly, spolu so zastaraním PHP <= 5.5 verzií, budeme aj my prechádzať na verzie PHP >= 5.6 a potom na PHP 7. Aby toto bolo možné, naša infraštruktúra potrebuje prejsť mnohými zmenami -- jednou z nich je aj prechod z ext-mysql, v PHP 7 nedostupnej, na ext-mysqli.

Súbor connect.php takisto vo verziách >= v1.5.1, ale < v1.6 definuje globálnu konštantu DB_CONNECTED typu mysql_resource alebo bool(FALSE). Konštanta je teraz už v dobe, keď sa prešlo na $dbContext s návratovou hodnotou connect.php, prítomná iba kvôli spätnej kompatibilite.

Kubo2 commented 6 years ago

Roughly these days, during the summer, we received an e-mail from our webhosting provider that they will stop supporting the older MySQL version 5.1 that we currently run on, with the advice to migrate to MySQL version 5.7. However after considering some factors, we made a final decision to migrate to the latest MariaDB version. The MySQL 5.1 cutoff will take effect on Sept 1st, 2018 and therefore we need to upgrade our software to support it as soon as we can. Along with migrating to a new database server, we will also migrate to PHP7.

Kubo2 commented 6 years ago

We have now already migrated and we are running on a MariaDB server.