To Bring In Features from MySQL

For AutoCAD Map 3D 2015, the recommended version of MySQL is 5.5.

To bring in features from MySQL

  1. Before connecting to a MySQL database, install the library file libmysql.dll.
  2. In Display Manager , click DataConnect To Data.
  3. In the Data Connect window, select Add MySQL Connection in the Data Connections By Provider list.
  4. Under Connection Name, type a name for this connection.

    You can give the connection any name you like. This name appears in Map Explorer as the name of the feature source.

  5. Under Service Name, enter the information for the MySQL data source.
  6. Click Login.
  7. In the User Credentials dialog box, enter your user name and password.

    Optionally, select Remember Password if you want AutoCAD Map 3D to log you in whenever you open this drawing.

  8. Click OK.
  9. In Data Connect, under Data Store, enter the data store name.

    To select from a list of data stores, click the down arrow. AutoCAD Map 3D connects to the specified server and instance and lists the available data stores.

    Note: If the data store is not in the list, it may not use a AutoCAD Map 3D schema. Select Show All Data Stores to add these to the list. AutoCAD Map 3D creates a mapping to use these data stores with AutoCAD Map 3D.
  10. Click Connect.
  11. In the feature class list, select the feature classes to include in the map.

    If this feature source contains only a single feature class, that feature class is selected automatically. If it contains multiple feature classes, you can do either of the following:

    • Right-click the schema entry and select Select All or Select None.
    • Expand the schema entry and select the feature classes to add.

      If a feature class contains multiple geometry types,and you select the feature class itself, all geometries are added. To add a subset of geometries, hold your cursor over the feature class name to see the Show Geometry button. Click Show Geometry to see each geometry as a separate choice. Select the ones you want. Each selected geometry is added to map as a separate Display Manager layer.

  12. Verify that the coordinate systems are correct. You can change an incorrect coordinate system if necessary.
  13. Click Add To Map.

    To bring in a subset of the data, click the down arrow and select Add To Map With Query. To filter data after you’ve added the data to your map, see To Filter Feature Layers.

To use AutoCAD Map 3D 2015 to access FDO data stores that were created in AutoCAD Map 3D 2007 and earlier

  1. Verify that you have the privileges required to execute the ALTER TABLE request.
  2. In the command line, enter the following:

    cd <MapInstallDir>/Fdo/bin/com

    mysql --user=MyUserName --password=MyPasswordMyDatabase <AlterSchemaMySQL.sql> MyLogFile

    quit