SQL Dialect is Not Configured (Phpstorm)

PhpMysqlPhpstorm

Php Problem Overview


I am working on Google oauthorization2 and I encounter problem that >SQL dialect is not configured

That's why my query is not executing and data is going to table.

I have listed below both of queries where I encounter problem.

Tools: PhpStorm 8+ MySQL Localhost

$user_exist = $mysqli->query("SELECT COUNT(google_id) as usercount FROM google_users WHERE google_id=$user_id")->fetch_object()->usercount;

$mysqli->query("INSERT INTO google_users (google_id, google_name, google_email, google_link, google_picture_link)
		VALUES ($user_id, '$user_name','$email','$profile_url','$profile_image_url')");

Php Solutions


Solution 1 - Php

Head to File > Settings > Languages & Frameworks > SQL Dialects and set it for the whole project.

Solution 2 - Php

This is a screenshot of how to do that inside the settings: enter image description here

This is on version 2016.3

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRAZA MUSTAFAView Question on Stackoverflow
Solution 1 - PhpMichael BolliView Answer on Stackoverflow
Solution 2 - PhpS.MasonView Answer on Stackoverflow