oleghnidets / OHMySQL

Swift + MySQL = ❤️
https://oleghnidets.github.io/OHMySQL/documentation/ohmysql/
MIT License
235 stars 42 forks source link

Value for socket #23

Closed Shruti2208 closed 4 years ago

Shruti2208 commented 4 years ago

What did you do?

let user = OHMySQLUser(userName: "root", password: "root", serverName: "localhost", dbName: "dev2qa", port: 3306, socket: "/Applications/MAMP/tmp/mysql/mysql.sock")

What happened instead?

ℹ Cannot connect to DB. Check your configuration properties.The connection is broken: MySQL server has gone away

What did you expect?

What should be the value of Socket if using localhost?Not using MAMP, instead using workbench to create tables.

OHMySQL Environment

Demo Project

ℹ Please link to or upload a project we can download that reproduces the issue.