gpt4 book ai didi

Mysql打印帮助而不是连接到服务器

转载 作者:行者123 更新时间:2023-11-29 18:22:21 24 4
gpt4 key购买 nike

我正在尝试连接到远程 MySQL 服务器:

C:\Program Files\MySQL\MySQL Server 5.7\bin>mysql.exe -u USERNAME -p PASSWORD -h www.example.net DB_NAME

结果:

mysql.exe  Ver 14.14 Distrib 5.7.17, for Win64 (x86_64)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Usage: mysql.exe [OPTIONS] [database]
-?, --help Display this help and exit.
-I, --help Synonym for -?
--auto-rehash Enable automatic rehashing. One doesn't need to use
'rehash' to get table and field completion, but startup
and reconnecting may take a longer time. Disable with
--disable-auto-rehash.
(Defaults to on; use --skip-auto-rehash to disable.)
-A, --no-auto-rehash
No automatic rehashing. One has to use 'rehash' to get
table and field completion. This gives a quicker start of
mysql and disables rehashing on reconnect.


... and so on, the help page is long.

为什么 mysql.exe 实用程序忽略我的命令?

最佳答案

密码前面不能有空格:

mysql.exe -u USERNAME -pPASSWORD

关于Mysql打印帮助而不是连接到服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46466451/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com