Ticket #2828: 2828.diff

File 2828.diff, 1.1 kB (added by tenpura, 2 years ago)

any better ideas?

  • wp-config-sample.php

    old new  
    44define('DB_USER', 'username');     // Your MySQL username 
    55define('DB_PASSWORD', 'password'); // ...and password 
    66define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value 
     7//define('INITIAL_QUERY', "SET NAMES 'utf8'"); // MySQL 4.1 or later, you may need to uncomment this 
    78 
    89// You can have multiple installations in one database if you give each a unique prefix 
    910$table_prefix  = 'wp_';   // Only numbers, letters, and underscores please! 
  • wp-settings.php

    old new  
    7171define('WPINC', 'wp-includes'); 
    7272require_once (ABSPATH . WPINC . '/wp-db.php'); 
    7373 
     74if(defined('INITIAL_QUERY')) 
     75        $wpdb->query(INITIAL_QUERY); 
     76 
    7477// Table names 
    7578$wpdb->posts            = $table_prefix . 'posts'; 
    7679$wpdb->users            = $table_prefix . 'users';