[MYSQL]Help Please
#1

Quote:

#define mysql_host "149.202.249.83"
#define mysql_user "sulee"
#define mysql_password "****"
#define mysql_database "sulee"



Quote:

[01:03:46]

[01:03:46] ---------------------------

[01:03:46] MySQL Debugging activated (11/13/15)

[01:03:46] ---------------------------

[01:03:46]

[01:03:46] >> mysql_connect( )

[01:03:46] CMySQLHandler::CMySQLHandler() - constructor called.

[01:03:46] CMySQLHandler::CMySQLHandler() - Connecting to "149.202.249.83" | DB: "sulee" | Username: "sulee" ...

[01:03:47] CMySQLHandler::Connect() - Can't connect to MySQL server on '149.202.249.83' (10061) (Error ID: 2003)

[01:03:47] >> mysql_query( Connection handle: 1 )

[01:03:48] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)

[01:03:48] >> mysql_store_result( Connection handle: 1 )

And keep contiune this thing , please help
Reply
#2

bump?
please somebody?
Reply
#3

#define mysql_host "149.202.249.83"
#define mysql_user "sulee"
#define mysql_password "****"
#define mysql_database "sulee"

You sure mysql user and mysql database name same try to check it maybe different.
Also if it is your host or vps ip you need to upload gm in host or vps , because if you trying to run
gm in your pc it will not work because it is host ip.
Reply
#4

90% of the time it is caused by either:
  • MySQL server not actually running;
  • Wrong port;
  • Firewall configuration is blocking access.
Also, unless you 100% know what you are doing, use a local mysql server in a production environment. For development it doesn`t matter as much but expect there to be delays.
Reply
#5

Quote:
Originally Posted by Macluawn
Посмотреть сообщение
90% of the time it is caused by either:
  • MySQL server not actually running;
  • Wrong port;
  • Firewall configuration is blocking access.
Also, unless you 100% know what you are doing, use a local mysql server in a production environment. For development it doesn`t matter as much but expect there to be delays.
MYSQL its running but,im testing it from my pc ,that can cause my server crash(fall) ?
Reply
#6

if you are testing on pc you need to use

#define mysql_host "127.0.0.1"
#define mysql_user "root"
#define mysql_password "yourdatabasepass"
#define mysql_database "yourdatabsename"
Reply
#7

Is your mysql server run locally?
If not, check your remote servers firewall configuration. By default I believe non-local connections are dropped.
Reply
#8

Quote:
Originally Posted by Macluawn
Посмотреть сообщение
Is your mysql server run locally?
If not, check your remote servers firewall configuration. In most cases, non-local connections are dropped.
Thanks for helping @Macluawn
MYSQL was dont ^_^

+rep
Reply
#9

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)