mysql1_dart icon indicating copy to clipboard operation
mysql1_dart copied to clipboard

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

Open nb312 opened this issue 5 years ago • 1 comments

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 avatar Aug 13 '20 06:08 nb312

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

nb312 avatar Aug 13 '20 06:08 nb312