• Amid

    (@aminteractiondesign)


    Hi, I got xampp setup and want to test my theme on my ipad.
    I connect to my Ip in the ipad safari.
    I got this to work with a normal wp install, but I have problems with my multisite installation.
    The first problem was that when I navigated to the wordpress folder I got relocated to localhost, so I changed DOMAIN_CURRENT_SITE to the Ip.
    Now I get:

    Error establishing a database connection

    When I change the DB_HOST to my IP I get this error:

    Warning: mysqli_real_connect(): (HY000/1130): Host 'XXXXX.fritz.box' is not allowed to connect to this MySQL server in O:\WORDPRESS\multisite\wp-includes\wp-db.php on line 1490

    Who can help?
    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • MySQL is by default configured to work with localhost.

    Make sure that your MySQL is binding to a socket on 0.0.0.0 and you should be able to connect to that socket. It may be already bind to 127.0.0.1 by default for MySQL, which will not be possible to reach from outside.
    The MySQL configuration file should be in .\xampp\mysql\bin\my.ini. You need to find the bind-address parameter and change it to 0.0.0.0

    After doing this everyone in your network should be able to connect to that MySQL instance.

    Regards

    Thread Starter Amid

    (@aminteractiondesign)

    Thanks but it didn′t change anything.
    I have this in my my wp-config.php

    define('DB_HOST', '0.0.0.0');

    and this in the my.ini

    bind-address="0.0.0.0"

    Restarted but still get an error:

    Error establishing a database connection
    This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at 0.0.0.0. This could mean your host’s database server is down.

    Make sure the Database username and password you given in wp-congig.php is correct.

    Thread Starter Amid

    (@aminteractiondesign)

    They are because the site works, just not from my ipad locally when using the pc′s IP :/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘ipad localhost testing with multisite’ is closed to new replies.