SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 25/01/2013, 09:25 AM   #1
Rohan_Ubhare
Big Clucker
 
Join Date: Oct 2011
Location: BlackHole
Posts: 56
Reputation: 18
Question [MySql]Connection Problem

I use MySql for my server and when I run the script on my PC it's says MySql cannot connect. I also use
pawn Code:
if (mysql_ping() != -1)
I use MySql which is from a hosting site and I use Volt Host for my server so is it tht it will be fixed when I run my server on volt?
__________________
Rohan_Ubhare is offline   Reply With Quote
Old 25/01/2013, 09:30 AM   #2
RajatPawar
High-roller
 
RajatPawar's Avatar
 
Join Date: Aug 2011
Location: ヽ༼ຈل͜ຈ༽ノ
Posts: 2,177
Reputation: 320
Default Re: [MySql]Connection Problem

pawn Code:
if(mysql_ping()>1)
print("Connection failed.");
else print("Connection to database successful!");
RajatPawar is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Big problem with MySQL connection. Ricop522 Scripting Help 3 21/08/2012 06:30 PM
MYSQL problem - no connection RaydeX Scripting Help 2 23/10/2011 07:16 PM
MYSQL connection problem vection Help Archive 1 12/10/2010 05:50 PM
Problem with MySQL connection WH4YER0 Help Archive 8 21/08/2010 05:29 PM
MYSQL connection problem - please take a look at that Ed2ka49 Help Archive 4 04/08/2010 09:09 PM


All times are GMT. The time now is 01:16 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.