Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Exception: SocketException: Connection failed (OS Error: Operation not permitted, errno = 1), address = localhost, port = 3306 #56

Open
nb312 opened this issue Aug 13, 2020 · 1 comment

Comments

@nb312
Copy link

nb312 commented Aug 13, 2020

when I use it on mac with the flutter.

var settings = new ConnectionSettings(
     host: 'localhost',
     port: 3306,
     user: 'xxxx',
     password: 'xxx',
     db: 'xxxx');
 var conn = await MySqlConnection.connect(settings);

it gets the error.

@nb312
Copy link
Author

nb312 commented Aug 13, 2020

search some one: I have solve it as follow:
ok, worked by editing the following file:

Runner/DebugProfile.entitlements

com.apple.security.app-sandbox com.apple.security.cs.allow-jit com.apple.security.network.server com.apple.security.network.client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant