DB test says connected but still get DB "Unable to resolve symbol"

In the view -> Tool Windows -> database I select the schema, click properties and then click the Test Connection to which it says it succeeded. However, I still see all these Unable to resolve symbol for the names of tables and fields which means it's really not using it.

 

I've followed everything I could find on the Jetbrasins site and web but nothing seems to work.

0
4 comments

Things to check first:

  1. That your Settings | Languages & Frameworks | SQL Resolution Scopes are okay. Often it makes sense to provide mappings to a certain schema instead of All Data Sources or All Schemas of a data source.
  2. That Settings | Languages & Frameworks | SQL Dialect is set up right. Please note that MariaDB and MySQL are not interchangeable.

If everything's configured correctly, please try using a simple SQL statement like SELECT * FROM tableName - will completion also fail there?

0

Thanks for the response.

Changing those fixed some of the problems, mainly when it complained the schema was unresolved. But it still complains about field names within a schema table.

A statement like: SELECT <field name> FROM <schema>.<table>

It no longer complains the schema isn't resolved but now complains the field name isn't resolved.

So it's definitely better but not 100%

0

Do I get it right that in SELECT * FROM, you get completion for schemas and tables, but in SELECT <caret> FROM schema.table, you don't?

If so, please share screenshots of what you have configured in the SQL Resolution Scopes view (make sure to make the dropdown and everything that is checked in it visible), in SQL Dialects, and a screenshot of what you see in the data source properties after you click Test Connection.

Thank you!

0

Yesterday it didn't work. Today, after restarting phpStorm, it works. Don't understand the reason why but I'll take it. Thanks for your responses.

0

Please sign in to leave a comment.