繁体   English   中英

“mysql -uroot”是什么意思?

[英]What does “mysql -uroot” mean?

我对安装在 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 指令。

我用这个文件来解决我的问题:

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM