Jump to content

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.

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.