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 1 year has passed since last update.

[MySQLのエラーを解決したお話] (2003, "Can't connect to MySQL server on 'None' ([Errno -3] Temporary failure in name resolution)")

Last updated at Posted at 2022-04-27

状況

dockerでmysqlのコンテナを立ち上げて、flaskでDBにアクセスしようとしたがエラーが出る

エラー内容

(2003, "Can't connect to MySQL server on 'None' 
([Errno -3] Temporary failure in name resolution)")

解決

環境変数 を確認する

バックエンド側またはMySQL側に、環境変数が設定されているか確認しましょう

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?