Multiple xampp installations for multiple php versions - mysql

I have configured two Xampp servers in different drives. I have Xampp for php 7.4 and php 8 in C drive and D drive respectively. Previously, before installation of the xampp in the D drive, I have configured FastCGI on xampp server, the one in C drive, for running project of php 5.6 version. Hence I used to use php 5.6 and 7.4 both on C drive xampp server.
The fact is, the apache and mysql services are registered in WINDOWS 10 registry, where the ImagePath for both services is set at
\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
Whenever we START the apache and mysql services from Xampp server it checks for the respective ImagePath in the Windows registry to run both the services.
The issue is, After configuration of second xampp in D drive, I have to manually change the ImagePath="C:\xampp\apache\bin\httpd.exe" -k runservice of Apache2.4 and ImagePath=C:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql of mysql services which is getting a bit hectic as I have to run multiple projects of different PHP versions at the same time.
I need to know any way around for this if anyone has !

The setup i use for my preference and work is,
Xampp (latest) 8.2
Laragon(maintains multiple php versions)
On xampp i use database and on laragon i use php.
In this manner i get to run single database against any php version.
2nd i get multiple version of php on just a single click. Yes ot takes time to make this environment first but it's good. I have on my system 5.6, 7.0,7.2,7.3,7.4,8.0,8.2

Related

Is MySQL a database? or a database server? Why do we install xampp or wamp in order to access MySQL?

I heard that MySQL is a database server. If it is a database server, then what is the need of installing other servers like xampp or lampp? Do xampp or wamp or lampp do other jobs than being a Database server?
XAMPP, WAMP and LAMPP are all stacks for creating web solutions. The acronyms come from A Apache (web server), M MySQL or MariaDb (Database), and P for Perl or PHP for the scripting component.
MySQL itself is just a database server (RDBMS) so you would require additional components to build an overall web solution (provided in the stacks above).
Depending on your operating system, W(Windows), L(Linux) , X(All) then we have Apache, Mysql running at different ports.
PHP including the rest of your code files stored in htdocs as they have corresponding engines in relative XAMP directories (eg php.ini). All these will give you a look and feel of a typical server environment and accommodate your frameworks (laravel, noodle etc) you can't get all that from mysql server alone.

How do I setup a visual MySQL client if I already have MySQL installed in my system?

I have downloaded the MySQL from the following link:
http://dev.mysql.com/downloads/mysql/
Downloaded the version 8.0.0. I have OS X 10.10.5
Now, I suppose I need to configure a visual MySQL client on my laptop to write queries. For that, I have installed sequelpro (sequelpro.com).
I need help on following points:
- Since there are a number of sample databases which one can use to learn SQL, can you please guide me on few such databases. My objective is to learn advanced SQL.
- Also, how do I configure my client (sequelpro) to connect to that database so that I can run queries.
As of now, I am stuck with the following screenshot with no clue what to do next.
Thanks a lot. Screenshot here
Based on the fact you said in the comments you have OSX and you installed mysql manually without phpmyadmin I suggest you download and install mamp.
mamp
1: https://www.mamp.info/en/ is,
MAMP installs a local server environment in a matter of seconds on
your computer. It comes free of charge, and is easily installed. MAMP
will not compromise any existing Apache installation already running
on your system. You can install Apache, PHP and MySQL without starting
a script or having to change any configuration files! Furthermore, if
MAMP is no longer needed, just delete the MAMP folder and everything
returns to its original state (i.e. MAMP does not modify any of the
"normal" system).
Basically it is a fake server that runs on your computer. This will be yours for localhost development. You can use it to serve your localhost php applications, change versions of php and gives you a GUI for mysql which is phpmyadmin.
Once you install mamp
you might need to configure mamp to use the mamp mysql but most likley it will work out of the box. If you do run into any problems make sure you stop the instance of mysql you installed already before running mamp then trying to ran mamp again and it should be using the correct version.

Can I keep MYSQL and WAMP Server running together?

