Jump to content

MySQL Inceputul


[Funky]Anakin

Recommended Posts

MySQL Inceputul.

Stiu ca unii ma critica si nu ma suporta dar a venit timpul sa arat ce pot :) .

MySQL Dupa cum stiti este cel mai rapid sistem de salvare existent dupa ce s-a lansat versiunea R26 cu multi-thread. In el s-au facut modificari majore adica include-ul si plugin-ul ajuta ca server-ul tau sa mearga mai repede( pe intelesul tuturor ) .

O chestie interesanta este ca daca ai procesor Dual-Core el va merge cu mult mai repede decat pe un calculator normal xD

In primul tutorial va voi arata cum sa va conectati la o baza de date MySQL .

[pawn]#define mysql_host "localhost" // numele host-ului in caz ca aveti cumparat un host introduceti ip-ul

#define mysql_user "root" // in caz ca aveti cumparat un host introduceti numele user-ului dvs.

#define mysql_db "database" //numele database-ului

#define mysql_pass ""[/pawn]

Ne folosim de functia :

mysql_connect

[pawn]mysql_connect(const host[], const user[], const database[], const password[], port = 3306);[/pawn]

[pawn]public OnGameModeInit()

{

        mysql_connect( mysql_host, mysql_user, mysql_db, mysql_pass );

        return ( 1 );

}[/pawn]

Pentru a va conecta va trebuie WAMPP daca nu il aveti instalat

Download: MySQL R26

idiots.png
Link to comment
Share on other sites

Chiar asteptam de mult o serie de tutoriale mysql mai mari de r8 ,

Stiu MySQL dar nu inteleg cum trebuie facut cu

mysql_function_query , era mai simplu cu mysql_query

mysql_query era folosit in R6 - R5, in R7 si R8 + 26 e mysql_function_query [in R26 e mysql_tquery, dar are define pt. mysql_function_query pt a nu deruta scripterii]

Bun tutorial ... :) , apropo Alex...acesta este un tutorial MySQL care fiind INCEPUTUL, si sigur vor mai urma, ai putea sa il faci mult mai aranjat si frumos...pt. ca vor fi tutoriale foarte folositoare, si e bine si frumos sa fie aranjate si sa ai placere de a citi si pt. aspectul care il are. :)) ^^ stii bine la ce ma refeeeeeeeeeeeeeeeeeeeeeer :))


F*ck everybody who want and who try to judge me for who I am, b*star*s !

 

 

Link to comment
Share on other sites

Va dati seama ca o sa mai fac ca am vazut ca au venit vreo 2-3 interesati de scripting in aceasta comunitate .

mysql_query era folosit in R5-R6 cum zice si K1DDU iar se foloseste ori mysql_function_query ( R21 ) si mysql_tquery ( R26 ) t - thread . Cu mysql_tquery numai folosesti acel bool ( true / false ) pe cand la mysql_function_query da :) . Si in R26 Poti folosi mysql_function_query dar eu folosesc mysql_tquery .

Multumesc de pareri , maine voi mai face unul despre cum sa creezi o baza de date :D xD

idiots.png
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.