AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   SQLx Connect Problem (https://forums.alliedmods.net/showthread.php?t=226443)

risontek22 09-18-2013 03:11

SQLx Connect Problem
 
Hello,
I have a database, in PHP i can normaly connect ... (mysql_connect()...) but in AMXX it is not working for me. I tried this
PHP Code:

log_amx("%s",g_MySQLError

And here is the problem:
PHP Code:

09/18/2013 09:02:44: [plugin.amxxAccess denied for user 'db233_2
'
@'adsl-dyn216.78-98-46.t-com.sk' (using passwordYES

EDIT: PHP Server is running on PC where is the CS server too.

jimaway 09-18-2013 09:25

Re: SQLx Connect Problem
 
try connecting to localhost then (127.0.0.1) instead of 'adsl-dyn216.78-98-46.t-com.sk'

colossus 09-23-2013 11:02

Re: SQLx Connect Problem
 
Or.... access by user root ;)

YamiKaitou 09-23-2013 19:31

Re: SQLx Connect Problem
 
Quote:

Originally Posted by jimaway (Post 2036856)
try connecting to localhost then (127.0.0.1) instead of 'adsl-dyn216.78-98-46.t-com.sk'

That is not the IP he is connecting to, that is his IP. Though, connecting to localhost might solve the issue

Quote:

Originally Posted by colossus (Post 2039603)
Or.... access by user root ;)

The same error will occur if he has his MySQL Server configured correctly

Quote:

Originally Posted by risontek22 (Post 2036749)
Hello,
I have a database, in PHP i can normaly connect ... (mysql_connect()...) but in AMXX it is not working for me. I tried this
PHP Code:

log_amx("%s",g_MySQLError

And here is the problem:
PHP Code:

09/18/2013 09:02:44: [plugin.amxxAccess denied for user 'db233_2
'
@'adsl-dyn216.78-98-46.t-com.sk' (using passwordYES

EDIT: PHP Server is running on PC where is the CS server too.

How are you connecting to the MySQL Server?

baneado 09-25-2013 09:37

Re: SQLx Connect Problem
 
Did you put the correct password ?


All times are GMT -4. The time now is 19:04.

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