Jump to content
  • 0

pomoc MYSQL Registrace


Deejva

Dotaz

Ahoj, chtěl jsem si udělat registraci přes mysql, takto jsem si zadal údaje

#define mysql_host "wm97.wedos.net"
#define mysql_user "*********"
#define mysql_password "*********"
#define mysql_database "*************"

ale když dám 

mysql_connect(mysql_host,mysql_user,mysql_database ,mysql_password);

V OnGamemodeInit, tak to nefunguje, když za to dám příkaz printf("5"); pro zkoušku, tak se ta 5ka ani nevypíše

Nevíte, v čem může být chyba? 

Díky

 

Používám 

#include <a_samp>
#include <a_mysql>
#include <sscanf2>

a pluginy sscanf i mysql mám

Edited by Deejva
Link to comment
Share on other sites

6 odpovědí na tuto otázku

Recommended Posts

  • 0
Už se to začalo připojovat, ale řiká to, že se to nemůžu připojit.
[16:27:03]  


[16:27:03] ---------------------------


[16:27:03] MySQL Debugging activated (11/29/15)


[16:27:03] ---------------------------


[16:27:03]  


[16:27:03] >> mysql_connect( )


[16:27:03] CMySQLHandler::CMySQLHandler() - constructor called.


[16:27:03] CMySQLHandler::CMySQLHandler() - Connecting to "wm97.wedos.net" | DB: "*****" | Username: "*****" ...


[16:27:24] CMySQLHandler::Connect() - Can't connect to MySQL server on 'wm97.wedos.net' (10060) (Error ID: 2003)


[16:27:24] >> mysql_query( Connection handle: 1 )


[16:27:24] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)


[16:27:24] >> mysql_query( Connection handle: 1 )


[16:27:24] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)


[16:27:24]  


[16:27:24] ---------------------------


[16:27:24] MySQL Debugging activated (11/29/15)


[16:27:24] ---------------------------


[16:27:24]  


[16:27:24] >> mysql_ping( Connection handle: 1 )


[16:27:24] CMySQLHandler::Ping() - You cannot call this function now. (Reason: Dead Connection)
 
Pokud se zkusím registrovat, server spadne.

 

Link to comment
Share on other sites

  • 0
  • Globální moderátor

No co já z toho výpisu vidím, je, že se nemůžeš připojit vůbec
 
[16:27:24] CMySQLHandler::Connect() - Can't connect to MySQL server on 'wm97.wedos.net' (10060) (Error ID: 2003)

Jestli máš možnost, tak se zkus připojit na localhost MySQL (pomocí EasyPHP / wamp... cokoliv). Jestli tohle půjde, tak pak jedině zkusit zkontaktovat wedos, jestli mají vůbec povolené externí připojení na MySQL

Edited by HighPrint
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...