0
0

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でWordPressサイト制作を行うとき、MySQL起動しない?

Posted at

AWSでcloud9を使って、WordPressでウェブサイトを作ろうとしました。
UbuntuのOSを選択して、インスタンスを作りました。

MySQLのバージョン確認しました。

$ mysql --version                                                                                         
mysql  Ver 14.14 Distrib 5.7.33, for Linux (x86_64) using  EditLine wrapper

cloud9が起動したので、ターミナルからMySQLを起動しようとしたら、エラーになりました。

$ sudo service mysqld start
Failed to start mysqld.service: Unit mysqld.service not found.

MySQLサーバーがインストールされていないのでは?ということで解説されたネット記事も、ありました。
でも、MySQLサーバーをインストールしても、変わりませんでした。

$ sudo apt install mysql-server mysql-client

結局ルートのパスワード設定のコマンドを入力したら、MySQLが使えるようになりました。

sudo mysql_secure_installation

こちらの記事を参考にしました。

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?