PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, March 14, 2022

[FIXED] Connect to MAMP local server (MacBook) from Windows computer

 March 14, 2022     macos, mamp, mysql     No comments   

Issue

I'm having trouble connecting to a local server hosted on a MacBook/MAMP. My .NET application (running on a Windows computer) smoothly connects to another Windows machine (MySQL server) with the same connection string "server=[computer's name]; user id=xxxx; password=xxxx; database=xxxx" but when I use this MacBook's name, I get the following error:

"Unable to connect to any of the specified MySQL hosts"

Note: File Sharing is turned on

Please help.


Solution

For those who might experience the same issue, the problem was that my MacBook wasn't visible to Windows machines. Go to System Preferences > Sharing > File Sharing > Options and check your Account and Share files and folders using SMB.



Answered By - Will
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing