[Plugin] MySQL & PostgreSQL Plugin

This is outdated. Why wouldn't you use something like BlueG's MySQL plug-in thats updated regularly and stable?
Reply

Код:
[11:34:08]    Error: Function not registered: 'sql_query'
[11:34:08]    Error: Function not registered: 'sql_num_rows'
[11:34:08]    Error: Function not registered: 'sql_get_field_assoc'
[11:34:08]    Error: Function not registered: 'sql_free_result'
[11:34:08]    Error: Function not registered: 'sql_disconnect'
[11:34:08]    Error: Function not registered: 'sql_connect'
[11:34:08]    Error: Function not registered: 'sql_next_row'
[11:34:08] [debug] Run time error 19: "File or function is not found"
[11:34:08] [debug]  sql_query
[11:34:08] [debug]  sql_num_rows
[11:34:08] [debug]  sql_get_field_assoc
[11:34:08] [debug]  sql_free_result
[11:34:08] [debug]  sql_disconnect
[11:34:08] [debug]  sql_connect
[11:34:08] [debug]  sql_next_row
[11:34:08] [debug] Run time error 19: "File or function is not found"
[11:34:08] [debug]  sql_query
[11:34:08] [debug]  sql_num_rows
[11:34:08] [debug]  sql_get_field_assoc
[11:34:08] [debug]  sql_free_result
[11:34:08] [debug]  sql_disconnect
[11:34:08] [debug]  sql_connect
[11:34:08] [debug]  sql_next_row
[11:34:08] Script[gamemodes/DimmiRP.amx]: Run time error 19: "File or function is not found"
[11:34:08] Number of vehicle models: 0
Any solution?
Reply

Quote:
Originally Posted by Abagail
Посмотреть сообщение
This is outdated. Why wouldn't you use something like BlueG's MySQL plug-in thats updated regularly and stable?
Just tell me how it's "outdated" please?

Ever tried to look at his github -> issues? My guess is not, if you have then you'd know that he responds to every issue created on his plugins, and patches them quickly.

He's no longer visiting sa-mp forums due to 'fight' he had with BlueG afaik, that's not the reason to say "HEY HIS PLUGINS ARE OUTDATED AND THEY'RE NO LONGER IN DEVELOPMENT".


Quote:
Originally Posted by TheCartman
Посмотреть сообщение
Код:
[11:34:08]    Error: Function not registered: 'sql_query'
[11:34:08]    Error: Function not registered: 'sql_num_rows'
[11:34:08]    Error: Function not registered: 'sql_get_field_assoc'
[11:34:08]    Error: Function not registered: 'sql_free_result'
[11:34:08]    Error: Function not registered: 'sql_disconnect'
[11:34:08]    Error: Function not registered: 'sql_connect'
[11:34:08]    Error: Function not registered: 'sql_next_row'
[11:34:08] [debug] Run time error 19: "File or function is not found"
[11:34:08] [debug]  sql_query
[11:34:08] [debug]  sql_num_rows
[11:34:08] [debug]  sql_get_field_assoc
[11:34:08] [debug]  sql_free_result
[11:34:08] [debug]  sql_disconnect
[11:34:08] [debug]  sql_connect
[11:34:08] [debug]  sql_next_row
[11:34:08] [debug] Run time error 19: "File or function is not found"
[11:34:08] [debug]  sql_query
[11:34:08] [debug]  sql_num_rows
[11:34:08] [debug]  sql_get_field_assoc
[11:34:08] [debug]  sql_free_result
[11:34:08] [debug]  sql_disconnect
[11:34:08] [debug]  sql_connect
[11:34:08] [debug]  sql_next_row
[11:34:08] Script[gamemodes/DimmiRP.amx]: Run time error 19: "File or function is not found"
[11:34:08] Number of vehicle models: 0
Any solution?
Something is wrong with your include, download the latest include and re-compile the script.
Reply

Quote:
Originally Posted by Djole1337
Посмотреть сообщение
Something is wrong with your include, download the latest include and re-compile the script.
Can you give me the link? I download mine from Dan..'s GitHub and it dosen't work.
Reply

Quote:
Originally Posted by TheCartman
Посмотреть сообщение
Can you give me the link? I download mine from Dan..'s GitHub and it dosen't work.
This is the latest one - https://github.com/udan11/samp-plugi...master/sql.inc

make sure you recompile your script!
Reply

Quote:
Originally Posted by Djole1337
Посмотреть сообщение
This is the latest one - https://github.com/udan11/samp-plugi...master/sql.inc

make sure you recompile your script!
Same problem... Need any plugin or something? I add libmysql.dll in my server's files (not in plugins folder) etc..
Reply

MongoDB support, please!
Reply

Getting compile errors:

http://pastebin.com/ppnSza1t

Any ideas?
Reply

fixed by myself
Reply

These errors:

Код:
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
Reply

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.

pawn Код:
[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

Quote:
Originally Posted by Patrick
Посмотреть сообщение
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.

pawn Код:
[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)?
Reply

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.)
Reply

Please update this dude.. fmm tie
Reply

Not bad
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)