mySQL not connected ....

They have: 112 posts

Joined: Aug 2001

I'm a novice to databases but trying to install mySQL, PHP and Apache on my Windows 98 OS. I'm pretty sure I have installed all three correctly. Apache serves up php files ok - I did the phpinfo test and it's all good. mySQL seems to be installed correctly but it's not communicating with php. Where do I start in figuring out what's wrong in the configuration? mySQL opens and the box appears for a second then disappears. Apparently this is normal ?!? How do you manually configure mysql if the screen disappears?

I think I'm doing well enough for a database newbie but what to do now?

Thanks,

Blue

He has: 51 posts

Joined: Jan 2004

If you want to learn how to install what you mentioned, and how they're all related from a config standpoint, continue to hammer through the issues.

Othe other hand, if you want to get on with it and write some code, I suggest you give this a try:

http://www.apachefriends.org/en/xampp.html

"XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use - just download, extract and start."

CptAwesome's picture

He has: 370 posts

Joined: Dec 2004

try opening MySQL via command prompt (should be able to just type mysql in any folder) You might need to find my.ini which will have config options like root username and password.

What is the exact code that you're using in php to connect to the database, and what do you get back as an error?

They have: 112 posts

Joined: Aug 2001

Thanks for the tips peeps. I gave up I have to admit as I found that I have some free webspace from my ISP that has php and mysql set up. The purpose of installing them was to be able to learn php and I can do it on the ISP webspace for now. I know it's a good thing to be able to install a server so you know what goes on but it's gonna have to wait. First things first and learning php is the higher priority.

Thanks for the tips as always.

Blue

Busy's picture

He has: 6,151 posts

Joined: May 2001

if the box is up (then goes) usually means you should be able to just go for it, can go thru dos prompt to get mysql or just use phpmyadmin if you just want the database.

If you get stuck and want php/mysql/apache on your puter download one of the bundles, one I have used is from firepages.com.au they also have a help forum and the manuals etc

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.