SQL Dialect is Not Configured (Phpstorm)

53,199

Solution 1

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

Solution 2

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

This is on version 2016.3

Share:
53,199
Admin
Author by

Admin

Updated on July 05, 2022

Comments

  • Admin
    Admin almost 2 years

    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')");
    
  • greaterKing
    greaterKing over 8 years
    For Mac Version: PhpStorm > Languages & Frameworks > SQL Dialects
  • Ojonugwa Jude Ochalifu
    Ojonugwa Jude Ochalifu almost 8 years
    What to you mean by "set it for the whole project"?
  • Michael Bolli
    Michael Bolli almost 8 years
    @ojonugwaochalifu to select your project's topmost folder and set the dialect there.
  • KaKa
    KaKa over 7 years
    @ojonugwaochalifu to change SQL dialect PhpStorm uses for a file, a directory, or the entire project, click an item and then choose a dialect from a drop down list.
  • Unni Babu
    Unni Babu over 7 years
    very helpful. Thank you
  • Junaid Atari
    Junaid Atari over 7 years
    Thanks! you just saved me!
  • Csaba Toth
    Csaba Toth about 5 years
    Works for PyCharm and I guess for any IntelliJ derivative as well