izmir escort
Hakkı Duman – Wordpress, Seo ve Opencart Uzmanı

WordPress MySQL Tr Karakter Hatası

Wordpress MySQL Tr Karakter Hatası 1Tr karkter hatası aslında tüm sistemlerde oluşabilecek ve olmakta olan bir hatadır. Sistemlere göre değişik yöntemleri vardır fakat wordpress kullanıcıları iyi bilir bu hata mysql taşımalarda çoğu kez karşılaşılan bir hatadır. Bir wordpress mysql yedeğini başka bir hosta taşıdığınızda tr karakter hatası alıyoruz bazen ve bu insanın canını oldukca sıkıyor. Geçenlerde benimde başıma aynen böyle bir olay geldi dreamhosttan aldığım mysql yedeğinde tr karakter hatası meydana geldi ve düzeltmek için oldukça uğraştığım söylenebilir.

Yaptığım araştırmalar sonucunda wordpress sql sorgularını kullanarak tr karakter veren harfleri orjinalleriyle değiştirme fikri aklıma geldi ve hemen uyguladım. Başarılı oldu şuanda bir sorun yaşamıyorum. Araştırırken dikkat ettimde bir çok kişi bu hatadan yakınıyor ve net bir cevap alamayan kullnıcı sayısı oldukça fazla. Ben kendi yöntemimi sizlerle paylaşmak istedim.

Yapacağınız şey phpmyadmin panelinize girerek veritabanınızı seçmek ve sql komutu bölümüne girerek aşağıda verdiğim sql sorgularını tek tek çalıştırmak. Tekrar ediyorum her satırdakı kodu tek tek çalıştırınız hepsini birden yazarsanız hata alacaksınızdır.

[php]

