0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

bash: syntax error near unexpected token `host' が出た時はログインを忘れてる!!(初心者向け)

Posted at

SQL8.0を操作しようとした時
bash: syntax error near unexpected token `host'
こんなエラーが出た人向けに書きます。

まずは結論からいうとMySQLにログインしていないことが原因です。

basic_django_mssql_graph yuya$  mysql.server start

SQLをスタートさせて

次が肝心のログインです。

basic_django_mssql_graph yuya$ mysql -u root

ちゃんと入れば

mysql> select user, host from mysql.user;

ちゃんとログインすれば
bash: syntax error near unexpected token `host'
こんなエラーなんか起きません。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?