Not sure what you mean "to connect to MySQL from PHP". However, I think I'm on the path to solving the problem.
Here is where I'm at:
Dan Grossman suggested that PHP was not properly configured to communicate with MySQL, and I think he's right.
I had downloaded (previously) phpMyAdmin, and went ahead and extracted the files to Apache2.2/htdocs. Following instructions to get it set up, I typed
http://localhost/phpMyAdmin. I got a Error 503. Hmmmm. After much thinking, became suspicious about having Virtual Hosts set up. So, I went to httpd.conf and disabled (commented out) #Include conf/extra/httpd-vhosts.conf, restarted Apache, and then type in the address bar:
http://localhost/phpMyAdmin. Bingo. But I got an error (phpMyAdmin - ErrorCannot load mysql extension. Please check your PHP configuration. - Documentation), which basically tells me what Dan had said. But, at least it opened the program.
So, now I have to firgure out how to get them talking (I've verified the extensions are enabled, and put the libmysql.dll in the Windows path, restarted everything (including my computer), but still get the error.
That's where I am right now.
Is it possible to have Virtual Hosts enabled and have phpMyAdmin? Must be, but I'm not sure how to solve that one yet (I was getting the Error 503 when typing
http://localhost/phpMyAdmin with Virtual Hosts enabled).
Thanks for the help. Sooner or later, I'll get it. I'm learning a lot along the way.
Regards,
Bill O.
Bookmarks