Thread: PHP and MySQL

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    1
    Rep Power
    0
    How do I get the mysql_connect function in PHP to work when my webserver is win2000 based? It asks for my servername when I use this function. But because mysql executable is installed at c:mysqlbinmysql.exe, just typing in my server name won't start mysql. How do I make this work?
    -Devin
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    I have MySQL and PHP installed on a Win 2k box too, and it works for me if I don't use mysql_connect, but just mysql_db_query.

    Greetz,

    DJ

    [This message has been edited by djochtman (edited October 27, 2000).]
  4. #3
  5. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    use a hostname of "localhost"

Similar Threads

  1. Check MySQL Version thru PHP
    By wolftrap1 in forum PHP Development
    Replies: 2
    Last Post: February 11th, 2004, 09:51 PM
  2. Replies: 5
    Last Post: February 11th, 2004, 03:18 AM
  3. Replies: 0
    Last Post: January 30th, 2004, 02:22 PM
  4. PHP 5 (MYSQL vs. SQLite)
    By ignition in forum PHP Development
    Replies: 1
    Last Post: January 23rd, 2004, 01:13 PM
  5. PHP Reconfig with mysql...
    By Legendary Fox in forum PHP Development
    Replies: 3
    Last Post: January 23rd, 2004, 12:46 AM

IMN logo majestic logo threadwatch logo seochat tools logo