簡體   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