SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    php and mysql install errors

    I'm trying to connect to mysql through php.I recently also installed Apache on my Windows 7 machine.

    The error messages that I get are as follows:



    Warning: mysql_connect() [function.mysql-connect]: [2002] No connection could be made because the target machine actively refused it. (trying to connect via tcp://localhost:3306) in C:\Apache24\htdocs\testdb.php on line 6

    Warning: mysql_connect() [function.mysql-connect]: No connection could be made because the target machine actively refused it. in C:\Apache24\htdocs\testdb.php on line 6
    Could not connect to MySQL


    This is not a firewall issue because I temporarily turned it off and got the same error messages.

    Thanks.

  2. #2
    SitePoint Member
    Join Date
    Aug 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks but there is no problem anymore. I just realized that I hadn't started the MySQL service.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •