0
1

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.

AWS Cloud9でLaravel開発環境にphpMyAdminをインストールする

Last updated at Posted at 2019-12-27

#phpMyAdminをインストールするための備忘録

##前提条件
・PHP7.1~にアップデート済み
・Larabelインストール済み
・Larabelプロジェクト作成済み

##デフォルトのMySQL5.5を削除

sudo service mysqld stop
sudo yum -y erase mysql-config mysql55-server mysql55-libs mysql55

##MySQL5.7をインストール

sudo yum -y install mysql57-server mysql57
sudo service mysqld start

##最新版のphpMyAdminをダウンロードして解凍
2019/12/27現在、最新版は5.0みたい。

cd [プロジェクトフォルダ]/public/
sudo wget https://files.phpmyadmin.net/phpMyAdmin/5.0.0/phpMyAdmin-5.0.0-all-languages.zip
sudo unzip phpMyAdmin-5.0.0-all-languages.zip
rm phpMyAdmin-5.0.0-all-languages.zip
ln -s phpMyAdmin-5.0.0-all-languages phpMyAdmin

##MySQLにログインしてROOTユーザーのパスワードを設定

mysql -u root -p
update mysql.user set authentication_string=password("[パスワード]") where user='root';
flush privileges;
exit;

##MySQLを再起動

sudo service mysqld restart

##Larabelプロジェクトを実行

cd [プロジェクトフォルダ]
php artisan serve --port=8080

##phpMyAdminにアクセス

[Previewで表示されるURL]/phpMyAdmin/index.php
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?