PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, January 27, 2022

[FIXED] cannot run the localhost with upgraded php version and mysql version

 January 27, 2022     apache, mysql, php, phpmyadmin     No comments   

Issue

My localhost was running on wampserver 2.0 ( with php5.3.0 , mysql5.1.16 , Apache 2.2.11). I needed to upgrade php and mysql, so i downloaded php 5.6.16. and extracted in to directory "wamp/bin/php/php5.6.16" with 3 mandatory files ( php configuration file, phpForApache configuration file and wampserver.conf file) from existing php5.3.0 folder.

Then I got a mysql from my friend's (mysql5.6.12 64bit) wamp directory. didn't do any configurartion. I put it into my wamp/bin/mysql. then i exited from wamp and restart it again.

Then php and mysql versions look like this.

hsdhf

enter image description here

mysql version is not displayed here. and the existing version name is not selected. with these changes I executed the localhost on browser.

wamp server home page is displayed on the browser.

Then I could see this.

enter image description here

In above image, the updated Mysql version is displayed, but not displayed in wamp tray menu mentioned before.

After I tried to view phpmyadmin page. the page was not loaded.

When I'm trying to select mysql version5.1.36 from wamp tray menu, following error was occurred. enter image description here

Special: after this error occurred, the wamp go offline and cannot open localhost.

And also when I select php version 5.6.16 from wamp tray menu and start localhost, but it goes for " unable to connect" page.

Then I removed the new mysql 5.6.12 folder from the wamp/bin/mysql directory. then restart services and try again.

Nothing changes happened. when start the localhost I could see mysql version again as before.(MySQL Version : 5.6.12 ). But I already removed it from the directory.

I explained everything that i faced.

I need to know what is going on here and how to fix these problems. and How do I install php and mysql versions in this wampserver 2.0.


Solution

A working WAMP install should come with included MySQL and PHP versions. That's the whole point of using a package such as WAMP instead of installing your own; you get a whole working stack with one installation instead of having to install each application individually and then configure them manually to work together. Therefore, I have no idea why you would want to copy a friend's MySQL application to your computer. Aside from the fact that you probably didn't copy all the system files (DLLs, library files, etc), you're probably introducing conflicts with the library files that PHP and WAMP use to access MySQL since it's expecting a particular version and now you're providing a different version.

Frankly, at this point it sounds like things are messed up enough that probably the only proper solution is to remove what you have and reinstall the WAMP package (or each individual component). Make sure you back up any relevant changes you've made (configuration, web files, and databases) first!



Answered By - Isaac Bennetch
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing