[Plugin] [REL] MySQL Plugin (Now on github!)

Hi i use this variabile: new SQL; to define SQL connection with database but i get errors on SQL SELECT commands:
[ERROR] "mysql_query" - invalid connection handle (ID = 1)
[18:02:02] [ERROR] "mysql_format" - invalid connection handle (ID = 1)
[18:02:02] [ERROR] "mysql_tquery" - invalid connection handle (ID = 1)
Reply

Quote:
Originally Posted by Morpheine
Посмотреть сообщение
Hi i use this variabile: new SQL; to define SQL connection with database but i get errors on SQL SELECT commands:
[ERROR] "mysql_query" - invalid connection handle (ID = 1)
[18:02:02] [ERROR] "mysql_format" - invalid connection handle (ID = 1)
[18:02:02] [ERROR] "mysql_tquery" - invalid connection handle (ID = 1)
Which plugin version are you using?
Reply

v39-4 compiled in debian 7 please?
Reply

Quote:
Originally Posted by LatinZ
Посмотреть сообщение
v39-4 compiled in debian 7 please?
Here you go: mysql.so . .

Please reply if it works or if it doesn't work. I haven't had the time to test it correctly.
Reply

Quote:
Originally Posted by Jeroen52
Посмотреть сообщение
Which plugin version are you using?
R33.
Reply

Useful!
Reply

Quote:
Originally Posted by Jeroen52
Посмотреть сообщение
Here you go: mysql.so . .

Please reply if it works or if it doesn't work. I haven't had the time to test it correctly.
Is mysql.so or mysql_static.so ?
Reply

Quote:
Originally Posted by LatinZ
Посмотреть сообщение
Is mysql.so or mysql_static.so ?
It should be a working static shared object, it has only been renamed from mysql_static.so to mysql.so.
Reply

Hello, did anybody encounter this bug - https://github.com/pBlueG/SA-MP-MySQL/issues/90 ?
Reply

Hello, can you look at this - https://github.com/pBlueG/SA-MP-MySQL/issues/89
Reply

Can somebody build me windows plugin of this branch - https://github.com/pBlueG/SA-MP-MySQL/tree/issue-54 ?
Reply

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Can somebody build me windows plugin of this branch - https://github.com/pBlueG/SA-MP-MySQL/tree/issue-54 ?
No need for that

R39-5 has been released.
All changes and downloads can be found here: https://github.com/pBlueG/SA-MP-MySQ...ases/tag/R39-5

Special thanks to Kar for testing.
Reply

Quote:
Originally Posted by maddinat0r
Посмотреть сообщение
No need for that

R39-5 has been released.
All changes and downloads can be found here: https://github.com/pBlueG/SA-MP-MySQ...ases/tag/R39-5

Special thanks to Kar for testing.
Hello, can you look at this - https://github.com/pBlueG/SA-MP-MySQL/issues/89
Reply

Quote:
Originally Posted by maddinat0r
Посмотреть сообщение
No need for that

R39-5 has been released.
All changes and downloads can be found here: https://github.com/pBlueG/SA-MP-MySQ...ases/tag/R39-5

Special thanks to Kar for testing.
Currently building the plugin statically for CentOS 6.
Reply

Here is the plugin statically compiled for CentOS 6: https://mirror.jeroendeneef.com/samp...tatic/mysql.so . .
Reply

How is it fair use?

Код HTML:
					format(var, sizeof(var), "UPDATE `players` SET `Registered` = '%d' WHERE `id` = '%d'", PlayerInfo[playerid][pReg], PlayerInfo[playerid][pSQLID]);
					mysql_query(var);
Код HTML:
					format(var, sizeof(var), "UPDATE `players` SET `Registered` = '%d' WHERE id= %d", PlayerInfo[playerid][pReg], PlayerInfo[playerid][pSQLID]);
					mysql_query(var);
Код HTML:
					format(var, sizeof(var), "UPDATE `players` SET `Registered` = '%d' WHERE `id`= %d", PlayerInfo[playerid][pReg], PlayerInfo[playerid][pSQLID]);
					mysql_query(var);
Please help me!
Which of the above are good?

Sorry for myy bad english
Reply

[code]UPDATE players SET Registered = %d WHERE id = %d"[code]

Avoid `, MySQL will work without `. Also ' use when you want put string into query(so MySQL will Know what is string you want to put, and what is query)

Код:
UPDATE players SET Name = 'Carl Johnson' WHERE ID = 1
Reply

Quote:
Originally Posted by LatinZ
View Post
debian 7, please?
Static or dynamically linked?
Reply

static
Reply

Quote:
Originally Posted by vannesenn
Посмотреть сообщение
[code]UPDATE players SET Registered = %d WHERE id = %d"[code]

Avoid `, MySQL will work without `. Also ' use when you want put string into query(so MySQL will Know what is string you want to put, and what is query)

Код:
UPDATE players SET Name = 'Carl Johnson' WHERE ID = 1
Get this version is correct??
Reply


Forum Jump:


Users browsing this thread: 13 Guest(s)