首页 > 解决方案 > “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

解决方案


要回答这个问题:

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 指令。


推荐阅读