Jump to content
  • 0

Conectare MySQL


Ma poti ajuta cu acest lucru?  

2 members have voted

  1. 1. Ma poti ajuta cu acest lucru?

    • Da
      1
    • Cu siguranta
      0
    • Absolut!
      1


Question

Posted (edited)

Problema intalnita (descriere): Pai, am luat si eu gm HARD ROLEPLAY(Mersi EquiNox. pentru toata munca facuta, ti-am pastrat numele tau la credite), si cand vreau sa-l pornesc, am pus in baza de date a webhost-ului baza de la hard-rp, si cand dau, nu se conecteaza... am pus si ip si tot.
Ero(area / rile) / warning-(ul / urile): Connection to "109.99.162.15" failed! please check the settings Liniile de cod / sursa / script-ul(obligatoriu): Nu este nevoie. Imagini / Video (optional): - Ati incercat sa rezolvati singur?: Da nu reusesc incerc de mult timp

Edited by mugurvlad47
EDIT

8 answers to this question

Recommended Posts

  • 0
Posted

#define SQL_HOSTNAME "IP MYSQL"
#define SQL_USERNAME "USER MYSQL"
#define SQL_DATABASE "DATABASE NAME"
#define SQL_PASSWORD "Data base password"

Il ai in PC sau pe host? Si arata-mi server.cfg 

j3V8Znq.png

5IGyOAw.png

  • 0
Posted
Acum 3 minute, EquiNox a spus:

#define SQL_HOSTNAME "IP MYSQL"
#define SQL_USERNAME "USER MYSQL"
#define SQL_DATABASE "DATABASE NAME"
#define SQL_PASSWORD "Data base password"

Il ai in PC sau pe host? Si arata-mi server.cfg 

GM-ul este in PC, iar php-ul este hostat pe website-ul meu

CODE SAMP_SVR.CFG:

echo Executing Server Config...
lanmode 
rcon_password pass
maxplayers 50
port 7777
hostname RolePlay Server SA:MP Edit by. EquiNox
gamemode0 RolePlay 1
filterscripts 
plugins mysql sscanf streamer Whirlpool nativechecker crashdetect
announce 
query 1
weburl sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 

 

  • 0
Posted

#define SQL_HOSTNAME "127.0.0.1"
#define SQL_USERNAME "root"
#define SQL_DATABASE "cum ai tu baza numita"
#define SQL_PASSWORD ""

 

Copy / Pleste la acest server.cfg :D E originalu` (Cred) 

echo Executing Server Config...
lanmode 1
rcon_password tactac
maxplayers 50
port 7777
hostname Hard-RolePlay by EquiNox / @CopyRight 2014 - 2016
gamemode0 roleplay
plugins crashdetect.dll mysql.dll nativechecker.dll sscanf.dll streamer.dll Whirlpool.dll
filterscripts 
announce 1
query 1
chatlogging 0
weburl www.sa-mo.ro
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:

 

j3V8Znq.png

5IGyOAw.png

  • 0
Posted
Chiar acum, EquiNox a spus:

#define SQL_HOSTNAME "127.0.0.1"
#define SQL_USERNAME "root"
#define SQL_DATABASE "cum ai tu baza numita"
#define SQL_PASSWORD ""

 

Copy / Pleste la acest server.cfg :D E originalu` (Cred) 


echo Executing Server Config...
lanmode 1
rcon_password tactac
maxplayers 50
port 7777
hostname Hard-RolePlay by EquiNox / @CopyRight 2014 - 2016
gamemode0 roleplay
plugins crashdetect.dll mysql.dll nativechecker.dll sscanf.dll streamer.dll Whirlpool.dll
filterscripts 
announce 1
query 1
chatlogging 0
weburl www.sa-mo.ro
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:

 

Pai eu am pe domeniul meu baza de date, nu in localhost.. Ca la localhost, la xampp tre sa reinstalez si sa configurez acolo cv

  • 0
Posted
1 minute ago, ImTouchk said:

Pai eu am pe domeniul meu baza de date, nu in localhost.. Ca la localhost, la xampp tre sa reinstalez si sa configurez acolo cv

Pune-l pe localhost , ca pe domeniu s-ar putea sa n-ai Remote MySQL. Instaleaza xampp.

j3V8Znq.png

5IGyOAw.png

  • 0
Posted
Chiar acum, EquiNox a spus:

Pune-l pe localhost , ca pe domeniu s-ar putea sa n-ai Remote MySQL. Instaleaza xampp.

Am Remote SQL, ma poti ajuta sa-l configurez? E de la Telekom host-ul

Guest
This topic is now closed to further replies.
×
×
  • 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.