Commit 88d19bb5 authored by unknown's avatar unknown

Fixed installation bug in Makefile


Docs/manual.texi:
  Updated MyODBC installation
sql/share/Makefile.am:
  Fixed typo
parent 85207259
...@@ -672,7 +672,7 @@ Adding New Procedures to MySQL ...@@ -672,7 +672,7 @@ Adding New Procedures to MySQL
MySQL ODBC Support MySQL ODBC Support
* Which ODBC OS:: Operating systems supported by @strong{MyODBC} * Installing MyODBC:: How to install MyODBC
* ODBC administrator:: How to fill in the various fields in the ODBC administrator program * ODBC administrator:: How to fill in the various fields in the ODBC administrator program
* ODBC Problems:: How to report problems with @strong{MySQL} ODBC * ODBC Problems:: How to report problems with @strong{MySQL} ODBC
* MyODBC clients:: Programs known to work with @strong{MyODBC} * MyODBC clients:: Programs known to work with @strong{MyODBC}
...@@ -32421,7 +32421,7 @@ You can find all information about procedures by examining the following files: ...@@ -32421,7 +32421,7 @@ You can find all information about procedures by examining the following files:
@chapter MySQL ODBC Support @chapter MySQL ODBC Support
@menu @menu
* Which ODBC OS:: Operating systems supported by @strong{MyODBC} * Installing MyODBC:: How to install MyODBC
* ODBC administrator:: How to fill in the various fields in the ODBC administrator program * ODBC administrator:: How to fill in the various fields in the ODBC administrator program
* ODBC Problems:: How to report problems with @strong{MySQL} ODBC * ODBC Problems:: How to report problems with @strong{MySQL} ODBC
* MyODBC clients:: Programs known to work with @strong{MyODBC} * MyODBC clients:: Programs known to work with @strong{MyODBC}
...@@ -32432,14 +32432,17 @@ You can find all information about procedures by examining the following files: ...@@ -32432,14 +32432,17 @@ You can find all information about procedures by examining the following files:
@strong{MySQL} provides support for ODBC by means of the @strong{MyODBC} @strong{MySQL} provides support for ODBC by means of the @strong{MyODBC}
program. program.
@node Which ODBC OS, ODBC administrator, ODBC, ODBC @node Installing MyODBC, ODBC administrator, ODBC, ODBC
@section Operating Systems Supported by MyODBC @section How To Install MyODBC
@strong{MyODBC} is a 32-bit ODBC (2.50) level 0 (with level 1 and level @strong{MyODBC} is a 32-bit ODBC (2.50) level 0 (with level 1 and level
2 features) driver for connecting an ODBC-aware application to 2 features) driver for connecting an ODBC-aware application to
@strong{MySQL}. @strong{MyODBC} works on Windows95, Windows98, NT, and @strong{MySQL}. @strong{MyODBC} works on Windows95, Windows98, NT, and
on most Unix platforms. on most Unix platforms.
@strong{MyODBC} is in public domain, and you can find the newest version
at @uref{http://www.mysql.com/downloads/api-myodbc.html}.
If you have problem with @strong{MyODBC} and your program also works If you have problem with @strong{MyODBC} and your program also works
with OLEDB, you should try the OLEDB driver that you can find in the with OLEDB, you should try the OLEDB driver that you can find in the
Contrib section. @xref{Contrib}. Contrib section. @xref{Contrib}.
...@@ -32449,15 +32452,17 @@ You only need @strong{MyODBC} for Unix if you have a program like ...@@ -32449,15 +32452,17 @@ You only need @strong{MyODBC} for Unix if you have a program like
ColdFusion that is running on the Unix machine and uses ODBC to connect ColdFusion that is running on the Unix machine and uses ODBC to connect
to the databases. to the databases.
@strong{MyODBC} is in public domain, and you can find the newest version
at @uref{http://www.mysql.com/downloads/api-myodbc.html}.
If you want to install @strong{MyODBC} on a Unix box, you will also need If you want to install @strong{MyODBC} on a Unix box, you will also need
an @strong{ODBC} manager. @strong{MyODBC} is known to work with an @strong{ODBC} manager. @strong{MyODBC} is known to work with
most of the Unix ODBC managers. You can find a list at these in the most of the Unix ODBC managers. You can find a list at these in the
@strong{ODBC}-related links section on the @strong{MySQL} useful links page. @strong{ODBC}-related links section on the @strong{MySQL} useful links page.
@xref{Useful Links}. @xref{Useful Links}.
To install @strong{MyODBC} on windows, you should download the
appropriate @strong{MyODBC} .zip file (for Windows or NT/Win2000),
unpack it with @code{WINZIP}, or some similar program, and execute the
@code{SETUP.EXE} file.
On Windows/NT you may get the following error when trying to install On Windows/NT you may get the following error when trying to install
@strong{MyODBC}: @strong{MyODBC}:
...@@ -32468,11 +32473,14 @@ use ODBC) ...@@ -32468,11 +32473,14 @@ use ODBC)
@end example @end example
The problem in this case is that some other program is using ODBC and The problem in this case is that some other program is using ODBC and
because of how Windows is designed, you cannot in this case install new because of how Windows is designed, you may not in this case be able to
ODBC drivers with Microsoft's ODBC setup program. The solution to this install a new ODBC drivers with Microsoft's ODBC setup program. In most
is to reboot your computer in ``safe mode`` (Choose this by cases you can continue by just pressing @code{Ignore} to copy the rest
pressing F8 just before your machine starts Windows during rebooting), of the MyODBC files and the final installation should still work. If
install @strong{MyODBC}, and reboot to normal mode: this doesn't work, the the solution is to reboot your computer in ``safe
mode`` (Choose this by pressing F8 just before your machine starts
Windows during rebooting), install @strong{MyODBC}, and reboot to normal
mode.
@itemize @bullet @itemize @bullet
@item @item
...@@ -32481,8 +32489,8 @@ application (one that doesn't support @strong{MySQL} natively), you must ...@@ -32481,8 +32489,8 @@ application (one that doesn't support @strong{MySQL} natively), you must
first install @strong{MyODBC} on the Windows machine. first install @strong{MyODBC} on the Windows machine.
@item @item
The user and Windows machine must have the access privileges to the The user and Windows machine must have the access privileges to the
@strong{MySQL} server on the Unix machine. This is set up with the @code{GRANT} @strong{MySQL} server on the Unix machine. This is set up with the
command. @xref{GRANT,,@code{GRANT}}. @code{GRANT} command. @xref{GRANT,,@code{GRANT}}.
@item @item
You must create an ODBC DSN entry as follows: You must create an ODBC DSN entry as follows:
...@@ -32513,7 +32521,7 @@ Notice that there are other configuration options on the screen of ...@@ -32513,7 +32521,7 @@ Notice that there are other configuration options on the screen of
you run into problems. you run into problems.
@cindex ODBC, administrator @cindex ODBC, administrator
@node ODBC administrator, ODBC Problems, Which ODBC OS, ODBC @node ODBC administrator, ODBC Problems, Installing MyODBC, ODBC
@section How to Fill in the Various Fields in the ODBC Administrator Program @section How to Fill in the Various Fields in the ODBC Administrator Program
There are three possibilities for specifying the server name on There are three possibilities for specifying the server name on
...@@ -32895,15 +32903,33 @@ SELECT * FROM tbl_name WHERE auto IS NULL; ...@@ -32895,15 +32903,33 @@ SELECT * FROM tbl_name WHERE auto IS NULL;
If you encounter difficulties with @strong{MyODBC}, you should start by If you encounter difficulties with @strong{MyODBC}, you should start by
making a log file from the ODBC manager (the log you get when requesting making a log file from the ODBC manager (the log you get when requesting
logs from ODBCADMIN) and a @strong{MyODBC} log. To get a @strong{MyODBC} logs from ODBCADMIN) and a @strong{MyODBC} log.
log, tag the `Trace MyODBC' option flag in the @strong{MyODBC}
connect/configure screen. The log will be written to file To get a @strong{MyODBC} log, you need to do the following:
@file{C:\myodbc.log}. Note that you must use @code{MYSQL.DLL} and not
@code{MYSQL2.DLL} for this option to work! @enumerate
@item
Check the queries that MyODBC sends to the @strong{MySQL} server. You Ensure that you are using @code{myodbcd.dll} and not @code{myodbc.dll}.
should be able to find this by searching after the string The easiest way to do this is to get @code{myodbcd.dll} from the MyODBC
@code{>mysql_real_query} in the @file{myodbc.log} file. distribution and copy it over the @code{myodbc.dll}, which is probably
in your @code{C:\windows\system32} or @code{C:\winnt\system32} directory.
Note that you probably want to restore the old myodbc.dll file when you
have finished testing, as this is a lot faster than @code{myodbcd.dll}.
@item
Tag the `Trace MyODBC' option flag in the @strong{MyODBC} connect/configure
screen. The log will be written to file @file{C:\myodbc.log}.
If the trace option is not remembered when you are going back to the
above screen, it means that you are not using the @code{myodbcd.dll}
driver (see above).
@item
Start your application and try to get it to fail.
@end enumerate
Check the @code{MyODBC trace file}, to find out what could be wrong.
You should be able to find out the the issued queries by searching after
the string @code{>mysql_real_query} in the @file{myodbc.log} file.
You should also try duplicating the queries in the @code{mysql} monitor You should also try duplicating the queries in the @code{mysql} monitor
or @code{admndemo} to find out if the error is MyODBC or @strong{MySQL}. or @code{admndemo} to find out if the error is MyODBC or @strong{MySQL}.
...@@ -5,7 +5,7 @@ dist-hook: ...@@ -5,7 +5,7 @@ dist-hook:
test -d $(distdir)/$$dir || mkdir $(distdir)/$$dir; \ test -d $(distdir)/$$dir || mkdir $(distdir)/$$dir; \
$(INSTALL_DATA) $(srcdir)/$$dir/*.* $(distdir)/$$dir; \ $(INSTALL_DATA) $(srcdir)/$$dir/*.* $(distdir)/$$dir; \
done; \ done; \
$(INSTALL_DATA) $(srcdir)/charsets/README $(distdir)/charsets \ $(INSTALL_DATA) $(srcdir)/charsets/README $(distdir)/charsets
$(INSTALL_DATA) $(srcdir)/charsets/Index $(distdir)/charsets $(INSTALL_DATA) $(srcdir)/charsets/Index $(distdir)/charsets
all: @AVAILABLE_LANGUAGES_ERRORS@ all: @AVAILABLE_LANGUAGES_ERRORS@
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment