question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use MySql instead of MS Sql Server

See original GitHub issue

This link here Entity Framework - MySql Integration shows how to connect with MySql. However, it appears the classes have since changed. In it, it says:

Open your DbContext’s configuration class (Configuration.cs) and place below code in it’s constructor SetSqlGenerator("MySql.Data.MySqlClient", new MySql.Data.Entity.MySqlMigrationSqlGenerator());

Which file is this in the version 3.3.2? And is the document above still valid? (I am using ASP.NET Core 2x).

Thank you.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ismcagdascommented, Nov 28, 2017
1reaction
Donistivanovcommented, Nov 28, 2017

I just had to do this, so for the future…

Where xxx is the application name,

  1. Put Pomelo.EntityFrameworkCore.MySql into the xxx.EntityFrameworkCore project’s .csproj file (see step 2 in the Pomelo getting started guide)
  2. In your xxxDbContextConfigurer class put builder.UseMySql(...) rather than builder.UseSqlServer(...)
  3. Change the connection string found in the appsettings.json file in the xxx.Web.Host project

Hope it helps

Read more comments on GitHub >

github_iconTop Results From Across the Web

MySQL vs MSSQL: Comparing Similarities and Differences
MySQL and MSSQL Server share some similarities, as they are both relational databases. The majority of developers, though, specialize in either ...
Read more >
MySQL vs MS SQL Server – Which Reigns Supreme?
Language and Syntax: MySQL uses a more standard SQL language, while MS SQL Server uses Transact-SQL (T-SQL), which is an extended version of...
Read more >
MySQL vs SQL Server: 10 Critical Differences - Learn
Both MySQL and SQL Server are developed as binary collections. But, SQL Server is far more secure than MySQL. MySQL allows developers to...
Read more >
MySQL vs SQL: Overview, Similarities, Differences
The main difference between MySQL and SQL is that MySQL is a specific type of SQL database management system, while SQL is a...
Read more >
Difference between MySQL and MS SQL Server
SQL is an acronym for Structured Query Language. · MySQL is an open source Relational Database Management System (RDBMS) based on Structured ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found