How to change the location where MAMP creates the database?

Asked

Viewed 601 times

1

I’d like to change the location where the creates the database.

The pattern would be this:

/Applications/MAMP/db/

And I would like to create by default the database on my server that would be:

/Volumes/Sites/

Does anyone know any method that serves to change this default configuration of it?

2 answers

2

I think the most practical thing is that you create a symbolic link in /Applications/MAMP/db pointing to /Volumes/Sites.

If the folder db has already been created, move it first to destination:

mv /Applications/MAMP/db /Volumes/Sites

(assuming the folder Sites doesn’t exist yet)

Then create the symbolic link:

ln -s /Volumes/Sites /Applications/MAMP/db
  • So @rodrigorgs in case that folder I refer to is on a server off my desktop.

0


I did that, installed the WAMP on my server and took his IP number.

And now in my Browser just leave the address as below:

(IP of my server)/localhost/WAMP/

And then I can access the home page and when I create a database, it leaves it on my server.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.