MySQL vs MySQLi Extension
MySQL yog qhov nrov Relational Database Management System (RDBMS). Nws yog qhov qhib DBMS uas tau siv dav txawm nyob rau hauv cov lag luam loj xws li Wikipedia, Google thiab Facebook. PHP (sawv rau PHP: Hypertext Preprocessor) yog tus neeg rau zaub mov sab scripting lus, tshwj xeeb tshaj yog haum rau kev tsim cov nplooj ntawv dynamic thiab sib tham sib. MySQL thiab MySQLi yog ob qhov txuas ntxiv muab rau kev sib cuam tshuam ntawm PHP daim ntawv thov nrog MySQL databases. Ob qhov kev txuas ntxiv no tau siv los siv PHP txuas ntxiv lub moj khaum thiab cov no muab API (Application Programming Interface) rau PHP programmers los cuam tshuam nrog MySQL databases.
MySQL Extension yog dab tsi?
MySQL Extension yog thawj qhov txuas ntxiv muab rau kev tsim cov ntawv thov PHP, uas tuaj yeem siv los cuam tshuam nrog MySQL databases. Qhov no muab cov txheej txheem cuam tshuam rau PHP programmers cuam tshuam nrog MySQL databases. Qhov kev txuas ntxiv no yog tsim los siv nrog MySQL versions uas laus dua version 4.1.3. Txawm hais tias qhov no tuaj yeem siv nrog MySQL version 4.1.3 lossis tshiab dua, ib qho ntawm cov yam ntxwv tshiab hauv cov qauv no yuav tsis muaj. Tam sim no tsis muaj kev txhim kho nquag tshwm sim ntawm MySQL Extension thiab nws tsis pom zoo rau cov haujlwm tshiab. Ntxiv MySQL Extension tsis txhawb server-sab npaj cov lus lossis cov neeg siv-sab npaj Cov Lus Qhia. Nws kuj tsis txhawb cov txheej txheem khaws cia lossis Charsets.
MySQLi Extension yog dab tsi?
MySQLi Extension (tseem hu ua MySQL txhim kho txuas ntxiv) yog qhov txuas ntxiv tshiab muab rau kev tsim cov ntawv thov PHP uas tuaj yeem cuam tshuam nrog MySQL databases. Qhov kev txuas ntxiv no yog tsim los kom tau txais kev siv ntau tshaj plaws ntawm cov yam ntxwv muaj nyob hauv MySQL version 4.1.3 lossis tshiab dua. MySQLi Extension yog thawj zaug koom nrog PHP version 5 thiab suav nrog tag nrho cov tom qab versions. Ntxiv rau kev muab cov txheej txheem kev sib txuas rau PHP programmers, MySQLi Extension muab cov khoom taw qhia kev sib txuas thiab. Qhov no tseem muab kev txhawb nqa rau cov neeg siv khoom / server sab npaj cov lus thiab ntau nqe lus. Tsis tas li ntawd, nws txhawb Charsets thiab khaws cov txheej txheem.
Qhov txawv ntawm MySQL thiab MySQLi Extension yog dab tsi?
Txawm hais tias ob qho tib si MySQL Extension thiab MySQLi Extension yog qhov txuas ntxiv muab rau kev tsim cov ntawv thov PHP uas tuaj yeem cuam tshuam nrog MySQL databases, MySQLi Extension muaj qee qhov kev txhim kho tseem ceeb tshaj MySQL Extension. Ua ntej, MySQL Extension tau pom zoo kom siv nrog MySQL versions uas laus dua 4.1.3, thaum MySQLi Extension raug pom zoo kom siv nrog MySQL versions 4.1.3 lossis tshiab dua. Tsis tas li, MySQLi Extension tsuas yog koom nrog PHP 5 lossis tom qab versions. MySQL Extension tsuas yog muab cov txheej txheem cuam tshuam rau PHP programmers, thaum MySQLi Extension muab cov khoom taw qhia kev sib txuas (ntxiv rau cov txheej txheem interface). Tsis tas li ntawd, MySQLi Extension muab kev txhawb nqa rau cov lus npaj thiab ntau nqe lus, uas tsis tau txais kev txhawb nqa hauv MySQL Extension. MySQLi Extension muab kev txhim kho kev paub daws teeb meem thaum piv nrog MySQL Extension. Tsis tas li ntawd, MySQLi Extension muab kev txhawb nqa server thiab kev txhawb nqa kev lag luam, uas tsis muaj nyob hauv MySQL Extension. Txawm hais tias MySQL Extension tuaj yeem siv nrog MySQL versions 4.1.3 lossis tshiab dua, ib qho ntawm cov yam ntxwv tshiab nrog rau cov MySQL versions yuav tsis muaj.