Windows 一键包连接 MySQL 数据库

2021-11-10 13:07:06
丁永亮
4173
最后编辑:丁永亮 于 2022-07-27 15:52:48
分享链接

喧喧 Windows 一键包内置 MySQL 数据库,可通过图形界面和命令行两种方式进行数据库访问及操作,具体步骤如下:

图形界面访问

  1. 首先进入一键包解压后的目录,点击 start.exe 启动喧喧集成运行环境:

  1. 在喧喧集成运行环境面板上点击启动后端服务:

  1. 待后端服务启动完成后点击访问喧喧后台按钮,随后在打开的浏览器页面中点击数据库管理:

  1. 输入用户名 root 和默认密码 123456 并点击登录:

  1. 喧喧默认的数据库为 xxb,点击即可访问:

  1. 进入 xxb 数据库后即可进行增删改查等操作:

命令行访问

  1. 在启动喧喧集成运行环境和后端服务后,使用 cmd 或者 PowerShell 进入 mysql 目录:

  1. bin目录下放置了一些 MySQL 常用命令工具,使用 bin 目录的 mysql.exe 可进行数据库连接操作:

  1. 执行命令 .\mysql.exe -u root -p  并输入默认密码 123456 即可连接数据库:
    $ ./mysql.exe -u root -p
    Enter password: ******
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MariaDB connection id is 2
    Server version: 10.1.21-MariaDB mariadb.org binary distribution
    Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    MariaDB [(none)]> show databases;
    +--------------------+
    | Database           |
    +--------------------+
    | information_schema |
    | mysql              |
    | performance_schema |
    | xxb                |
    +--------------------+
    4 rows in set (0.00 sec)
    MariaDB [(none)]> use xxb;
    Database changed 
发表评论
壹 加 伍 =
评论通过审核后显示。