Help us understand the problem. What is going on with this article?

VoyagerからPHPmyadminで作ったテーブルにアクセスする

More than 1 year has passed since last update.

やりたいこと

VoyagerからPHPmyadminで作ったテーブルにアクセスしたい。
PHPmyadminからテーブルを作った時点で、Voyagerのデータベース一覧には表示されるのだが、
編集をするとエラーがでる。

 Syntax error or access violation: 1064 

Voyagerから作ったテーブルと何が違うのかを追跡して、設定を合わせたらうまくいったのでメモ。

「id」カラムの追加

2018-12-01_23h18_55.png

上記の設定でidカラムを追加

テーブルの設定

2018-12-01_23h14_12.png

  • PHPmayadmin > 操作 > 照合順序 を 画像のものに設定
  • AUTO_INCREMENT を 5 に設定

カラム名の注意点

  • カラム名は数字で始めるのはNG
    PHPmyadminでは受け付けてくれるが、voyagerでは不正な値としてはねられてしまう。

  • 長すぎるカラム名はNG。1行全体で8kBが限界。

参考URL

https://php1st.com/931

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away