Posts: 775
Threads: 78
Joined: Dec 2014
Are you using XAMPP?
If so, try leaving the password empty.
Also, Show us the line of the config/connect. You can take out the pass.
Posts: 1,547
Threads: 122
Joined: Jun 2014
Reputation:
0
Yes, I'm using XAMPP, Before when i was leaving the pass empty, it had the same issue, So i tried to gave pass and thought this would help.
Here is my mysql_connect.
mysql_connect("localhost", "root", "password", "database", connection, 1);
Posts: 775
Threads: 78
Joined: Dec 2014
Quote:
Originally Posted by [ND]xXZeusXx.
Yes, I'm using XAMPP, Before when i was leaving the pass empty, it had the same issue, So i tried to gave pass and thought this would help.
Here is my mysql_connect.
mysql_connect("localhost", "root", "password", "database", connection, 1);
|
PHP код:
mysql_connect("localhost", "root", "database", "password");
or if connection is a int for the handle:
PHP код:
connection = mysql_connect("localhost", "root", "database", "password");
Posts: 1,547
Threads: 122
Joined: Jun 2014
Reputation:
0
No, same error :/
But but, This might be of any help, I'm NOT using the default apache port 80, but 8080. (cause skype).
Posts: 775
Threads: 78
Joined: Dec 2014
Quote:
Originally Posted by [ND]xXZeusXx.
No, same error :/
But but, This might be of any help, I'm NOT using the default apache port 80, but 8080. (cause skype).
|
That's not causing it, apache are webserver, nothing to do with MySQL.
Are you sure that you got the correct password and database?
And, where are you calling this?
Posts: 1,547
Threads: 122
Joined: Jun 2014
Reputation:
0
Yes, absolutely correct password and database, I'm calling it under OnGameModeInit?
Posts: 64
Threads: 3
Joined: Jun 2016
Reputation:
0
if you are running the server under linux run the samp server with command "sudo"...
if not try running the server as administrator.
Posts: 775
Threads: 78
Joined: Dec 2014