• Post Reply Bookmark Topic Watch Topic
  • New Topic

Integrate mamp functionalities into my app  RSS feed

 
Andras Lakos
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Mates! I think it is a bit difficult to me to ask properly my request, But when I start building my application in Eclipse, I used Mamp to manage JDBC connection, executing SQL commands, creating and editing tables  . but now I am wondering if it is possible to integrate all this in my application using maybe tomcat and a servlet ( display my tables) (I am really a beginner in Java EE but not Java). My goal finally is to run my application and do all what mamp use to do  ! Thank you in advance for any answer.
 
Tim Moores
Saloon Keeper
Posts: 4019
94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure I understand the question, but I'll give it a shot.

MAMP is just a name for a collection of tools - MySql, Apache and some web scripting languages running on MacOS. You can just as well use those separately as you see fit, as MySql is separate from Apache and its modules. Tomcat is not a standard part of it, but you can use it with MySql (which then may or may not make Apache unnecessary). Eclipse is just an IDE - its use is optional as far as those tools go.

I'm not sure if this helps; if it doesn't, try asking a more focused question.
 
Andras Lakos
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Sir for your answer, But I will try to specify more. My main goal is: "Not to run the mysql server manually!" I need that everything goes in the background when I run my application only. Otherwise, when I used to use Mamp, I could manage to see my tables with PHPMyAdmin. How can I still do that without Mamp or MysqlWorkBench or others...   That is why I thought about creating a web app to display my tables with Java EE.
 
Tim Moores
Saloon Keeper
Posts: 4019
94
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That would actually be the standard way to run a DB like Postgres or MySQL: let it run as a background service, started when you log in or reboot, and otherwise invisible. That it's visible to you is probably a side effect of being part of MAMP, so you can control it through Eclipse.

My Mac MySQL installation came with a preference pane to let you start and stop it, or you can set it to start automatically on startup.
 
Andras Lakos
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you once again, I appreciate your answer.   So i will keep using Mamp but every time i started the server, there is a prompt username and password pop up, and obviously there is no set in mamp to avoid this.What would you suggest for me to use as a Mysql server manager other then Mamp  A very simple one please !
 
Tim Moores
Saloon Keeper
Posts: 4019
94
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used the official distribution with the Native Package installer as described in https://dev.mysql.com/doc/refman/5.7/en/osx-installation.html. Also check out sections 2.4.3 and 2.4.4 for better OS X integration.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!