SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 22/08/2019, 01:49 PM   #1
cncnn35
Little Clucker
 
Join Date: Dec 2016
Posts: 6
Reputation: 0
Default Mysql Error

Hi,

cncnn35 is offline   Reply With Quote
Old 22/08/2019, 02:10 PM   #2
Calisthenics
Gangsta
 
Join Date: May 2018
Posts: 678
Reputation: 110
Default Re: Mysql Error

R40 and above has a nice error log system with exact lines. If you prefer to use older version, at least get version R39-6 which prints the query or enable debug ALL.

Always check if there are rows before retrieving data (excluding COUNT() function as it will always return a row).
Search where mysql_connect is called (if any of the filterscripts use mysql too).
Set a default value for column `HasBlockApp` or give a value in INSERT query.
Calisthenics 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
MySQL] Error (0): Failed to exeute query. You have an error in your SQL syntax; check the manual that corresponds to you lulo356 Scripting Help 3 24/07/2015 05:58 AM
(error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for t SandKing94 Scripting Help 3 22/05/2015 08:53 AM
[MYSQL ERROR ] Access denied for user 'your username here'@'localhost' (using password: YES) (error ID: 1045). SpikY_ Scripting Help 3 07/11/2014 04:09 PM
MySQL Plugin r39-2 Error: Can't connect to local MySQL server through socket Emre__ Scripting Help 10 30/07/2014 08:26 AM
Mysql queriesYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for th audriuxxx Scripting Help 4 11/04/2014 06:42 PM


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


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