Txhawm rau kom lub vev xaib ua haujlwm nquag thiab txuag txhua yam ntaub ntawv hais txog cov neeg siv lossis tsuas khaws cov khoom, koj yuav tsum txuas cov ntaub ntawv tshwj xeeb. Tsis yog txhua tus neeg tuaj yeem lav nrog lub luag haujlwm ntawm tes, vim tias lawv tsis muaj lub tswv yim hais txog nws. Txawm li cas los xij, txhua yam yog txiav txim siab nyob rau hauv ob peb feeb.
Nws yog qhov tsim nyog
- - Tus Kheej Lub Computer;
- - Is Taws Nem;
- - lub vev xaib
Cov Lus Qhia
Kauj ruam 1
Tsim cov ntaub ntawv tseeb uas koj yuav txuas mus rau lub xaib. Mus rau hauv seem "Cov tswj hwm vaj huam sib luag", uas nyob ntawm qhov chaw. Xaiv seem "Cov Ntaub Ntawv". Tsim daim ntawv tshiab. Tom qab qhov kev khiav hauj lwm no, cov txiaj ntsig tawm los yuav zoo li no: account_Lub npe ntawm lub database. Koj kuj yuav tsum tsim lub npe neeg siv. Tam sim no txuas cov tsab ntawv mus rau cov txiaj ntsig cov ntaub ntawv. Nrhiav cov ntaub ntawv uas muaj cov tsis sib txuas. Nws yog feem ntau muaj npe config.php.
Kauj ruam 2
Kho kom raug cov ntaub ntawv config. Qhov no tuaj yeem ua tiav ntawm lub khoos phis tawm ntawm tus kheej los ntawm "Pib" mus rau "Notepad" program. Sau tag nrho cov qauv txuas:
1) $ hostName = "localhost"; // localhost yog lub hostname
2) $ userName = "account_UserName"; // base username
3) $ password = "*****"; // tus password siv
4) $ databaseName = "account_DatabaseName"; // npe npe.
Tom qab ntawd hloov tag nrho cov ntaub ntawv rau lub hosting.
Kauj ruam 3
Koj tseem tuaj yeem ua cov ntaub ntawv txuas nrog sib txawv. Mus rau "Control Panel" ntawm lub hosting koj xav tau. Hauv cov ntawv qhia zaub mov, nrhiav thiab nyem rau ntawm "MySQL Cov Kev Tswj Xyuas Cov Neeg Siv". Tom qab ntawd nyem rau ntawm "Ntxiv" khawm. Yog li, koj tau tsim lub npe username thiab password. Nyem Next. Mus rau hauv seem "MySQL Cov Ntaub Ntawv Kev Tswj Xyuas". Nyem rau ntawm "Ntxiv" khawm. Ntaus lub npe "Admin" rau hauv cov lus piav qhia. Nyem rau ntawm "Ntxiv" khawm ntxiv. Nco ntsoov koj lub npe database thiab password. Nyem Next. Lub qhov rai yuav qhib rau qhov koj xav tau qee qhov kev teeb tsa. Ntxiv rau koj tus username DB. Ntawm kev ua haujlwm hosting, tsim cov chaw khaws ntaub ntawv. Sau cov nkag rau hauv daim nplaub tshev tsim. Cov ntaub ntawv no yuav muaj lub npe connect.php. Nws suav nrog cov chaw txuas. Yog tias tsim nyog, sau txhua qhov tsim nyog siv cov ntaub ntawv siv neeg siv.