Raised This Month: $32 Target: $400
 8% 

MySQL Error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Julius95
Senior Member
Join Date: Jul 2013
Location: Sweden
Old 08-09-2013 , 12:08   MySQL Error
Reply With Quote #1

So I didn't touch ANYTHING, my server has been running fine until now...

what may have happend? any clue?

http://julius95.zapto.org/stats/hlstats.php

Code:
ERROR
Database Error

Server Address: 217.208.248.130:3306
Server Username: root

Error Diagnostic:
Bad query.

Server Error: (1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Last SQL Query:
SELECT COUNT(playerId) FROM hlstats_Players WHERE game IN (
Julius95 is offline
Send a message via ICQ to Julius95 Send a message via AIM to Julius95 Send a message via MSN to Julius95 Send a message via Yahoo to Julius95 Send a message via Skype™ to Julius95
Rads
AlliedModders Donor
Join Date: Feb 2008
Location: Achievement what
Old 08-09-2013 , 12:13   Re: MySQL Error
Reply With Quote #2

do you have a back up of your Sql .?
__________________
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
4UHost.UK - Global Hosting.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rads is offline
Julius95
Senior Member
Join Date: Jul 2013
Location: Sweden
Old 08-09-2013 , 12:18   Re: MySQL Error
Reply With Quote #3

Quote:
Originally Posted by Rads View Post
do you have a back up of your Sql .?
Back up? How do I do that? Anyway how can I solve that error? I'm really really new to MySQL
Julius95 is offline
Send a message via ICQ to Julius95 Send a message via AIM to Julius95 Send a message via MSN to Julius95 Send a message via Yahoo to Julius95 Send a message via Skype™ to Julius95
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 08-09-2013 , 12:32   Re: MySQL Error
Reply With Quote #4

First of all bull shit on you did not touch anything....it does not just break out of no where.

Second do not use root....like ever this is common sence

And last reupload the web files (not the config...) to remove any changes that have been made
__________________
Mavrick4283 is offline
Julius95
Senior Member
Join Date: Jul 2013
Location: Sweden
Old 08-09-2013 , 12:37   Re: MySQL Error
Reply With Quote #5

Quote:
Originally Posted by Mavrick4283 View Post
First of all bull shit on you did not touch anything....it does not just break out of no where.

Second do not use root....like ever this is common sence

And last reupload the web files (not the config...) to remove any changes that have been made
Why can't I use root?

And how do I change username?

Anyway in this case it just came by itself
Julius95 is offline
Send a message via ICQ to Julius95 Send a message via AIM to Julius95 Send a message via MSN to Julius95 Send a message via Yahoo to Julius95 Send a message via Skype™ to Julius95
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 08-09-2013 , 12:40   Re: MySQL Error
Reply With Quote #6

Quote:
Originally Posted by Julius95 View Post
Why can't I use root?

And how do I change username?

Anyway in this case it just came by itself
I said you should not use root, and with out a long explanation it is a security thing.

http://bit.ly/1exOi43

No it did not, you had to of changed something....you might of thought it had nothing to do with your error but you changed something on that install.
__________________
Mavrick4283 is offline
Julius95
Senior Member
Join Date: Jul 2013
Location: Sweden
Old 08-09-2013 , 13:10   Re: MySQL Error
Reply With Quote #7

Quote:
Originally Posted by Mavrick4283 View Post
I said you should not use root, and with out a long explanation it is a security thing.

http://bit.ly/1exOi43

No it did not, you had to of changed something....you might of thought it had nothing to do with your error but you changed something on that install.
I did what you said but no difference :/

still the same error.
But do you mean I should delete the root users completely?
Julius95 is offline
Send a message via ICQ to Julius95 Send a message via AIM to Julius95 Send a message via MSN to Julius95 Send a message via Yahoo to Julius95 Send a message via Skype™ to Julius95
Julius95
Senior Member
Join Date: Jul 2013
Location: Sweden
Old 08-09-2013 , 13:26   Re: MySQL Error
Reply With Quote #8

Edit it works
Julius95 is offline
Send a message via ICQ to Julius95 Send a message via AIM to Julius95 Send a message via MSN to Julius95 Send a message via Yahoo to Julius95 Send a message via Skype™ to Julius95
Walliski
Senior Member
Join Date: May 2013
Old 08-09-2013 , 14:54   Re: MySQL Error
Reply With Quote #9

You should not delete the root users, since you most often need them for some stuff. But you should make a new user that is name "hlstats" or something that only has rights to the database that it needs to.
Walliski is offline
Julius95
Senior Member
Join Date: Jul 2013
Location: Sweden
Old 08-09-2013 , 15:41   Re: MySQL Error
Reply With Quote #10

NOO It can't be true... what I did to solve the error was to create a new user and database and upload all the files again ... but then again the error will be there... heeelp

Last edited by Julius95; 08-09-2013 at 16:41.
Julius95 is offline
Send a message via ICQ to Julius95 Send a message via AIM to Julius95 Send a message via MSN to Julius95 Send a message via Yahoo to Julius95 Send a message via Skype™ to Julius95
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode