Using Mamp database with Nova Framework

David Carr

Nova Framework

It can be really useful when working locally to use Mamp’s database it’s very easy to setup new databases and manage them. By default Nova probably won’t be able to connect to the database unless you map a project from Mamp. In my case I like to install Nova Framework into a folder open terminal run a server and use Mamp for the database only.

All you need to do to solve this is to open app/Config/Database.php and add the following to your mysql array:

'unix_socket'   => '/Applications/MAMP/tmp/mysql/mysql.sock',

Then you can use Nova from the command line / built in server and manage the database with Mamp / Sequel Pro.

Laravel Modules Your Logo Your Logo Your Logo

Become a sponsor

Help support the blog so that I can continue creating new content!

Sponsor

My Latest Book

Modular Laravel Book - Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more

Subscribe to my newsletter

Subscribe and get my books and product announcements.

Learn Laravel with Laracasts

Faster Laravel Hosting

© 2006 - 2024 DC Blog. All code MIT license. All rights reserved.