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

    Join Date
    Jul 2000
    Posts
    12
    Rep Power
    0
    Hey,
    I downloaded the latest beta of mySQL from mysql.com [for windows] and i installed it and ran winmysqladmin.exe as the readme tells me to. I filled the the username/pw and then save and it to the ini and then it runs the mySQL program without a problem. Then i ran mysql.exe to make sure there werent any conflicts or errors, and it worked fine and i made a quick database. But, then when i try to use mysql functions in PHP [any of them], i get the following error..

    Fatal error: Call to undefined function: mysql_connect() in Dhpbblah.php3 on line 8

    Anyone know why this is happening? I have omni httpd server running, and PHP works fine and the green light on the mySQL admin is green. Any help would be greatly appreciated.

    Thanks
    -Bryan
  2. #2
  3. 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
    You have to enable mysql functions in PHP. There should be a line in php.ini that looks something like:

    ;extension=php3_mysql.dll

    remove the semi-colon
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2000
    Posts
    12
    Rep Power
    0
    Rod,
    I already had that line in php.ini un commented...anything else that may be causing the problem?

    -Bryan
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    114
    Rep Power
    15
    I'd been using MySQL 3.22.xx for windows for a little while, and then I thought it'd be cool to upgrade... I'd stay away from the little GUI for the mysqladmin and just run the whole shoot'n match from your DOS CLI. That GUI made it so I couldn't connect either. I just cleaned up what I could, did a re-install (re-unzip ) and never double clicked on anything in the mysqlbin again.

Similar Threads

  1. Replies: 3
    Last Post: January 28th, 2010, 02:14 PM
  2. Replies: 1
    Last Post: January 24th, 2004, 12:20 PM
  3. MySQL server problem after linking (mysql.sock)
    By ewijaya in forum MySQL Help
    Replies: 4
    Last Post: January 12th, 2004, 09:46 AM
  4. mySQL memory problem
    By cliq_ik in forum MySQL Help
    Replies: 5
    Last Post: March 10th, 2003, 04:30 AM
  5. MySQL - ADO - VB problem
    By dcaillouet in forum MySQL Help
    Replies: 1
    Last Post: May 1st, 2001, 09:10 PM

IMN logo majestic logo threadwatch logo seochat tools logo