Go to the first, previous, next, last section, table of contents.


ODBC

MySQL ODBC をサポートするオペレーションシステムは?

MySQL ODBC は Windows95 と NT の 32ビット ODBC (2.50) level 0 ドライバです。我々は誰かがこれを Windows 3.x へ移植するのを希望します。

MySQL ODBC での問題をどのように報告すべきか?

我々は Admndemo, いくつかの C プログラム, Msquery そして Excel でだけで ODBC をテストしました。

問題についてのいくつかの光を与えるために、われわれは ODBC マネージャから のログファイル (ODBCADMIN からのログの要求時に得られるログ) と MYODBC ロ グを望みます。

MYODBC ログを得るためには、MyODBC connect/configure screen 上で 'Options' 引数に 4 を足してください。

ログはファイル `c:\tmp\myodbc.log' に書かれます。

MyODBC で動作することが知られているプログラム

多くのプログラムが MyODBC で動作します。これらは我々自身がテストしたか、 または何人かの他のユーザから動作するという確証を得たものです:

Program
Comment
Access
To make Access work:
Excel
Works. Some tips
odbcadmin
Test program for ODBC.
Delphi
One must use DBE 3.2 or newer.
C++Builder
Tested with BDE 3.0. The only known problem is that when the table schema changes, query fields are not updated. BDE however does not seem to recognise primary keys, only the index PRIMARY, though this has not been a problem.

ODBC 管理プログラムの各種項目を埋めるには?

Windows95 上のサーバ名の記述には3つの可能性があります:

  1. サーバの IP アドレスの使用。 Use the IP.
  2. ファイル lmhosts への次の情報の追加: ip hostname 例えば:
    194.216.84.21 my
    
  3. Configure the PC to use DNS.

'ODBC setup' を埋める方法の例。

Windows DNS name:   test
Description:        This is my test database
MySql Database:     test 
Server:             194.216.84.21
User:               monty
Password:           my_password
Port:

The 'Windows DNS name' is any name that is unique in your windows ODBC setup.

When you fill in the values in the ODBC setup, these will be used as default values when prompting for a Driver connect. You don't have to give 'server', 'user' or 'password' in the ODBC setup screen.

ODBC ソースへの接続時に、server, user, password そして port を変更するた めのオプションを持ちます。

If port is not given the default port (3306) is used.

How to get the value of a AUTO_INCREMENT column in ODBC

A common problem is how to get the value of an automatically-generated id from an INSERT. With ODBC you can do something like this:

INSERT INTO foo (auto,text) VALUES(NULL,'text')
select LAST_INSERT_ID()

or if you are just going to insert in into another table:

INSERT INTO foo (auto,text) VALUES(NULL,'text')
INSERT INTO foo2 (id,text) VALUES(LAST_INSERT_ID(),'text')


Go to the first, previous, next, last section, table of contents.