#3047: MySQL driver failed to install
--------------------------+-------------------------
Reporter: fpouw | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.5
Component: Database | Version: 7.0.4
Keywords: mysql driver | CPU: Unspecified
Platform: MSWindows 7 |
--------------------------+-------------------------
A recent install of GRASS7 is missing the MySQL driver.
The result of db.driver does not list 'mysql' it and the db.connect
command (executed without a driver specified) returns an error that
'mysql' is out of the domain of accepted values.
#3047: MySQL driver failed to install
--------------------------+------------------------------------
Reporter: fpouw | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.5
Component: Database | Version: 7.0.4
Resolution: | Keywords: mysql driver, wingrass
CPU: Unspecified | Platform: MSWindows 7
--------------------------+------------------------------------
Comment (by martinl):
In [changeset:"68653" 68653]:
{{{
#!CommitTicketReference repository="" revision="68653"
wingrass: disable mysql support (broken build), see #3047 for details
}}}
#3047: MySQL driver failed to install
--------------------------+------------------------------------
Reporter: fpouw | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.5
Component: Database | Version: 7.0.4
Resolution: | Keywords: mysql driver, wingrass
CPU: Unspecified | Platform: MSWindows 7
--------------------------+------------------------------------
Comment (by neteler):
Replying to [comment:7 martinl]:
> The MYSQL support has been disabled due to compilation errors
>
> {{{
> C:/OSGeo4W64/include/mysql.h:64:19: error: unknown type name 'SOCKET'
> #define my_socket SOCKET
> ^
> }}}
#3047: MySQL driver failed to install
--------------------------+------------------------------------
Reporter: fpouw | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.5
Component: Database | Version: 7.0.4
Resolution: | Keywords: mysql driver, wingrass
CPU: Unspecified | Platform: MSWindows 7
--------------------------+------------------------------------
Comment (by neteler):
Replying to [comment:8 neteler]:
> Replying to [comment:7 martinl]:
> > The MYSQL support has been disabled due to compilation errors
> >
> > {{{
> > C:/OSGeo4W64/include/mysql.h:64:19: error: unknown type name 'SOCKET'
> > #define my_socket SOCKET
> > ^
> > }}}
>
> For a potential solution, see
>
> http://www.technowise.in/2009/08/fixing-socket-does-not-name-type-
error.html
>
Did anyone try the solution? Citation:
{{{
To fix this error, just include winsock.h before including mysql.h header
as shown below: