SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 09/05/2015, 12:51 PM   #391
Akmet
Little Clucker
 
Join Date: Feb 2009
Posts: 45
Reputation: 0
Default AW: MySQL & PostgreSQL Plugin

fixed by myself

Last edited by Akmet; 09/05/2015 at 04:44 PM.
Akmet is offline   Reply With Quote
Old 15/05/2015, 02:55 AM   #392
Blacklite
Huge Clucker
 
Join Date: Mar 2009
Location: am kiwi
Posts: 419
Reputation: 45
Default Re: MySQL & PostgreSQL Plugin

These errors:

Code:
include/boost/atomic/atomic.hpp:202:16: error: 'uintptr_t' was not declared in this scope
Are related to this issue with boost:

https://svn.boost.org/trac/boost/ticket/8731

I applied that change to the boost lib in the plugin source and was able to compile successfully. If you can't be bothered, here is the full fixed version of include/boost/cstdint.hpp:

http://pastebin.com/h6AfwuUq
__________________

Blacklite is offline   Reply With Quote
Old 03/08/2015, 10:21 AM   #393
Patrick
Guest
 
Posts: n/a
Default Re: MySQL & PostgreSQL Plugin

Is there any reasons why it doesn't connect? I am just continuing a script that uses this plugin and I have never used this script + there's no more documentation of this script about the errors and other stuff.

Code:
[10:48:37][info] Natives::sql_connect: Connecting to database (type = 1) samp5391:***@5.39.74.166:0/samp5391_autoarena...
[10:48:38][warning] Natives::sql_connect: Connection (conn->id = 1) failed! (error = 2003, Can't connect to MySQL server on '5.39.74.166' (10061))
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:40][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:40][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:40][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:40][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:40][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:40][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
  Reply With Quote
Old 03/08/2015, 05:03 PM   #394
BlackBank
High-roller
 
BlackBank's Avatar
 
Join Date: Dec 2010
Location: The Netherlands
Posts: 1,157
Reputation: 432
Default Re: MySQL & PostgreSQL Plugin

Quote:
Originally Posted by Patrick View Post
Is there any reasons why it doesn't connect? I am just continuing a script that uses this plugin and I have never used this script + there's no more documentation of this script about the errors and other stuff.

Code:
[10:48:37][info] Natives::sql_connect: Connecting to database (type = 1) samp5391:***@5.39.74.166:0/samp5391_autoarena...
[10:48:38][warning] Natives::sql_connect: Connection (conn->id = 1) failed! (error = 2003, Can't connect to MySQL server on '5.39.74.166' (10061))
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:38][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:40][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:40][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:40][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:40][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:40][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
[10:48:40][warning] Natives::sql_query: Invalid connection! (conn->id = 0)
The error kinda explains it: error = 2003, Can't connect to MySQL server on '5.39.74.166' (10061)

Are you sure you have access to that IP from the outside(remote)?
BlackBank is offline   Reply With Quote
Old 20/02/2017, 08:45 PM   #395
Djole1337
Gangsta
 
Join Date: Apr 2012
Posts: 905
Reputation: 303
Default Re: MySQL & PostgreSQL Plugin

Since github project page is down I'm posting &bumping this for people out there who are still intreseted in using/testing/playing with this plugin - https://github.com/udan11/samp-plugin-sql/releases

(Even though this plugin hasn't been updated in a while I still find it quite stable and bloat-free.)
Djole1337 is offline   Reply With Quote
Old 16/07/2017, 11:14 PM   #396
Scriptery
Big Clucker
 
Join Date: Aug 2015
Location: Romania
Posts: 68
Reputation: 12
Default Re: MySQL & PostgreSQL Plugin

Please update this dude.. fmm tie
__________________
My work:

ANTI AIMBOT
Scriptery is offline   Reply With Quote
Old 26/08/2017, 06:38 AM   #397
Barnwell
Gangsta
 
Barnwell's Avatar
 
Join Date: May 2014
Location: England
Posts: 535
Reputation: 23
Default Re: MySQL & PostgreSQL Plugin

Not bad
__________________
Left SA-MP ForEver
Barnwell 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
Someone should make a PostgreSQL plugin Gamer_Z Plugin Development 19 06/02/2013 11:24 PM
PostgreSQL Steve M. Scripting Help 4 10/12/2011 11:36 AM
MySQL Plugin R5 plugin problem dud Scripting Help 12 05/12/2011 06:28 PM
[help][plugin] Can't load mysql plugin mariomako Help Archive 8 16/07/2011 02:37 PM
mysql plugin. loading plugin failed ikkentim Help Archive 2 10/02/2011 02:32 PM


All times are GMT. The time now is 03:56 AM.


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