Search code examples
mysqlmamp-promacos-catalina

MAMP Pro and MySQL having Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root


After updating to macOS Catalina I’m not able to run MySQL with MAMP Pro. I get an error. Here from mysql_error.log

2019-10-09T10:53:16.6NZ mysqld_safe Logging to '/Applications/MAMP/logs/mysql_error.log'.
2019-10-09T10:53:16.6NZ mysqld_safe Starting mysqld daemon with databases from /Library/Application Support/appsolute/MAMP PRO/db/mysql57
2019-10-09T10:53:16.917470Z 0 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
2019-10-09T10:53:16.919285Z 0 [Note] /Applications/MAMP/Library/bin/mysqld (mysqld 5.7.26) starting as process 3320 ...
2019-10-09T10:53:16.932570Z 0 [Warning] Setting lower_case_table_names=2 because file system for /Library/Application Support/appsolute/MAMP PRO/db/mysql57/ is case insensitive
2019-10-09T10:53:16.932669Z 0 [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

2019-10-09T10:53:16.932697Z 0 [ERROR] Aborting

2019-10-09T10:53:16.932751Z 0 [Note] Binlog end
2019-10-09T10:53:16.935298Z 0 [Note] /Applications/MAMP/Library/bin/mysqld: Shutdown complete

2019-10-09T10:53:16.6NZ mysqld_safe mysqld from pid file /Applications/MAMP/tmp/mysql/mysql.pid ended

I was searching the interenet and i’ve already tried a lot, but i can’t get it running.

Anyone experienced the same problem and could help?

Thx in advance!


Solution

  • I have a temporary fix, until the developers release a fix. I am using MAMP Pro; I don't know if the interface is the same in non-Pro. The temp fix:

    Open MAMP Pro. Stop servers if they are running. Open the MySQL template from the menu: File > Edit Template > MySQL (mysql.cnf) > 5.7.26

    1. Scroll down or find [client]. Beneath [client] add the following line: user = root

    2. Scroll down or find [mysqld]. Beneath [mysqld] add the following line: user = root

    3. Start servers.

    This worked for me. Hope it helps you.