4 Replies - 747 Views - Last Post: 05 July 2011 - 06:31 AM

#1 Ahmedn1  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 23
  • View blog
  • Posts: 556
  • Joined: 04-August 09

Installing PHP tools problem

Posted 03 July 2011 - 05:25 PM

I'm new to PHP so I'm learning to use it
I installed WAMP because it has Apache, PHP and mysql in it

the problems are as follows:

1- before installing WAMP I had already MySQL 5.5.9 installed as I was using it in .NET programming
I was using the server databases using SQLYog and it was going very well
when I installed WAMP its icon is Yellow
So, I understood that there are missing services
I checked the Apache and it is running
the Mysql service is not running (which I discovered lately that it was 5.5.8 in the latest version of WAMP and also XAMPP)
I tried a lot but no use
I tried to uninstall the 5.5.9 and re-install WAMP but no use
so I installed back the 5.5.9 version

2- When I try to open 'localhost' from the WAMP tray it doesn't load
it tries to load the page but it can't reach it
"Unable to connect"

3- of course because of the mysql thing I cannot use phpMyAdmin

Is This A Good Question/Topic? 0
  • +

Replies To: Installing PHP tools problem

#2 codeprada  Icon User is offline

  • Changed Man With Different Priorities
  • member icon

Reputation: 944
  • View blog
  • Posts: 2,353
  • Joined: 15-February 11

Re: Installing PHP tools problem

Posted 04 July 2011 - 07:03 AM

I would believe your problem is more than service is trying to use a port. No too programs can use the same port at the same time. Check your Services and disable the ones you're not using and enable the ones you want to use. For MySQL you'll see a service with the name of MySQL by default or if you specified to change it's name you'll find it under that name.

I've got MySQL server and WAMPSERVER on my computer and I haven't had any problems. Even used the two at the same time so it's quite possible to have to the two.

This post has been edited by codeprada: 04 July 2011 - 07:04 AM

Was This Post Helpful? 2
  • +
  • -

#3 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3710
  • View blog
  • Posts: 5,958
  • Joined: 08-June 10

Re: Installing PHP tools problem

Posted 05 July 2011 - 01:27 AM

Like codeprada said, no two programs can use the same port at the same time, and by default MySQL will attempt to use port 3306. If you want to run both servers at the same time, and you did not specify another port during setup (if that's even possible with WAMPP), you will need to edit the my.ini config file for either of them and edit the port directive.

By default it will be set to port=3306, which you will have to change to another open port. Note that there are usually two such directives, one under [client] and another under [mysqld]. The latter is what really matters, but generally they should match.

Also, you'll have to make sure you applications are pointing to the right server. As 3306 is the default port, most MySQL drivers will automatically attempt to connect to the server running on that port. If you want to connect to the other one, you'll have to make sure your code sets the correct port number.


That said, surely you can just turn off the MySQL instance WAMPP uses and use the one you already had? The Apache server it runs shouldn't be affected by a MySQL server conflict.
Was This Post Helpful? 1
  • +
  • -

#4 no2pencil  Icon User is offline

  • Dic Head
  • member icon

Reputation: 5163
  • View blog
  • Posts: 26,837
  • Joined: 10-May 07

Re: Installing PHP tools problem

Posted 05 July 2011 - 01:30 AM

** Moved to Web Servers & Hosting **

Question is not PHP code, but for server configuration.
Was This Post Helpful? 0
  • +
  • -

#5 Ahmedn1  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 23
  • View blog
  • Posts: 556
  • Joined: 04-August 09

Re: Installing PHP tools problem

Posted 05 July 2011 - 06:31 AM

thank you for all your help
what happened is I removed the mysql server and re-installed WAMP
it worked
but there is a problem
when I try to run the MySQL console to set a password for the root it says it cannot connect to the mysql server
although it is running in wamp and SQLyog connects to it without problems

I tried to change the password through 'my.ini' but I still login without any password
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1