mysql

gem install mysql2 がうまくいかない

環境: Rails : 3.1.0 mysql : 5.5 OS : win7 gem install mysql2するとエラーが出てくる。 以下はエラー内容: The 'mysql2' native gem requires installed build tools.Please update your PATH to include build tools or download the DevKit from 'ht…

mysqlのバージョン確認

select version():mysql> select version(); + version() + 5.0.27-community + 1 row in set (0.01 sec)

やっとローカルのmysqlにつながった。

mysqlが以下のようなエラーが出たので 解決方法を探してみた。 "#1251 - Client does not support authentication protocol requested by server;consider upgrading MySQL client" config.ini.phpファイルをいくら弄ってもこのエラーが消えなかった。 /* Au…

MySQLのデータをCSVとして出力、入力する

データ移行に使えるファイル形式:CSVファイル入出力をどうやってコマンドライン実現するのか?MYSQL1=>CSV=>MYSQL2CSV出力: mysql> select * from table_name into outfile "path/to/export.csv" fields terminated by ','; CSV入力: mysql> load da…