简体   繁体   English

“mysql -uroot”是什么意思?

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

I am very new to MySQL Maria DB which is installed on a Debian 10 system I am following a set of instructions on setup of Froxlor Control Panel on a VPS and have run into a problem.我对安装在 Debian 10 系统上的 MySQL Maria DB 非常陌生,我正在按照一组有关在 VPS 上设置 Froxlor 控制面板的说明进行操作,但遇到了问题。 I got the following error:我收到以下错误:

Checking MySQL-root access...   SQLSTATE[HY000] [1524] Plugin 'My company' is not loaded

When I go into my server and type mysql -uroot I got the following message from the system:当我进入我的服务器并输入mysql -uroot我从系统收到以下消息:

ERROR 1524 (HY000): Plugin 'My company' is not loaded

What does mysql -uroot actually do and what does this error tell me ? mysql -uroot实际上做了什么,这个错误告诉我什么?

To answer the question:要回答这个问题:

mysql -uroot

Is the same as:是相同的:

mysql -u root

Which is the shorthand for:这是以下的简写:

mysql --user root

Which starts up the mysql command line tool and logs in as 'root' mysql user.它启动 mysql 命令行工具并以“root”mysql 用户身份登录。

Regarding the error you're getting, it appears to be underlying customizations of your mysql server instance, you should check with your hosting provider, as in a normal vanilla instance that wouldn't appear.关于您收到的错误,它似乎是您的 mysql 服务器实例的基础自定义,您应该与您的托管服务提供商联系,就像在不会出现的普通 vanilla 实例中一样。

In a normal instance, you would see a prompt like that:在正常情况下,您会看到这样的提示:

# 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)]>

And you would be able to issue SQL instructions on that prompt.您将能够在该提示上发出 SQL 指令。

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

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

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