Can't connect to MySQL database in Linux server
#1

i used MySQL_static.so and it worked fine but can't connect to database even database in localhost with correct credentials

[07:24:54] [MySQL] (Main Pipelines) Connecting to localhost...
[07:24:54] [MySQL] (MainPipeline) Fatal Error! Could not connect to MySQL: Host localhost - DB: ***** - User: *****
[07:24:54] [MySQL] Note: Make sure that you have provided the correct connection credentials.
[07:24:54] [MySQL] Error number: 2002
Reply
#2

Listen First import your .sql file on PHPMYADMIN(on VPS MYSQL)

Select a database > Import > Select .sql > Import.

Then goto your mysql > copy Username and pass.
Change the Script mysql Host to : 127.0.0.1.
Username/DB:
PASS:

Recompile your script and Start the server again.

Please +rep if you find this useful
Reply
#3

I followed all things but still it cant connect same error
+rep for toturial
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)