• hi, I have problem for WPMU on localhost (xampp), I have done install multisite and add new site, but if I clik new site (ex:hello.example.dev) I found error “Error establishing a database connection”
    this my config.php

    define('DB_NAME', 'wp_toko');</p>
    <p>/** MySQL database username */<br />
    define('DB_USER', 'admin');</p>
    <p>/** MySQL database password */<br />
    define('DB_PASSWORD', 'adminweb');</p>
    <p>/** MySQL hostname */<br />
    define('DB_HOST', 'localhost');</p>
    <p>/** Database Charset to use in creating database tables. */<br />
    define('DB_CHARSET', 'utf8mb4');</p>
    <p>/** The Database Collate type. Don't change this if in doubt. */<br />
    define('DB_COLLATE', '');<br />
    /* That's all, stop editing! Happy blogging. */</p>
    <p>/* Multisite */<br />
    define( 'WP_ALLOW_MULTISITE', true );<br />
    define('MULTISITE', true);<br />
    define('SUBDOMAIN_INSTALL', true);<br />
    define('DOMAIN_CURRENT_SITE', 'tokonlineku.dev');<br />
    define('PATH_CURRENT_SITE', '/');<br />
    define('SITE_ID_CURRENT_SITE', 1);<br />
    define('BLOG_ID_CURRENT_SITE', 1);<br />

    htacces

    </p>
    <p># BEGIN WordPress<br />
    RewriteEngine On<br />
    RewriteBase /<br />
    RewriteRule ^index\.php$ - [L]</p>
    <p># add a trailing slash to /wp-admin<br />
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]</p>
    <p>RewriteCond %{REQUEST_FILENAME} -f [OR]<br />
    RewriteCond %{REQUEST_FILENAME} -d<br />
    RewriteRule ^ - [L]<br />
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]<br />
    RewriteRule ^(.*\.php)$ $1 [L]<br />
    RewriteRule . index.php [L]</p>
    <p># END WordPress<br />

    hosts

    127.0.0.1       tokonlineku.dev
    	127.0.0.1       localhost
    
    vhost
    <virtualhost *:80>
        DocumentRoot "C:\xampp\htdocs\tokonlineku.dev"
        ServerName tokonlineku.dev
        ServerAlias tokonlineku.dev *.tokonlineku.dev
        <directory "C:\xampp\htdocs\tokonlineku.dev">
            Options Indexes FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all
        </directory>
    </virtualhost>
    </code >
    please help me

The topic ‘WP multisite problem Database’ is closed to new replies.