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.

Fathom Analytics $10 discount on your first invoice using this link

David Carr - Laravel Developer

Hi, I’m David Carr

A Senior Developer at Vivedia
I love to use the TALL stack (Tailwind CSS, Alpine.js, Laravel, and Laravel Livewire)

I enjoy writing tutorials and working on Open Source packages.

I also write books. I'm writing a new book Laravel Testing Cookbook, This book focuses on testing coving both PestPHP and PHPUnit.

Sponsor me on GitHub

Subscribe to my newsletter

Subscribe and get my books and product announcements.

Laravel Testing Cookbook

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

Fathom Analytics $10 discount on your first invoice using this link

Subscribe to my newsletter

Subscribe and get my books and product announcements.

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