Home  >  Article  >  Database  >  Why does navicat’s new connection contain previous data?

Why does navicat’s new connection contain previous data?

下次还敢
下次还敢Original
2024-04-24 15:54:14555browse

The previous data appearing when connecting to Navicat may be due to: 1. Previous connection cache; 2. Automatic connection; 3. The connection string specifies a specific schema. Workaround: Clear the connection cache, disable automatic connection, edit the connection string, or select the schema manually.

Why does navicat’s new connection contain previous data?

The reason why previous data appears when Navicat creates a new connection

When using Navicat to establish a database connection, if the connection is found contains previous data, which may be due to the following reasons:

1. Records of previous connections:

  • Navicat will cache previously established connection information, including Database credentials and schema. When establishing a new connection, Navicat may automatically load previously cached data if the same database as the previous connection is used.

2. Automatic connection:

  • If Navicat's automatic connection function is enabled, Navicat will automatically connect to the most recently used database. When establishing a new connection, Navicat may automatically load the previous data if the target database is the same as the automatically connected database.

3. Connection string:

  • Specifies a specific schema in the connection string. If the DEFAULT_SCHEMA option is included in the connection string, Navicat will connect to this schema by default.

Solution:

  • Clear the connection cache: Close Navicat, and then delete "Connections" in the Navicat installation directory folder. After restarting Navicat, the previous connection information will be cleared.
  • Disable automatic connection: In Navicat's preferences, disable the "Automatic Connection" function.
  • Edit the connection string: Edit the connection string to ensure that no specific schema is specified.
  • Manually select schema: After establishing the connection, manually select the required schema in Navicat's connection tree.

The above is the detailed content of Why does navicat’s new connection contain previous data?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn