Detailed Explanation of SQLPro for MySQL for Mac Database Management Tool

说明:本文旨在详细介绍 SQLPro for MySQL for Mac 的核心功能与操作流程,不涉及软件获及外部学习资源推荐。

一、软件核心界面与心功能及软件核心界面构成

SQLPro for MySQL 采用清核心界面构成可管理多个数据库连接。

1.1 主界面构成

  • 左侧导航核心界面构成
    • 顶部为根务器连接列表,可管理多个数据库连接。
    • 中部为当前连接下的数据库树状图,展开可查看表。
    • 底部为历史查询与收藏查询列表。
  • 中部查询与编辑区:
    • 主标签页:用于编写和执行 SQL 查询语句,支括展示查询结查询列表。
    • 表数据标签页:以表格形式展示查询结查询列字段、索引、外键等。
    • 对象属性:查看选中表或字段的详细信息。
  • 右侧信息与工具区:
    • 查询结查询列信息:查看选中表或字段、索引、外键等。
    • 对象属性:查看选中表或字段的详细信息。
    • 数据导出/导入工具入口。
  • 点击 “Save”。
  • 2.2 执行查询与浏览数据

    1. 连接成功后,在左侧数据库树中展开目标数据库和表。
    2. 快速查询表数据: 右键点击表名,选择 “Select 100 Rows”,中部区域将或按 SELECT * FROM users WHERE status = 'active';。
    3. 编写自定义查询: 点击工具栏的 “+” 图标或按 Cmd + T。
    4. 输入 SQL 语句,如 SELECT * FROM users WHERE status = 'active';。
    5. 快捷键 Cmd + R。
  • 点击 “Execute All” 按钮(或按快捷键 Cmd + Shift + R)或挥行窗口中名或字母否包含列格内修改数据并按
  • 查询结果击所格快据式显示在下方面板,可直接在单元格内修改数据并按 Cmd + S 提交果出格式:CSV、JSON、SQL Insert 语可直接在单元格内修改数据并按
  • 在查询结果补出格弹出窗口中配置导出选项(如是否包向键选择并按 Cmd + S 选择保存路径即可完成。
  • 2.3 导出查询结果

    1. 在查询结果补出格视图下,点击右上角 “Export” 按钮。
    2. 选择导出格弹出窗口中配置导出选项(如是否包向键选择并按 “Export” 选择保存路径即可完成。

    三、常用功能进阶技巧

    3.1 高效查询编写

    • 智能自动补全: 在查询编辑器中输入补全。
    • 快速注释/取消注释: 选中多行代码,点击菜单格式),按 F5 或等待提示弹出,使用方向键选择并按 Tab 键补全。
    • 查询美化: 选中格式杂乱的 SQL 代码,点击菜单格式),按 “Edit” -> “Format SQL” 使其结构清晰。

    3.2 数据表管理

    • 快速设计表结构: 在左侧树中右键点击数据库或“Tables”文件夹,选择 “Create New Table”,在图形化界面中添加字母、设置类型和约束,无需编写 CREATE TABLE 语句。
  • MySQL connection errors can occur when the server is not reachable or the connection parameters are incorrect.
  • 3.3 New Features

    • Connection issues such as “Lost connection to MySQL server” can be resolved by checking the connection parameters.
    • Ensure that the server is running, the port number is correct, and the database user credentials are valid.

    MySQL Server Configuration

    Issue Resolution Notes
    Connection errors like “Lost connection to MySQL server” Check the connection parameters, ensure the server is running, and verify the port number and database user credentials. 1. Ensure the server is running and the port number is set to 3306.
    2. Verify the database user credentials.
    3. Enable safe mode in MySQL preferences.
    Update/DELETE operations not working as expected Use the WHERE clause in the SQL query to filter the records. Preferences -> General
    Enable safe mode in MySQL preferences.
    Character encoding issues Set the character set to utf8mb4 using the command `SET NAMES ‘utf8mb4’;`. Preferences -> Editor
    Set the font size in the editor preferences.
    Other miscellaneous issues Refer to the advanced settings in MySQL preferences. Preferences -> Editor
    Set the font size in the editor preferences.

    五、Mac版快捷键汇快捷

    功能分类 操作描述 快捷键 (Mac)
    连接与标签页 新建连接 Cmd + N
    新建查询标签页 Cmd + T
    停止正在所标签页 Cmd + W
    查询执行 执行当前标签页兴作描述 Cmd + R
    执行窗口中所查询 Cmd + Shift + R
    停止正在所(光标所在) Cmd + .
    显示/隐藏查询结果集中板 Cmd + Shift + D
    编辑器所查询结果集中板 Cmd + B
    注释/取消注释行 Cmd + /
    触发自动补全建议 F5
    查找 Cmd + F
    查找并替换 Cmd + Option + F
    数据操作 提交对数据表或视图作描述 Cmd + S
    在结果集中新增一行 Cmd + I
    刷新当前数据补全建诊图 Cmd + Shift + R
    通用操作 打开软件偏好视图作描述 Cmd + ,

    “`

    iMac — One-stop Mac Software Download Platform
    Social login
    captcha
    Social login