DataBaseに関する記事
SQLSTATE[HY000] [1044] Access denied for user ‘sail’@’%’ to database ‘laravel’
![Thumbnail of post image 046](https://god48.com/wp-content/uploads/2023/01/Laravel-1024x538.png)
今回は「SQLSTATE Access denied for user 'sail'@'%' to database 'laravel'」についての紹介です。 runするとエラーに Laravel sailのアプリケーションでrun実行時にエラーが発生。 npm run dev ...
【SQL】pluckでDBを整形して連想配列にする
![Thumbnail of post image 059](https://god48.com/wp-content/uploads/2023/08/sql-1024x538.png)
データベースから取得された結果セットから特定のカラムの値だけを取り出すために使用されるメソッドです。 $user = DB::table('user') ->select('id , 'email') ->get() ->pluck('id', 'email') ->toArra ...
【mysql_configのエラー】Command ‘mysql_config’ not found, but can be installed with
![Thumbnail of post image 115](https://god48.com/wp-content/uploads/2022/10/mysql.jpg)
mysql_configとは MySQLクライアントをコンパイルして MySQL に接続するのに有用な情報を提供です。 mysql_config --socket mysqlのsocketがあるパスを取得できます。 mysql_config --socket mysql.sock ...
【firebase】funtionsを使ってapiをデプロイ・叩き方【本番・ローカル対応】
![Thumbnail of post image 034](https://god48.com/wp-content/uploads/2023/03/firebase-1024x538.png)
デプロイする手順 1.APIの作成 2.API関数を本番にデプロイアップ 3.APIを叩く firebase-project - functions -- index.js -- package.json - .firebaserc - firebase.json - packa ...
【Firebase】firebaseConfigの設定・確認の仕方
![Thumbnail of post image 156](https://god48.com/wp-content/uploads/2023/03/firebase-1024x538.png)
firebaseのfirebaseConfigの設定と確認の方法です
【MySQL】初心者必見!MySQLをコマンドで起動・停止・再起動
![Thumbnail of post image 044](https://god48.com/wp-content/uploads/2021/07/mysql-start-1024x683.jpg)
「MySQL」をインストールがインストールが終わった方は、実際にMySQLの起動から停止、また再起動をしてみましょう。 MySQLを起動するには「mysql.server start」で起動させます。
【MySQL】初心者必見!HomebrewでMySQLを コマンドでインストールする方法
![Thumbnail of post image 185](https://god48.com/wp-content/uploads/2021/07/2021-07-18-0mysql-install-1024x684.jpg)
MacでMySQLインストールのインストールはHomebreからMySQLをインストールできます。Homebreはとても便利なパッケージ管理システムです。 まずはMacのターミナルを開き、brew updateでbrewをアプデートします。