前提・実現したいこと
プログラミング初心者です。なにが起きてるかよくわからないので言葉足らずかもしれませんが頑張ってお伝えしようと思うのでご容赦ください。
現在ドットインストールのwordpress講座を受講していて、windowspowershellとPuttyとAtomとcyberduckを使用してローカル開発環境を作りそこでwordpressをインストールしようとしています。
puttyでsqlを起動させ、データベースを作成までできました。そしてatomにCyberduckを用いてwordpress5.3.2を転送することもできました。またwp-cron.phpというものにデータベース名、ユーザー名、パスワードも入力できました。さらにドットインストールで指定されたIPアドレスをetcのhostsというところでdev.dotinstall.comと結びつけるようにしろと言われてそれもやりました。しかしdev.dotinstall.comにアクセスすると「このサイトにはアクセスすることができません。dev.dotoinsutall.comで接続が拒否されました」と表示されます。
ドットインストールへ質問しようと思ったのですがwordpressに関しての質問の受付が終了していましたのでteratailにお助けを申し入れました。お門違いなのは承知ですがよろしくい願いします。
発生している問題・エラーメッセージ
「このサイトにはアクセスすることができません。dev.dotoinsutall.comで接続が拒否されました」
該当のソースコード
wordpress
1ソースコード 2```login as: vagrant 3vagrant@192.168.33.10's password: 4Last login: Wed Jan 8 23:35:54 2020 from 192.168.33.1 5[vagrant@localhost ~]$ ls 6Mysql_lessons centos6 php_lessons 7[vagrant@localhost ~]$ cd .. 8[vagrant@localhost home]$ cd .. 9[vagrant@localhost /]$ ls 10bin dev home lib64 media opt root selinux sys usr var 11boot etc lib lost+found mnt proc sbin srv tmp vagrant 12[vagrant@localhost /]$ cd var 13[vagrant@localhost var]$ cd www 14[vagrant@localhost www]$ cd html 15[vagrant@localhost html]$ ls 16MyWordpress 17[vagrant@localhost html]$ cd MyWordpress 18[vagrant@localhost MyWordpress]$ ls 19wordpress 20[vagrant@localhost MyWordpress]$ cd wordpress 21[vagrant@localhost wordpress]$ sudo service mysqld status 22mysqld (pid 1703) を実行中... 23[vagrant@localhost wordpress]$ my sql -u root 24-bash: my: コマンドが見つかりません 25[vagrant@localhost wordpress]$ mysql -u root 26Welcome to the MySQL monitor. Commands end with ; or \g. 27Your MySQL connection id is 4 28Server version: 5.6.46 MySQL Community Server (GPL) 29 30Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. 31 32Oracle is a registered trademark of Oracle Corporation and/or its 33affiliates. Other names may be trademarks of their respective 34owners. 35 36Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 37 38mysql> create database dotinstall_wordpress 39 -> ; 40ERROR 1007 (HY000): Can't create database 'dotinstall_wordpress'; database exists 41mysql> create database if not exists dotinstall_wordpress; 42Query OK, 1 row affected, 1 warning (0.00 sec) 43 44mysql> grant all on dotinstall_wordpress.* to dbuser@localhost identified by 'mysql'; 45Query OK, 0 rows affected (0.01 sec) 46 47 48### 試したこと 49 50はじめdev.dotinstall.comとIPアドレスの結びつけができてないのかと思いIPアドレスを入れてみましたが、上記と同様のエラーが出ました。 51他に何が違っているかの見当がつきません。 52 53### 補足情報(FW/ツールのバージョンなど) 54 55ここにより詳細な情報を記載してください。
回答2件
あなたの回答
tips
プレビュー