<awsでここまでやったこと>
プラットフォーム:Amazon Linux 、詳細:Linux/UNIX
セキュリティグループのタイプ:MYSQL/Aurora
MongoDBアンインストール済み
『sudo yum localinstall http://dev.mysql.com/get/mysql57-community-
release-el7-7.noarch.rpm』でyumに追加したリポジトリをインストール。
インストール後にmysqladmin -u root passwoedで実行したが入れない。
<実現したい事>
AWSにてMySQLをインストールして実際に稼働して使用したいのですが
『sudo service mysql start』を実行しMySQLを稼働させた状態で
『mysqladmin -u root password』を実行してrootユーザーでパスワードを設定したいです。
最終的には問題なくMySQLを動かしたいだけです。
<問題になっている事>
『mysqladmin -u root password』を実行してもっ回のようなエラーが出る。
mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)'
また、『mysqld -version』コマンドで確認すると結果は出るのですがErrorがたくさんあって不安です。下記が結果になります。
2022-02-10T15:32:19.419415Z 0 [ERROR] --verbose is for use with --help; did you mean --log-error-verbosity? 2022-02-10T15:32:19.419472Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2022-02-10T15:32:19.419533Z 0 [Warning] Can't create test file /var/lib/mysql/ip-10-0-2-10.lower-test 2022-02-10T15:32:19.419565Z 0 [Note] mysqld (mysqld 5.7.37) starting as process 6070 ... 2022-02-10T15:32:19.422437Z 0 [Warning] Can't create test file /var/lib/mysql/ip-10-0-2-10.lower-test 2022-02-10T15:32:19.422451Z 0 [Warning] Can't create test file /var/lib/mysql/ip-10-0-2-10.lower-test 2022-02-10T15:32:19.422668Z 0 [ERROR] Could not open file '/var/log/mysqld.log' for error logging: Permission denied 2022-02-10T15:32:19.422691Z 0 [ERROR] Aborting 2022-02-10T15:32:19.422705Z 0 [Note] Binlog end 2022-02-10T15:32:19.422790Z 0 [Note] mysqld: Shutdown complete
<やったこと>
『skip-grant-tables』や『mysqld_safe --skip-grant-tables』を使って一度入り込んでやる方法。
どれもコマンドが見つからないなどできません。
わかる方いれば教えていただけると嬉しいです。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2022/02/11 07:09
2022/02/11 07:26
2022/02/11 07:39