When logging in with mysql-h%-uroot-p
ERROR 2005 (HY000): Unknown MySQL server host '%' (0)
will appear
How can I solve this problem?
mysql
The %
used when granting permissions represents a wildcard in MySQL, so the -h
optional argument must be a separate hostname or IP address instead of %
when connecting.
>mysql-h localhost-u root-p
Note that the -h
option is optional if the MySQL server you are connecting to is running on the (localhost) machine where you want to run the command.
>mysql-u root-p
reference:
Connecting to MySQL Server|MySQL 5.6 Reference Manual
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
582 PHP ssh2_scp_send fails to send files as intended
916 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
573 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.