前提・実現したいこと
MAMPを使ってPHPの勉強がしたい。
そのためにローカル開発環境を整えたい。
プログラム勉強初めて二週間の超初心者です。
発生している問題・エラーメッセージ
MAMP4.1 をインストールしましたがが、開いたところ
MySQLチェックが付きません。エラーは以下の通りです。
MySQL said::Cannot connect: invalid settings. phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
該当のソースコード
apache_error.log
1[notice] Digest: generating secret for digest authentication ... 2[Mon Jul 29 21:04:36 2019] [notice] Digest: done 3[Mon Jul 29 21:04:39 2019] [notice] Apache/2.2.31 (Win32) DAV/2 mod_ssl/2.2.31 OpenSSL/1.0.2h mod_fcgid/2.3.9 mod_wsgi/3.4 Python/2.7.6 PHP/7.2.10 mod_perl/2.0.8 Perl/v5.16.3 configured -- resuming normal operations 4[Mon Jul 29 21:04:39 2019] [notice] Server built: May 6 2016 10:19:53 5[Mon Jul 29 21:04:39 2019] [notice] Parent: Created child process 11036 6[Mon Jul 29 21:04:41 2019] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
試したこと
OS(C:)/MAMP/confの中にmy.cnfのフォルダを作り、コードを入れて
再起動など。
コードはこちら
[mysqld]
default-storage-engine = InnoDB
innodb
innodb_force_recovery = 1
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
あなたの回答
tips
プレビュー