Linux 一键包连接MySQL数据库

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

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

图形界面访问

  1. 执行命令/opt/zbox/zbox start 启动喧喧集成运行环境。

  2. 待 Apache 和 mysql 启动后在浏览器中访问服务器地址,具体可参考  Windows 一键包连接 MySQL 数据库 中图形界面访问的相关步骤。

命令行访问

  1. 执行命令/opt/zbox/zbox start 启动喧喧集成运行环境。

  2. 执行命令/opt/zbox/bin/mysql -u root -p 并输入默认密码 123456连接数据库:

    $ /opt/zbox/bin/mysql -u root -p
    Enter password: ******
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MariaDB connection id is 14
    Server version: 10.5.5-MariaDB Source distribution
    Copyright (c) 2000, 2018, 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)


发表评论
肆 加 肆 =
评论通过审核后显示。