MAMP Mysql Localhost and sveltekit? #11136
JimNayzium
started this conversation in
General
Replies: 1 comment
-
As quickly as I hit enter and tried one more thing I figured it out! In MAMP I had to "allow network access" to other computers, instead of using SOCKET ONLY defaults as it were. Leaving this here in case anyone else searches for localhost mysql sveltekit. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I run a localhost mysql server with MAMP and it runs on port 3306, and apache is running php on port 8819, but my sveltekit app in dev mode is running on localhost:5173. I can connect easily to my mysql database using a simple php script on port 8819 but I cannot get anything to work on sveltekit +server.js file to connect to mysql localhost.
I am using mysql2/promise etc.. like I would do using express.
Is there anything special I need to know to connect sveltekit to a localhost database on port 3306?
Beta Was this translation helpful? Give feedback.
All reactions