UPDATE wp_posts SET post_content = REPLACE(post_content,’ç’,’ç’);
UPDATE wp_posts SET post_content = REPLACE(post_content,’Ç’,’Ç’);
UPDATE wp_posts SET post_content = REPLACE(post_content,’ÄŸ’,’ğ’);
UPDATE wp_posts SET post_content = REPLACE(post_content,’Äž’,’Ğ’);
UPDATE wp_posts SET post_content = REPLACE(post_content,’ı’,’ı’);
UPDATE wp_posts SET post_content = REPLACE(post_content,’Ä°’,’İ’);
UPDATE wp_posts SET post_content = REPLACE(post_content,’ö’,’ö’);
UPDATE wp_posts SET post_content = REPLACE(post_content,’Ö’,’Ö’);
UPDATE wp_posts SET post_content = REPLACE(post_content,’ÅŸ’,’ş’);
UPDATE wp_posts SET post_content = REPLACE(post_content,’Åž’,’Ş’);
UPDATE wp_posts SET post_content = REPLACE(post_content,’ü’,’ü’);
UPDATE wp_posts SET post_content = REPLACE(post_content,’Ãœ’,’Ü’);
UPDATE wp_posts SET post_content = REPLACE(post_content,’’’,’’’);
UPDATE wp_posts SET post_content = REPLACE(post_content,’Â’,’ ‘);
UPDATE wp_posts SET post_content = REPLACE(post_content,’‒,’"’);
UPDATE wp_posts SET post_content = REPLACE(post_content,’“’,’"’);
UPDATE wp_posts SET post_title = REPLACE(post_title,’ç’,’ç’);
UPDATE wp_posts SET post_title = REPLACE(post_title,’Ç’,’Ç’);
UPDATE wp_posts SET post_title = REPLACE(post_title,’ÄŸ’,’ğ’);
UPDATE wp_posts SET post_title = REPLACE(post_title,’Äž’,’Ğ’);
UPDATE wp_posts SET post_title = REPLACE(post_title,’ı’,’ı’);
UPDATE wp_posts SET post_title = REPLACE(post_title,’Ä°’,’İ’);
UPDATE wp_posts SET post_title = REPLACE(post_title,’ö’,’ö’);
UPDATE wp_posts SET post_title = REPLACE(post_title,’Ö’,’Ö’);
UPDATE wp_posts SET post_title = REPLACE(post_title,’ÅŸ’,’ş’);
UPDATE wp_posts SET post_title = REPLACE(post_title,’Åž’,’Ş’);
UPDATE wp_posts SET post_title = REPLACE(post_title,’ü’,’ü’);
UPDATE wp_posts SET post_title = REPLACE(post_title,’Ãœ’,’Ü’);
UPDATE wp_posts SET post_title = REPLACE(post_title,’’’,’’’);
UPDATE wp_posts SET post_title = REPLACE(post_title,’Â’,’ ‘);
UPDATE wp_posts SET post_title = REPLACE(post_title,’‒,’"’);
UPDATE wp_posts SET post_title = REPLACE(post_title,’“’,’"’);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’ç’,’ç’);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’Ç’,’Ç’);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’ÄŸ’,’ğ’);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’Äž’,’Ğ’);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’ı’,’ı’);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’Ä°’,’İ’);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’ö’,’ö’);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’Ö’,’Ö’);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’ÅŸ’,’ş’);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’Åž’,’Ş’);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’ü’,’ü’);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’Ãœ’,’Ü’);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’’’,’’’);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’Â’,’ ‘);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’‒,’"’);
UPDATE wp_comments SET comment_content = REPLACE(comment_content,’“’,’"’);
UPDATE wp_links SET link_name = REPLACE(link_name,’ç’,’ç’);
UPDATE wp_links SET link_name = REPLACE(link_name,’Ç’,’Ç’);
UPDATE wp_links SET link_name = REPLACE(link_name,’ÄŸ’,’ğ’);
UPDATE wp_links SET link_name = REPLACE(link_name,’Äž’,’Ğ’);
UPDATE wp_links SET link_name = REPLACE(link_name,’ı’,’ı’);
UPDATE wp_links SET link_name = REPLACE(link_name,’Ä°’,’İ’);
UPDATE wp_links SET link_name = REPLACE(link_name,’ö’,’ö’);
UPDATE wp_links SET link_name = REPLACE(link_name,’Ö’,’Ö’);
UPDATE wp_links SET link_name = REPLACE(link_name,’ÅŸ’,’ş’);
UPDATE wp_links SET link_name = REPLACE(link_name,’Åž’,’Ş’);
UPDATE wp_links SET link_name = REPLACE(link_name,’ü’,’ü’);
UPDATE wp_links SET link_name = REPLACE(link_name,’Ãœ’,’Ü’);
UPDATE wp_links SET link_name = REPLACE(link_name,’’’,’’’);
UPDATE wp_links SET link_name = REPLACE(link_name,’Â’,’ ‘);
UPDATE wp_links SET link_name = REPLACE(link_name,’‒,’"’);
UPDATE wp_links SET link_name = REPLACE(link_name,’“’,’"’);
UPDATE wp_links SET link_description = REPLACE(link_description,’ç’,’ç’);
UPDATE wp_links SET link_description = REPLACE(link_description,’Ç’,’Ç’);
UPDATE wp_links SET link_description = REPLACE(link_description,’ÄŸ’,’ğ’);
UPDATE wp_links SET link_description = REPLACE(link_description,’Äž’,’Ğ’);
UPDATE wp_links SET link_description = REPLACE(link_description,’ı’,’ı’);
UPDATE wp_links SET link_description = REPLACE(link_description,’Ä°’,’İ’);
UPDATE wp_links SET link_description = REPLACE(link_description,’ö’,’ö’);
UPDATE wp_links SET link_description = REPLACE(link_description,’Ö’,’Ö’);
UPDATE wp_links SET link_description = REPLACE(link_description,’ÅŸ’,’ş’);
UPDATE wp_links SET link_description = REPLACE(link_description,’Åž’,’Ş’);
UPDATE wp_links SET link_description = REPLACE(link_description,’ü’,’ü’);
UPDATE wp_links SET link_description = REPLACE(link_description,’Ãœ’,’Ü’);
UPDATE wp_links SET link_description = REPLACE(link_description,’’’,’’’);
UPDATE wp_links SET link_description = REPLACE(link_description,’Â’,’ ‘);
UPDATE wp_links SET link_description = REPLACE(link_description,’‒,’"’);
UPDATE wp_links SET link_description = REPLACE(link_description,’“’,’"’);
UPDATE wp_terms SET name = REPLACE(name,’ç’,’ç’);
UPDATE wp_terms SET name = REPLACE(name,’Ç’,’Ç’);
UPDATE wp_terms SET name = REPLACE(name,’ÄŸ’,’ğ’);
UPDATE wp_terms SET name = REPLACE(name,’Äž’,’Ğ’);
UPDATE wp_terms SET name = REPLACE(name,’ı’,’ı’);
UPDATE wp_terms SET name = REPLACE(name,’Ä°’,’İ’);
UPDATE wp_terms SET name = REPLACE(name,’ö’,’ö’);
UPDATE wp_terms SET name = REPLACE(name,’Ö’,’Ö’);
UPDATE wp_terms SET name = REPLACE(name,’ÅŸ’,’ş’);
UPDATE wp_terms SET name = REPLACE(name,’Åž’,’Ş’);
UPDATE wp_terms SET name = REPLACE(name,’ü’,’ü’);
UPDATE wp_terms SET name = REPLACE(name,’Ãœ’,’Ü’);
UPDATE wp_terms SET name = REPLACE(name,’’’,’’’);
UPDATE wp_terms SET name = REPLACE(name,’Â’,’ ‘);
UPDATE wp_terms SET name = REPLACE(name,’‒,’"’);
UPDATE wp_terms SET name = REPLACE(name,’“’,’"’);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’ç’,’ç’);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’Ç’,’Ç’);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’ÄŸ’,’ğ’);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’Äž’,’Ğ’);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’ı’,’ı’);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’Ä°’,’İ’);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’ö’,’ö’);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’Ö’,’Ö’);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’ÅŸ’,’ş’);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’Åž’,’Ş’);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’ü’,’ü’);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’Ãœ’,’Ü’);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’’’,’’’);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’Â’,’ ‘);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’‒,’"’);
UPDATE wp_term_taxonomy SET description = REPLACE(description,’“’,’"’);
UPDATE wp_users SET user_login = REPLACE(user_login,’ç’,’ç’);
UPDATE wp_users SET user_login = REPLACE(user_login,’Ç’,’Ç’);
UPDATE wp_users SET user_login = REPLACE(user_login,’ÄŸ’,’ğ’);
UPDATE wp_users SET user_login = REPLACE(user_login,’Äž’,’Ğ’);
UPDATE wp_users SET user_login = REPLACE(user_login,’ı’,’ı’);
UPDATE wp_users SET user_login = REPLACE(user_login,’Ä°’,’İ’);
UPDATE wp_users SET user_login = REPLACE(user_login,’ö’,’ö’);
UPDATE wp_users SET user_login = REPLACE(user_login,’Ö’,’Ö’);
UPDATE wp_users SET user_login = REPLACE(user_login,’ÅŸ’,’ş’);
UPDATE wp_users SET user_login = REPLACE(user_login,’Åž’,’Ş’);
UPDATE wp_users SET user_login = REPLACE(user_login,’ü’,’ü’);
UPDATE wp_users SET user_login = REPLACE(user_login,’Ãœ’,’Ü’);
UPDATE wp_users SET user_login = REPLACE(user_login,’’’,’’’);
UPDATE wp_users SET user_login = REPLACE(user_login,’Â’,’ ‘);
UPDATE wp_users SET user_login = REPLACE(user_login,’‒,’"’);
UPDATE wp_users SET user_login = REPLACE(user_login,’“’,’"’);

[/php]

Biraz uzun gözüksede 15-20 dk uğraş sonucu yapılabilecek bir hata çözümüdür arkadaşlar. %100 başarılı olduğu söylenebilir. Hatırlatmam gereken bir diğer konu ise tablo ön ekidir. WordPress kurulumda otomatik olarak gelen tablo ön eki wp_ şeklindedir. %99 oranında kullanıcılar bunu değiştirmez fakat bazen değiştirenlerde olabiliryor. Değiştirmiş olan arkadaşlar sql kodlarındaki UPDATE wp_users SET şeklinde olan yeri UPDATE wp_ekadı_users SET şeklinde değiştirsin. Kolay gelsin.

BİR YORUM YAZIN

ZİYARETÇİ YORUMLARI - 1 YORUM
  1. semih Avcı dedi ki:

    belki farklı şeylerdir ama bana göre bukadar uğraşmaya değmez 2 satır sql komutu ile tüm veritabanı tr karakterleri kullanmaya başlıyor…
    http://semihavci.com.tr/mysql-ve-php-turkce-karak

Copyright 2010 Hakkı DUMAN Kişisel Blog. Tüm hakları saklıdır.