Forums

Advice on WAMP issue: MySQL not connecting (1 post)

  1. KhakiMan
    Member
    Posted 1 year ago #

    I'm trying to install v3.1 on a fresh install of WAMP. I created the MySQL database, password, etc., but when I try to use the install wizard I keep receiving a message saying it can't connect.

    Running the localhost/testmysql.php script I get the following error:

    ( ! ) Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\wamp\www\testmysql.php on line 2
    Call Stack
    # Time Memory Function Location
    1 0.0007 365128 {main}( ) ..\testmysql.php:0
    2 0.0007 365320 mysql_connect ( ) ..\testmysql.php:2

    ( ! ) Warning: mysql_connect() [function.mysql-connect]: [2002] php_network_getaddresses: getaddrinfo failed: No such host is kn (trying to connect via tcp://hostname:3306) in C:\wamp\www\testmysql.php on line 2
    Call Stack
    # Time Memory Function Location
    1 0.0007 365128 {main}( ) ..\testmysql.php:0
    2 0.0007 365320 mysql_connect ( ) ..\testmysql.php:2

    ( ! ) Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\wamp\www\testmysql.php on line 2
    Call Stack
    # Time Memory Function Location
    1 0.0007 365128 {main}( ) ..\testmysql.php:0
    2 0.0007 365320 mysql_connect ( ) ..\testmysql.php:2
    Could not connect to MySQL: php_network_getaddresses: getaddrinfo failed: No such host is known.

    Appreciate any help!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags