Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

stuartcusack's avatar

Laravel Forge - MySql - Access denied for 'forge'@'localhost'

I've been using Forge for years and I have about 30 active servers provisioned on it. Lately MySQL has been acting up for me.

I've tried provisioning 4 separate servers today, with all kinds of versions of PHP and MySQL, but If I try to connect to mysql, either through an SSH Terminal or through MySQL workbench, I cannot gain access with the username and password that was emailed to me by forge.

To me it seems like the forge user was not configured correctly. Screenshot: https://pasteboard.co/ISzbjWs.png

The forge database is also non-existent: https://pasteboard.co/ISzcnDp.png

Any ideas?

0 likes
5 replies
bugsysha's avatar

Had similar issue once. Deleted server and reinstalled it and it worked. Hope you'll get an easy pass like I did with that simple workaround.

stuartcusack's avatar

Cheers. I've tried four servers today with the same results. I guess I'll leave it a few days and try again.

bugsysha's avatar

Yeah, noticed that you said you've had no luck on multiple occasions, but just wanted to let you know there is hope.

stuartcusack's avatar

Just to update anyone reading this.

I narrowed down the problem to EC2 Nano (and possibly Micro) servers. If I try to provision one of these with MySQL8 then the provisioning fails and the 'forge' user and database are not created.

My best guess is that it is a innodb_buffer_pool_size problem due to the lack of memory on these small instances but it could be something else entirely.

Forge support are looking into this at the moment.

bugsysha's avatar

I haven't tried MySQL 8 cause it was not available back then, but older versions worked great with Laravel Forge and AWS micro and nano instances. Write to Forge support. I'm sure they can help you.

Please or to participate in this conversation.