WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL SQL क्वेरी त्रुटि WPDB में कक्षा
WordPress plug-ins users or external scripts developers may encounter problems on when trying to perform query or manipulation on MySQL database by using $wpdb class, a class of functions for all database manipulations based on the ezSQL. WordPress प्लग इन उपयोगकर्ताओं या बाह्य लिपियों डेवलपर्स जब MySQL डाटाबेस पर क्वेरी या हेरफेर करने, सभी डेटाबेस जोड़तोड़ के ezSQL पर आधारित के लिए कार्य का एक वर्ग वर्ग $ wpdb का उपयोग करके कोशिश कर रहा पर समस्याओं का सामना कर सकते हैं. $wpdb Wordpress class provides easy way to access to database tables without the need to manually code the database connection syntax in PHP again. $ wpdb Wordpress वर्ग डेटाबेस तालिकाओं के लिए स्वयं की जरूरत है फिर PHP में डेटाबेस कनेक्शन वाक्यविन्यास कोड के बिना उपयोग करने के लिए आसान तरीका प्रदान करता है. $wpdb provides several functions to access, retrieve, select, delete, update or manipulate the data in the database such as query, get_var, get_row, get_col, get_results, escape, show_errors, hide_errors, get_col_info, and flush. $ wpdb का उपयोग करने के लिए कई कार्य करता है, पुनः प्राप्त चुनें, हटाने, अद्यतन या क्वेरी, get_var, get_row, get_col जैसे डाटाबेस में डाटा को चकमा देता है, get_results,,, show_errors, hide_errors, get_col_info बचने और फ्लश. When using these $wpdb to parse SQL statements as in plug-ins or external scripts or even Wordpress code itself the following error or similar error may appear. जब इन $ wpdb दिखाई दे सकते हैं प्लग में SQL बयान-ins या बाहरी लिपियों या Wordpress कोड ही निम्न त्रुटि या इसी प्रकार की त्रुटि को पार्स करने का इस्तेमाल करते हैं.
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY post_date ASC LIMIT 1' at line 1] WordPress डेटाबेस त्रुटि: [आप अपने SQL वाक्यविन्यास में एक त्रुटि है, जो कि सही वाक्यविन्यास के लिए अपने MySQL सर्वर संस्करण में 'लाइन 1 में ASC सीमा 1 post_date द्वारा' के पास व्यवस्था का उपयोग करने के लिए बराबर है मैन्युअल की जाँच करें]
SELECT ID, post_title FROM wp_posts WHERE post_date > ” AND post_date < '2006-08-28 09:03:57' AND post_status = 'publish' AND ID != ORDER BY post_date ASC LIMIT 1 चुनें आईडी, post_title कहाँ से post_date wp_posts> "और post_date <'2006-08-28 09:03:57 'और post_status =' 'प्रकाशित और पहचान! = आदेश से post_date ASC सीमा 1
or (the following from bsuite B2V6) या (bsuite B2V6 से निम्नलिखित)
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's pages' ELSE LEFT(b.post_title, 60) END AS title, SUM(a.hits_reads) AS sor' at line 4] WordPress डेटाबेस त्रुटि: [आप अपने SQL वाक्यविन्यास में एक त्रुटि है, जो कि सही वाक्यविन्यास के लिए अपने MySQL सर्वर संस्करण के लिए 'के पास का उपयोग करने के लिए बराबर है मैनुअल चेक पृष्ठों' वरना वाम (b.post_title, 60) के रूप में END शीर्षक, Sum ओं ( लाइन 4 में sor के रूप में a.hits_reads) ']
SELECT a.post_id AS post_id, CASE WHEN b.post_title IS NULL THEN 'Alice's Home' ELSE LEFT(b.post_title, 60) END AS title, SUM(a.hits_reads) AS sort_order, CONCAT('Tot: ', FORMAT(SUM(a.hits_reads), 0), ', Avg: ', FORMAT((SUM(a.hits_reads)) / ((TO_DAYS(NOW()) चुनें post_id रूप a.post_id, मामला जब b.post_title Null फिर 'ऐलिस के होम' नहीं तो वाम (b.post_title, 60) के रूप में END शीर्षक, Sum sort_order के रूप में (a.hits_reads) है, CONCAT ( 'मुन्ना:', प्रारूप ( Sum (a.hits_reads), 0), ', औसत:', प्रारूप ((Sum (a.hits_reads)) / ((TO_DAYS (अब ())
- TO_DAYS(MIN(a.bstat_date))) + 1), 0), ', Max: ', FORMAT(MAX(a.hits_reads), 0), '') AS note FROM wp_bstat_hits a LEFT JOIN wp_posts b ON (a.post_id = b.ID) WHERE bstat_date > '2006-08-03′ GROUP BY a.post_id ORDER BY sort_order DESC LIMIT 5 - TO_DAYS (min (a.bstat_date))) + 1), 0), ', मैक्स:', प्रारूप (MAX (a.hits_reads), 0),'') के रूप में नोट से एक वाम ख पर wp_posts शामिल हों wp_bstat_hits ( a.post_id = b.ID) कहाँ bstat_date>'2006-08-03 'समूह द्वारा आदेश से sort_order desc सीमा 5 a.post_id
One of the reason for the errors is caused by post_ID or ID variable that represent the ID of the Wordpress post. एक त्रुटि का कारण के post_ID या आईडी चर द्वारा कहा गया है कि Wordpress पोस्ट की पहचान का प्रतिनिधित्व होता है. Depending on which version of PHP, MySQL or WordPress you used, the $post_id or $id or $post->ID can be placed within single quote (') as the workaround or resolution to avoid or solve the error. PHP, MySQL या WordPress आप जो संस्करण पर, एक बोली के भीतर workaround या संकल्प ( ') के रूप में रखा जा सकता से बचने के लिए या त्रुटि को हल डॉलर post_id या $ आईडी या $ बाद> आईडी निर्भर करती थी.
IMPORTANT : The page is machine translated and provided "as is" without warranty. महत्वपूर्ण: इस पृष्ठ है मशीन अनुवाद प्रदान की और "" के रूप में वारंटी के बिना है. Machine translation may be difficult to understand. मशीन अनुवाद को समझने में मुश्किल हो सकती है. Please refer to कृपया देखें original English article मूल अंग्रेजी लेख whenever possible. जब भी संभव हो सकता है.
Related Articles संबंधित लेख
- Change or Set MySQL Long Query Time Value for log-slow-queries बदलें या सेट MySQL लंबी क्वेरी समय मान लॉग-धीमी गति के लिए क्वेरियाँ
- How to Customize, Modify or Change WordPress Database Connection Error Page कैसे अनुकूलित, संशोधित करें या बदलें WordPress डाटाबेस कनेक्शन त्रुटि पेज के लिए
- Enable Logging of Slow Queries (Slow Query Log) in MySQL Database सक्षम Logging धीरे प्रश्न (धीरे क्वेरी प्रवेश करें) के MySQL डाटाबेस में
- Using PHP-MySQL Persistent Connections to Run WordPress Blog का प्रयोग PHP-MySQL लगातार कनेक्सन्स भागो WordPress करने के लिए ब्लॉग
- MySQL Error 1170 (42000): BLOB/TEXT Column Used in Key Specification Without a Key Length MySQL त्रुटि 1170 (42000): बूँद / पाठ कॉलम कुंजी विशिष्टता में एक मुख्य लम्बाई के बिना उपयोग
- gmmktime Error in WordPress and MagpieRSS WordPress और MagpieRSS में gmmktime त्रुटि
- Retrieve and Get WordPress Post ID Outside the Loop as PHP Variable Retrieve और जाओ WordPress पोस्ट आईडी के लूप PHP वैरिएबल के रूप में बाहर
- How to Find and Replace Text in MySQL Database using SQL कैसे करने के लिए और बदलें पाठ MySQL डाटाबेस में SQL का उपयोग करते हुए खोजें
- How to Backup and Restore (Export and Import) MySQL Databases Tutorial कैसे बैकअप और पुनर्स्थापित करने के लिए (निर्यात और आयात) MySQL डेटाबेस Tutorial
- How to Delete Existing WordPress Post Revisions Stored/Saved कैसे WordPress पोस्ट संशोधन संग्रहित मौजूदा नष्ट करने के लिए / सहेजा










































April 16th, 2007 22:11 अप्रैल, 16 2007 22:11
I've let these errors persist for way too long, but now they're fixed along with a bunch of other bugs. मैं इन त्रुटियों के लिए रास्ता बहुत लंबा बच, लेकिन अब वे दूसरे कीड़ों का एक गुच्छा के साथ ही तय हो जाने की है.
The latest version also lays the groundwork to transition to bsuite3, a ground-up rewrite and re-architecting of the plugin. नवीनतम संस्करण भी bsuite3 करने के लिए संक्रमण, एक जमीन के लिए फिर से लिखना है और फिर से इस प्लगइन का architecting के आधार देता है.
http://maisonbisson.com/blog/post/11613/ http://maisonbisson.com/blog/post/11613/