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 데이터베이스에 쿼리를 할 때 또는 조작을 수행하기 위해 모든 데이터베이스를 기반으로 조작 the 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 문을 - 기능 또는 외부 스크립트 또는 심지어 자료 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 선택 ID를 post_title 어디서 post_date wp_posts>는 "AND post_date <'2006 - 08 - 28 9시 3분 57초 '및 post_status ='게시 및 ID! = 주문에 의해 제한 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) 엔드로 제목, SUM ( 라인 4 가요 그대로 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, 반대인 경우 NULL을 b.post_title 다음 '앨리스의 홈'또 좌 (b.post_title, 60) 엔드로 제목, SUM 정렬 순서 그대로 (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 (분 (a.bstat_date))) + 1), 0), ', 맥스 :', 형식 (MAX는 (a.hits_reads), 0), '') 그대로 메모에서 왼쪽 B에서 wp_posts 가입 wp_bstat_hits ( a.post_id = b.ID) 어디 bstat_date> '2006 - 08 - 03 'GROUP BY 문의 주문에 의해 정렬 순서 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 또는 ID 변수에 의해 그 자료 Wordpress 게시물의 ID를 나타내는 인한 것입니다. 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 당신의 버전에, 작은 따옴표 내에있는 해결 방법이나 해상도 ( ')로 삽입 할 수있습니다 피하거나 오류를 해결 post_id 달러 또는 $ ID 또는 $ 게시물 -> 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 로깅 슬로우 검색어 (느린 검색어 로그)의 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) : BLOB를 / 텍스트 열에 주요 사양에있는 키 길이없이 사용
- gmmktime Error in WordPress and MagpieRSS 워드와 MagpieRSS gmmktime에 오류가 발생했습니다
- Retrieve and Get WordPress Post ID Outside the Loop as PHP Variable ! 회수하는 WordPress 게시물 ID는 루프 밖으로 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 데이터베이스를 튜토리얼
- How to Delete Existing WordPress Post Revisions Stored/Saved WordPress에 저장된 기존 게시물을 삭제하는 방법 교정본 / 저장됨










































April 16th, 2007 22:11 4 월, 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로 전환, 지상 - 최대로 재작 성하고 다시 - 플러그인의 설계 기초 낳는다.
http://maisonbisson.com/blog/post/11613/ http://maisonbisson.com/blog/post/11613/