Gewusst wie: Optimierung von Wordpress mit Mysql Replikation
he:מיטוב wordpress עם Mysql שכפול
ro:Cum să optimizaţi wordpress cu Mysql replication
ru:Как оптимизировать wordpress с помощью репликации Mysql
pl:Jak zoptymalizować wordpress z replikacji Mysql
ja:ワードプレスの Mysql のレプリケーションを最適化する方法
ar:كيفية تحسين وورد مع النسخ المتماثل الخلية
zh:如何优化 wordpress 与 Mysql 复制
nl:Hoe te optimaliseren wordpress met Mysql replicatie
it:Come ottimizzare wordpress con la replica di Mysql
pt:Como otimizar wordpress com replicação do Mysql
es:Cómo optimizar wordpress con replicación Mysql
fr:Comment optimiser wordpress avec une replication Mysql
Dieser Artikel wurde maschinell übersetzt. Sie können den Artikel Quelle hier ansehen.
In diesem Artikel wird die Installation in SSH Befehl Linie gemacht werden, aber es kann sehr gut von Ihrem lokalen PC erfolgen und per FTP.
1. Seit den home-Ordner herunterladen, dann entpacken Sie diese Datei | _. _. . Die Standard-Config in das Stammverzeichnis der Website kopieren und bearbeiten | _. _. . Suchen Sie in der Datei, die folgende passage und ersetzen Sie durch DB_SLAVE_ DB_HOST | _. _. . Fügen Sie diese Zeile in der Datei wp - config.php | _. _. . Abschließend kopieren Sie diese Datei überhaupt zu aktivieren. :
cd ~; wget http://downloads.wordpress.org/plugin/hyperdb.zip
sudo apt-get install zip
unzip hyperdb.zip
2Finde die Seite widmet sich unser Wordpress-Angebot auf die :
cp ~/hyperdb/db-config.php /var/www/
vi /var/www/db-config.php
31
$wpdb->add_database(array(
'host' => DB_HOST, // If port is other than 3306, use host:port.
'user' => DB_USER,
'password' => DB_PASSWORD,
'name' => DB_NAME,
'write' => 0,
'read' => 1,
'dataset' => 'global',
'timeout' => 0.2,
));
4
define('DB_SLAVE_1', 'IP_du_serveur_mysql_slave');
5
cp ~/hyperdb/db.php /var/www/wp-content/
chmod a-w /var/www/wp-content/db.php
chown -R www-data:www-data /var/www/wp-content/db.php
chown -R www-data:www-data /var/www/db-config.php
Ikoula Website.
Die automatische Aktualisierung der Kommentare aktivieren.