Problem with mysql
#1

Hi, my server was working perfectly fine yesterday has no error's in the script nethier warnings. Ive had restore my pc to its default setting due to some issues. Ive set everything back up the mysql database plugins etc but when i enter the server it says 'Server closed connection'. When i check the mysql debug i can see its not even ettempting to connect to the database can someone help?


mysql debug:
Код:
[15:33:31] ---------------------------

[15:33:31] MySQL Debugging activated (11/02/12)

[15:33:31] ---------------------------

[15:33:31]
Reply
#2

Did you have mysql host on your pc (such us XAMPP) ?
Reply
#3

Yes, as ive said the server was working fine before i restored it.

I have both apache and mysql turned on
Reply
#4

use mysql_ping()
Reply
#5

Код:
[22:03:04] >> mysql_ping( Connection handle: 1 )

[22:03:04] CMySQLHandler::Ping() - Connection is still alive.
This is the only thing thats in my mysql log there should be something like "connected to localhost" but it wont show 0.o
Reply
#6

Make sure no permissions has been changed.
Reply
#7

Are you SURE your credentials match your database?
Reply
#8

I'm sure. The database was working perfectly before i restored my pc. When i got my gm back from a backup i set up the database and imported a table sql dumb that i made before the restore
Reply
#9

Bump
Reply
#10

Quote:
Originally Posted by thefatshizms
Посмотреть сообщение
when i enter the server it says 'Server closed connection'
debug OnPlayerConnect in every script (including filterscripts if you have any, you might also decide to turn them off for debugging)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)