【某録】Mysqlがdocker以外で動いていて止まらな場合の対応

今回はMysqlがdocker以外で動いていて止まらな場合の対応の紹介です。 一応、killでport番号3306を消せない方がここに辿り着いていると思いますが、まだな方は試してみてください。 3306番を使っているportの詳細を検索 sudo lsof -i :3306 ls ...
【SQL】pluckでDBを整形して連想配列にする

データベースから取得された結果セットから特定のカラムの値だけを取り出すために使用されるメソッドです。 $user = DB::table('user') ->select('id , 'email') ->get() ->pluck('id', 'email') ->toArra ...
【mysql_configのエラー】Command ‘mysql_config’ not found, but can be installed with

mysql_configとは MySQLクライアントをコンパイルして MySQL に接続するのに有用な情報を提供です。 mysql_config --socket mysqlのsocketがあるパスを取得できます。 mysql_config --socket mysql.sock ...
【Nodeでmysql】データベースへconnectionPool(コネクションプール)接続する

データベースへの接続はconnectionPool(コネクションプール)を採用することがほとんどです。 この記事ではnodeのデーターベースやconnectionPoolについて聞いたことはあるけど、いまいちデータベースの接続やconnectionPoolについてよく分かってない ...
【MySQL】初心者必見!MySQLをコマンドで起動・停止・再起動

「MySQL」をインストールがインストールが終わった方は、実際にMySQLの起動から停止、また再起動をしてみましょう。 MySQLを起動するには「mysql.server start」で起動させます。
【MySQL】初心者必見!HomebrewでMySQLを コマンドでインストールする方法

MacでMySQLインストールのインストールはHomebreからMySQLをインストールできます。Homebreはとても便利なパッケージ管理システムです。 まずはMacのターミナルを開き、brew updateでbrewをアプデートします。