LoginSignup
1
0

More than 5 years have passed since last update.

MariaDBを使い始めようと思うのでメモ

Last updated at Posted at 2018-12-18

今は趣味で構築しているサイトでSQLiteを使っているのですが、いろいろな理由からMariaDBに移行しようと思います。
そのためのメモです。
あくまでも個人的なメモのため、くだらない記事を読んだと怒らないようにお願いします。

インストール

コマンド集

Entity Framework Core

MySQLのやつを使えばOK
MySql.Data.EntityFrameworkCore
https://www.nuget.org/packages/MySql.Data.EntityFrameworkCore/

接続文字列

"Server=localhost;Uid=root;Pwd=XXXX;Database=testdb;"

AUTO_INCREMENT

https://dev.mysql.com/doc/refman/5.6/ja/example-auto-increment.html
AUTO_INCREMENTの値を変える
https://mayer.jp.net/?p=4997

lower_case_table_names

Linuxにインストールした場合、デフォルトでテーブル名の大文字小文字を区別する。
区別したくなければ設定を変更する。(lower_case_table_names)
https://moznion.hatenadiary.com/entry/2015/04/13/005641
設定を変更する前に作ってしまったデータベースは作り直さないといけない。
https://dev.mysql.com/doc/refman/5.6/en/identifier-case-sensitivity.html

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