mysql - “mysql -uroot”是什么意思?
问题描述
我对安装在 Debian 10 系统上的 MySQL Maria DB 非常陌生,我正在遵循一组关于在 VPS 上设置 Froxlor 控制面板的说明,但遇到了问题。我收到以下错误:
Checking MySQL-root access... SQLSTATE[HY000] [1524] Plugin 'My company' is not loaded
当我进入我的服务器并输入时,mysql -uroot
我从系统收到以下消息:
ERROR 1524 (HY000): Plugin 'My company' is not loaded
mysql -uroot
实际上做了什么,这个错误告诉我什么?
解决方案
要回答这个问题:
mysql -uroot
是相同的:
mysql -u root
这是以下的简写:
mysql --user root
它将启动 mysql 命令行工具并以“root”mysql 用户身份登录。
关于您遇到的错误,它似乎是您的 mysql 服务器实例的底层自定义,您应该与您的托管服务提供商联系,就像在一个不会出现的普通 vanilla 实例中一样。
在正常情况下,您会看到如下提示:
# mysql -uroot
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 41
Server version: 10.3.29-MariaDB-0ubuntu0.20.04.1 Ubuntu 20.04
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)]>
您将能够在该提示下发出 SQL 指令。
推荐阅读
- ios - 当应用程序更新/重新编译存储的图像时 Flutter-iOS 丢失
- javascript - 如何让 Bot 只在特定渠道工作?
- node.js - 如何在 Node JS 中下载包含外部 JSON 信息的 CSV?
- c# - 使用 GSMComm ReadMessage 错误的 SMS 传递报告
- python-3.x - 如何在python3 wsgi api中将类从外部发送到serviceBase
- php - 在 php 中的 sql 的前 3 个条目前面添加图标
- c++ - 如何在多个线程上缩放当前代码
- mysql - 无法连接。无法建立与 jdbc 的连接:mysql Access denied for user 'newuser
- go - 使用golang在graphql中递归
- flutter - 启动画面颜色在颤振中没有改变