• cicik23

    (@cicik23)


    hi!
    There was no connection to my database.
    I changed in wp-config.php from define( ‘WP_DEBUG’, false ) to define( ‘WP_DEBUG’, true ) and this is what it says:

    Warning: mysqli_real_connect() [function.mysqli-real-connect]: [2002] Connection refused (trying to connect via tcp://194.28.50.203:3306) in /home/user6178/data/www/piechareh.pl/wp-includes/wp-db.php on line 1612

    Warning: mysqli_real_connect() [function.mysqli-real-connect]: (HY000/2002): Connection refused in /home/user6178/data/www/piechareh.pl/wp-includes/wp-db.php on line 1612

    Warning: mysql_connect() [function.mysql-connect]: [2002] Connection refused (trying to connect via tcp://194.28.50.203:3306) in /home/user6178/data/www/piechareh.pl/wp-includes/wp-db.php on line 1643

    Warning: mysql_connect() [function.mysql-connect]: Connection refused in /home/user6178/data/www/piechareh.pl/wp-includes/wp-db.php on line 1643

    Connection refused

    Is there any way You can help me ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Is the MySQL db server on the same server as your site? If so, try ‘localhost’ instead of the IP address. If not, check the firewall on the server’s site to make sure port 3306 is open and it accepts connections from non-local requestors.

    Thread Starter cicik23

    (@cicik23)

    guys from serwer helped me, but there is another problem now.

    I had 3 different wordpress sites on that serwer.
    because I was missing wp-admin.php on one site I copied it from another one, but dont know how to check DB_NAME and MYSQL database username. Where can I check it?

    each of 2 other sites on this server got diffrent name and username so I assume the one I’m missing also have diffrent names

    I think it’s this line from wp-admin.php

    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘XXXX’);

    /** MySQL database username */
    define(‘DB_USER’, ‘XXX’);

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You should have set up those databases when you installed WordPress. You’ll need to ask your hosts about that or check the MySQL app in your hosting control panel.

    VPS9 Networks

    (@vps9networks)

    Please check with the firewall settings on the server to make sure port 3306 should be open to accepting the connections.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘mySQL real connection problem’ is closed to new replies.