formulahendry / vscode-mysql

MySQL management tool for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.vscode-mysql
MIT License
219 stars 60 forks source link

Can't connect to a localhosts database in lampp #139

Open kvtral opened 4 years ago

kvtral commented 4 years ago

Hello! I tried to make a new connection in a localhost that has mariaDB running, when entering the credentials it throws me a connection error, it is not possible to connect, programming with Python something similar happened to me with the pymysql library, where I had to manually write the socket of MySql. eg:

     connection = pymysql.connect (
                 unix_socket = "/ opt / lampp / var / mysql / mysql.sock",
                 host = 'localhost',
                 user = user,
                 passwd = pswd,
                 db = 'python',

But I don't know or can't find how to modify the socket path for the extension, could you help me please? Thanks!