localhostから接続可能なユーザーscraperを作成して、そのパスワードをpasswordとしようとしたのですがエラーがでました。対象方法を教えて下さい。
(base) kobayashishunnoMacBook-Pro:~ kobayashitakashi$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 14 Server version: 8.0.15 Homebrew Copyright (c) 2000, 2019, 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. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> CREATE DATABASE scraping DEFAULT CHARACTER SET utf8mb4; Query OK, 1 row affected (0.00 sec) mysql> SELECT USER, HOST, PASSWORD FROM MYSQL.USER; ERROR 1054 (42S22): Unknown column 'PASSWORD' in 'field list' mysql> CREATE USER 'scraper'@'localhost' IDENTIFIED BY 'password'; ERROR 1396 (HY000): Operation CREATE USER failed for 'scraper'@'localhost'
scraperが存在しなっかたので上記のコードを試したところエラーが発生しました。