Jump to content

[SOLVED] WAMP server Problem and Correct way to install PHP and MySQL???


Recommended Posts

Hello everyone,

 

I have installed WAMP server on my PC. Then I have installed the MySQL and PHP software by downloading them from the site. The PHP programs I have written used to work fine but when I tried to connect to the MySQL database or create a new database using the PHP programming nothing happens in the browser. I do not know what happened. After several attempts I finally uninstalled the MySQL and PHP programs and then when I tried to connect to the MySQL usin PHP it worked fine I do not know the reason for this. Can anyone tell me what the reason is?

 

Further more I would like to install PHP and MySQL along with a server like APACHE. But I do not know where to download the APACHE server from. Also When I install PHP and MySQL how do I link PHP and MySQL so that they work in tandem.

 

Would be great if anyone can clear these doubts. I know that these are very basic questions but I am a starter.

 

Thanks,

Sashi

 

 

Further more I would like to install PHP and MySQL along with a server like APACHE. But I do not know where to download the APACHE server from. Also When I install PHP and MySQL how do I link PHP and MySQL so that they work in tandem.

 

I'm not sure what exactly you mean...  WAMP comes with all of this...

 

WAMP - Apache, MySQL, PHP on Windows

Yes you are right....but if I want to install (I will uninstall the WAMP first) the software separately ie., PHP and MySQL separately how do I go about linking them? How can I get the PHP work with MySQL in sync.....like if I write a command in PHP asking to connect to the MySQL server it should be able to connect to the server. Also I have tried to download the APACHE server from the website but I do not know how to download it...can you please guide me through it

 

Thanks,

Sashi

Also I have tried to download the APACHE server from the website but I do not know how to download it...can you please guide me through it

 

There are plenty of tutorials online to guide you through, even on this forum.

 

PHP and MySQL separately how do I go about linking them?

 

You have to install PHP on your server to use PHP.  You can connect to any database on any server (given the credentials) with PHP.

 

If I were you I would just install WAMP, but if you want to install each component individually:

 

-Get Apache working

-install PHP

-install MySQL

 

That's what I would do maybe someone else has a better way.  Good luck.

If you have more trouble you may have more success on this forum, as it relates to your question better.  There are child boards (linux/windows) for mysql, apache and php installations.

 

PHP Installation

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.