SA-MP Forums Archive
plesae help with localhost! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: plesae help with localhost! (/showthread.php?tid=518294)



plesae help with localhost! - Barnwell - 09.06.2014

Hello All i want help with MySQL localhost i set localhost in my server im create server and send MySQL information in my email and give me MySQL (host) - localhost
MySQL username: myname here
MySQL password: mypassword here
and im set the information in my server
example:#if chc-debug
#define debug 1
#define dbg-callbacks 0
#define MYSQL_HOST "localhost"
#define MYSQL_USER "mypass"
#define MYSQL_DATABASE "mydatabase"
#define MYSQL_PASSWORD "mypass"
#define ip_remote_check 0

ok and im set this give me

Код:
[11:42:47]  ** MySQL Debugging enabled (06/09/14)
[11:42:47]  
[11:42:47] >> enable_mutex()
[11:42:47] >> The mutex method has been disabled
[11:42:47] >> mysql_connect(localhost, myname, mydatebase, ******) on port 3306
[11:42:47] CMySQLHandler::CMySQLHandler() - constructor called.
[11:42:47] CMySQLHandler::CMySQLHandler() - Connecting to "localhost" | DB: "mydatabase" | Username: "myname"
[11:42:48] CMySQLHandler::Connect() - Can't connect to MySQL server on 'localhost' (10061) (Error ID: 2003)
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:42:48] >> mysql_query_callback( Connection handle: 1 )
[11:43:09] >> mysql_query_callback( Connection handle: 1 )
[11:43:09] >> mysql_close( Connection handle: 1 )



Re: plesae help with localhost! - Barnwell - 10.06.2014

please help with this!


Re: plesae help with localhost! - Jankingston - 11.06.2014

LOL ... download wamp server.

set host to - localhost
set user to - user
set database to - yourdbname
set passs to nothing ..


Re: plesae help with localhost! - NewbieHelper - 11.06.2014

Download XXAMP or Wamp server after making that you need to restart your computer then after opening it you need to go to your PHPMYADMIN ((localhost/phpmyadmin))

if you server got a SQL.sql((any thing which got .sql)) just upload ((Import)) to your PHPMYADMIN but remember to select database

After making the previous step

Go and edit your script

#define debug 1
#define dbg-callbacks 1
#define MYSQL_HOST "localhost" // leave it as localhost
#define MYSQL_USER "myusername" // Your PHPMYADMIN username
#define MYSQL_DATABASE "mydatabase" // phpmyadmin database name
#define MYSQL_PASSWORD "mypass" // phpmyadmin password
#define ip_remote_check 1

Hope that i helped you.