I may create a script based on the helpful commands Astockwell posted in response to this question. I wanted to find something simple to use for the start command in MySQLWorkbench but for now I just left it blank because the default MAMP script does not work. Unfortunately I can't find a proper start script created by MAMP PRO. I cheated and used Path Finder to set the file as executable but you can easily find information about how to do it through the command line with chmod. The other thing that I found on my system was that the file didn't have the execute bit set on it. Stop MySQL Shell Script for MAMP PRO ~/Library/Application\ Support/appsolute/MAMP\ PRO/stopMysql.sh In order to type that on the command line you need to escape the spaces by adding a backslash in front of them like the command below. MAMP ist eine freie, lokale Serverumgebung, die mit wenigen Klicks unter Windows und macOS installiert werden kann. ~/Library/Application Support/appsolute/MAMP PRO/stopMysql.sh MAMP PRO also comes with a text editor and built-in functionality to move your site to a remote host provider. It also takes care of configuring different versions of PHP. If you've changed the password for the root user (which you should), the updated password will also be reflected in the script. MAMP PRO is a configuration application that helps you set up and run the Apache or Nginx web servers and the MySQL 5.7 database server. MAMP PRO creates a shell script in your Library folder. If you are using MAMP PRO there is an easier way to stop MySQL. Sh -c '/Applications/MAMP/Library/bin/mysqladmin -u root -proot -socket=/Applications/MAMP/tmp/mysql/mysql.sock shutdown'Īs a bonus, the indicators in the MAMP PRO.app GUI show the correct status of these apps in real time, so you can continue to rely on that. (for some reason you must hit enter again to regain your prompt) Sh -c '/Applications/MAMP/Library/bin/mysqld_safe -defaults-file=/Applications/MAMP/tmp/mysql/my.cnf -port=3306 -socket=/Applications/MAMP/tmp/mysql/mysql.sock -user=alex -pid-file=/Applications/MAMP/tmp/mysql/mysql.pid -log-error=/Applications/MAMP/logs/mysql_error_log.err -tmpdir=/Applications/MAMP/tmp/mysql/tmpdir -datadir=/Library/Application\ Support/appsolute/MAMP\ PRO/db/mysql
0 Comments
Leave a Reply. |