Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dipakrataniagile's avatar

Database Driver For Azure SQL

Hello Friends,

Right now in my project, we are using MySQL Database. Now we want to implement the Azure SQL Database.

This is my current database driver mentioned below:

'default' => env('DB_CONNECTION', 'mysql')

My Question is Which changes in need to apply in the database driver / what value may I set in place of MySQL in DB_Connection value?

Which steps I need to follow for migrate MySQL to Azure SQL. I am new in Azure SQL. Please help me. Thank In Advance.

0 likes
2 replies
kobear's avatar

@dipakrataniagile Have you tried the regular Microsoft SQL driver? Depending on which Azure SQL platform you are using, it is just PaaS Microsoft SQL server.

Please or to participate in this conversation.