At first, I use Struts 2 to develop a website in Java web technology. So I installed Apache Tomcat as the localhost server and MYSQL as the database (MYSQL here is the full application from mysql.com, not the packages like XAMPP or WAMP...)
But now I switch to learn a little bit about PHP so I install WAMP full package. When I start all services of WAMP and go to browser and type localhost, everything work fine
But when I go to localhost/phpmyadmin, it seems to connect to the old MYSQL application in my computer (what I've used in Java web). And then I restart computer and use MYSQL Workbench (in the MYSQL application), but now it connects to the database of WAMP package, and I can not connect to the old database (in Java web) anymore
The solution is remove WAMP but I need WAMP for PHP
So I just want to ask how can I use MYSQL application and WAMP package together (MYSQL application for Java web and WAMP package for PHP)?
Thank you and apology for my bad English!
Go to C:\Program Files (x86)\MySQL\MySQL Server 5.1 and open my (Configuration file) and then navigate to
[client]
port=3306
Change this to
[client]
port:3307
This will make phpmyadmin to run on 3306 and Java-Mysql to run on 3307
You can of course keep both XAMPP and WAMP running together keeping in mind that you have changed the default ports for either of it to some other ports rather than 80,443 and 3306, but sometimes it could create conflict as when you install some other third party softwares or enable certain services that run on port 80,443,3306.
The best alternative here would be to install one of the servers inside a virtual machine with network configured as "host-only-adapter" so that from the base machine you could access XAMPP/WAMP installed on the virtual machine by just pointing the ip-address of the virtual machine through a web-browser.
or,
If you want to run both XAMPP and WAMP together on the same machine but access only one of the servers at a time then you could go ahead installing both of them one after another. But, keep in mind that before installing the other server you have to completely stop all the services running from the XAMPP or WAMP control panel then quit the application. After this step you can go ahead installing the other server without changing any configurations or port numbers. This is because in this case we assumed that only one of the servers would be accessed at a time. Hence, before launching the other server one has to completely quit the application that is running currently by stopping all of it's services. If skype is installed then one has to change the default incoming connection ports to other than port 80 and 443.
Like mentioned above, if at all the intention is to access both servers up and running concurrently then taking advantage of a virtual machine would be the best to avoid conflicts and a long-term troubleshoots eventually.
If you messed up changing ports and config files then you could end up with the following error while trying to access phpmyadmin from XAMPP control panel:
**mysql said: Cannot connect: invalid settings. xampp**
note: while launching the servers , run it as administrator else some services will not start properly.
"I TRIED INSTALLING BOTH XAMPP AND WAMP ON WINDOWS 10 AS SUCH AS POINTED BY MANY THREADS I CHANGED THE DEFAULT PORTS FOR MYSQL & APACHE XAMPP AS IT WOULD CONFLICT WITH WAMP ALREADY INSTALLED ONLY ENDING UP UNABLE TO ACCESS PHPMYADMIN FROM XAMPP CONTROL PANEL. THEN REINSTALLED XAMPP WITHOUT CHANGING ANY CONFIGS OR PORTS. STOP THE WAMP SERVICES, QUIT THE APP AND THEN LAUNCH PHPMYADMIN FROM XAMPP CONTROL PANEL. AT LAST IT WORKED!. THE PROCESS LOOKS SHORT THOUGH WHEN IN REALITY IT TOOK ME COUNTLESS HOURS AND PAIN RESEARCHING ON THE WEB AND TESTING FOR A POSSIBLE SOLUTION UNTILL I CAME UP WITH THIS."
Hopes, this quick tips and guides would be helpful.

wamp connect to different mysql

WAMP comes packaged with MySQL, Apache, and PHP. I already had a version of MySQL (downloaded from Oracle) installed to my machine with data in it. Is there any way I can make WAMP use the external MySQL rather than the one packaged with it?
For instance, if I click "Restart Services" in WAMP, it restarts the MySQL server packaged outside C:\wamp.
Copy MySQL installed (outside wamp) files to your wamp>bin>MySQL folder. Ensure you keep the MySQL folder name as such without renaming, in the wamp - only then wamp will be able to turn on its services since those values lie in registry.
For example, if folder structure in Wamp is bin>MySQL>MySQL5.5.8 then copy the files from the standalone installation and copy to MySQL5.5.8 folder. So ensure you dont rename MySQL5.5.8 folder.
Now all this wont give you the correct version in phpmyadmin which will require more configuration, it will still show the previous version number as of MySQL that came along with wampserver. But you can atleast be sure inside, in real u r using my damn new MySQL :)
Here is a related question, but dont have anymore info

XAMPP phpmyadmin mysql user manual?

This is actually 2 questions...
Background:
After using the command line in MySQL for my database introductory classes (very enjoyable), I had been required to use a DBA tool and downloaded XAMPP as identified below.
The transition to a GUI would be ok if I understood the interface for creating database tables...
Q1.I have searched the net and Amazon trying to locate a user manual for XAMPP... does anyone have an actual manual? At this point it is trial and error.
Q2. As a student I am curious about the use of these tools in the real world... why not use the command line provided in MySQL?
XAMPP for Windows 1.7.3, 2009/12/23
Version Size Content
XAMPP Windows 1.7.3
[Basic package] Apache 2.2.14 (IPv6 enabled), MySQL 5.1.41 + PBXT engine, PHP 5.3.1, OpenSSL 0.9.8l, phpMyAdmin 3.2.4, XAMPP Control Panel 2.5.8, XAMPP CLI Bundle 1.6, Webalizer 2.21-02, Mercury Mail Transport System v4.72, msmtp 1.4.19, FileZilla FTP Server 0.9.33, SQLite 2.8.17, SQLite 3.6.20, ADOdb 5.10, eAccelerator 0.9.6-rc1, Xdebug 2.0.6-dev, Ming 0.4.3
For Windows 2000, XP, Vista, 7. See README
EXE
51 MB Self-extracting RAR archive
MD5 checksum: 3635a1c0baf15e8a019009e6c1225389
Thank You for your interest!
Xampp is just a collection of other tools... the sql tool, phpMyAdmin, has it's own manual.
http://www.phpmyadmin.net/home_page/docs.php
As for why to use xampp, it's meant for simplicity. If you were going to use ALL of the tools in the package (web server, database, php interpreter, etc, etc) it would take a considerable amount of time and effort to install and configure. xampp does everything for you. I don't use xampp, myself.