Jump to content
  • 0

Problema server - could not connect to database


Rusar25

Question

Salut,Am o problema la server imi tot arata could not connect to database ,am completat tot in gamemode in pawno ,am facut tot necesar si imi tot arata asta,m-am uitat in server log si nu inteleg problema..Ma puteti ajuta,va rog (Mentionez ca vreau sa fac serverul pe Ultra-h si gamemode-ul este Bottles dau si link daca e nevoie la el ,doar sa ma ajutati,ar fi extradionar)(Am incercat si fara nativechecker si tot nu functioneaza serverul,intr-un timp imi arata unknown la gamemode ,dar am rezolvat problema ,dar acum e asta cu data de baze.. Si incerc de 2 zile si tot nu ii dau de cap)

Asta imi scrie in server log: 

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[16:51:15] password = ""  (string)
[16:51:15] 
[16:51:15] Server Plugins
[16:51:15] --------------
[16:51:15]  Loading plugin: mysql_static.so
[16:51:15]  >> plugin.mysql: R39-5 successfully loaded.
[16:51:15]   Loaded.
[16:51:15]  Loading plugin: streamer.so
[16:51:15] 

*** Streamer Plugin v2.8.2 by Incognito loaded ***

[16:51:15]   Loaded.
[16:51:15]  Loading plugin: Whirlpool.so
[16:51:15]  
[16:51:15]  ==================
[16:51:15]  
[16:51:15]   Whirlpool loaded
[16:51:15]  
[16:51:15]  ==================
[16:51:15]  
[16:51:15]   Loaded.
[16:51:15]  Loading plugin: sscanf.so
[16:51:15] 

[16:51:15]  ===============================

[16:51:15]       sscanf plugin loaded.     

[16:51:15]          Version:  2.8.1        

[16:51:15]    (c) 2012 Alex "Y_Less" Cole  

[16:51:15]  ===============================

[16:51:15]   Loaded.
[16:51:15]  Loading plugin: nativechecker.so
[16:51:15]   Failed (plugins/nativechecker.so: cannot open shared object file: No such file or directory)
[16:51:15]  Loaded 4 plugins.

[16:51:15] 
[16:51:15] Filterscripts
[16:51:15] ---------------
[16:51:15]   Loading filterscript 'UltraHost.amx'...
[16:51:15]   Loaded 1 filterscripts.

[16:51:47] Setting server password to: "1s"
[16:51:47] 
----------------------------------
[16:51:47] Bottles RPG Server 0.3.7
[16:51:47] ----------------------------------

[16:51:47] Number of vehicle models: 99
 

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

 

8 minutes ago, danuts said:

Te rog sa postezi mysql_log. Eroarea de la plugin-ul nativechecker.so o primesti pentru ca nu ai plugin-ul pus in folderul `plugins`.

[16:15:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '89.33.242.12' (110)
[16:51:47] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '89.33.242.12' (110)

Link to comment
Share on other sites

  • 0
Just now, Rusar25 said:

 

[16:15:42] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '89.33.242.12' (110)
[16:51:47] [ERROR] CMySQLConnection::Connect - (error #2003) Can't connect to MySQL server on '89.33.242.12' (110)

Eroarea este clara, nu s-a putut realiza conexiunea catre server-ul MySQL. Poti arata linia de cod unde faci conexiunea?

Link to comment
Share on other sites

  • 0
5 minutes ago, danuts said:

Eroarea este clara, nu s-a putut realiza conexiunea catre server-ul MySQL. Poti arata linia de cod unde faci conexiunea?

Te referi in gamemode ,nu ?Si ti-o arat daca la asta te referi 

MySQLCon = mysql_connect("127.0.0.1", "server_768", "server_768_bogdan", "1arfug5cjb");

Link to comment
Share on other sites

  • 0
3 minutes ago, Rusar25 said:

Te referi in gamemode ,nu ?Si ti-o arat daca la asta te referi 

MySQLCon = mysql_connect("127.0.0.1", "server_768", "server_768_bogdan", "1arfug5cjb");

   Mai e si asta 

MySQLCon = mysql_connect("127.0.0.1", "server_768", "server_768_bogdan", "1arfug5cjb");
    if(mysql_errno(MySQLCon) != 0)
    {
        new string[64];
        format(string, sizeof(string), "password 1s"), SendRconCommand(string);
        format(string, sizeof(string), "hostname Nadia RPG.Ro - Could not connect to database!"), SendRconCommand(string);

Link to comment
Share on other sites

  • 0

Încearcă să modifici 127.0.0.1 cu localhost, câteodată mai există probleme de genul. În caz că nici asa nu merge încearcă IP-ul ăsta 89.33.242.12.
Si rezolvă-ti problema cu nativechecker, Failed (plugins/nativechecker.so: cannot open shared object file: No such file or directory).  - Urcă plugin-ul pe host sau scoate-l din server_cfg.

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
Answer this question...

×   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.