Using PowerShell Core to Query MySQL

preview_player
Показать описание
This video shows how to connect to MySQL server using PowerShell CORE on a Debian 9 Linux computer. You need to load a few modules and move some files.

PowerShell Core Download

Mono-Project Download

MySQL Dot NET - Select the Mono Install

Code repository

How to support my channel
1 - Like videos
2 - Subscribe to my channel
Рекомендации по теме
Комментарии
Автор

Thank you so much I have been banging my head against a wall trying to get the MySQL connector working in dotnet core and it was so simple thanks to your video.

Pcketfullfsunshine
Автор

LoL, Lovevd your comment at 7:55 about the naming of the command

cemmetje
Автор

Just wanted to say thanks for this, been trying to get this working since Powershell Core was released! Google has failed me also.. until now.. now google brings me to your video!

chrisbolton
Автор

Thanks so much for this! It's helped me tremendously in my project.

It works great in ubuntu 18.04. What I noticed through is if I try the same process with powershell core running in aws lambda I get the following error:

{
"errorType": "FileNotFoundException",
"errorMessage": "Could not load file or assembly 'System.Drawing.Common, Version=4.0.2.2, Culture=neutral, The system cannot find the file specified.\n",
"stackTrace": [
"at inputStream, ILambdaContext context)",
"at lambda_method(Closure, Stream, Stream, LambdaContextInternal )"
]
}

I found a system.drawing.common dll in the sql connector download. But even if I try to add-type it like the mysql.data.dll file it states it cannot be found. Any suggestions on how to troubleshoot it further?

runtomrun