The world is full of lovely stuff :-)

[解決]エクスポートインポートmysqlのセッティングがまちがってないのにwordpressが盛大に文字化けた。

WPおぼえ書き

12.02.24

覚書。

wp-db.phpの

 

if ( WP_DEBUG ) {
$this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, true );
} else {
$this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, true );
}

if ( WP_DEBUG ) {
$this->dbh = mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, true );
mysql_set_charset(“utf8”);
} else {
$this->dbh = @mysql_connect( $this->dbhost, $this->dbuser, $this->dbpassword, true );
mysql_set_charset(“utf8”);
}

 

に修正。なおった。んもー!

Smilar Posts