Jump to content

MySQL Directory - XAMPP


SalientAnimal

Recommended Posts

Hi All,

 

I have installed a webservice using XAMPP. However I would like my MySQL directory to lie on a different hard drive, hence I installed MySQL prior to installing XAMPP. However I am now having issues access MySQL/Starting the service.

 

Can someone tell me how I can point XAMPP to the correct location for my prefered MySQL installtion directory?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/267169-mysql-directory-xampp/
Share on other sites

What do I need to change in the php.ini file? I've lokoed through it, but I'm not sure what to configure/change.

 

The Webserver (XAMPP) is installed on E:\XAMPP\.....(The entire package is then installed in the XAMPP default locations)

I want the MySQL instance to run on F:\MySQL\....

Assuming you only want to use your own mysql server, instead of being able to use both yours and the one that xampp installs, you will need to stop (don't start) the mysql server that xampp installs and make sure that your mysql server is running (if two services are configured to listen on the same TCP port, only the first one will start.)

 

Your mysql server will then be 'listening' on the default port and your php scripts will connect to it without any other changes.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.