MySQL ODBC Setup

Post Author: Andrewr
CA Forum: Data Connectivity and SQL
Greetings,
I have a question as to how to get my ODBC connection setup.
I have XP and a Mysql DB running on a Linux Server, on my XP machine I am using the Mysql ODBC Connection tool. I have tried both the 3.51.23 and the new 5.xxxx versions of this tool.
I know that my username and password are correct in the setup.
Whenever I try to setup the ODBC I get the error " Request Returned SQL_ERROR"
[MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on '192.168.0.197' (10061)
My XP Firewall is disabled.
Does anybody happen to have any suggestions?
Thank you
Andrew
Edit: I should probably add - that I am trying to generate reports with Crystal.
Thanks

Post Author: Andrewr
CA Forum: Data Connectivity and SQL
Well - Problem is not solved yet, but I think I have it figured out.
When I log into my Linux server, and telnet to port 3306 I get a connection, so I know that Mysql is answering.
When I try to telnet to the server on 3306 from my windows machine, I get nothing.
So this leads me to believe that it is a firewall issue. Even though both the WS & Server's firewalls are disabled, I do have a dedicated firewall/DHCP server on the fringes of my network. I suspect that this may be the issue. All the hostnames for all machines are correctly located in the respective hosts files. So I know that is not the issue. Just gotta setup the correct rule for the firewall - I hope.
Thanks
Andrew

Similar Messages

  • Help with ODBC setup for MySQL

    I am having issues understanding what is needed for ODBC setup on OSX. I need to setup a MySQL connection. Are the drivers included on Snow Leopard or if not were can I get them. Are they free or do you have to purchase them. I keep find documentation that assumes to much. Would appreciate any help.
    Will have to repeat this for my Lion server after I get this to work.

    Thank you for your very quick reply!
    I have read through the Disk Setup page, and it has cleared up a couple of points.
    Now, from what I understand - running the Media on a RAID 0 arrangement, doesn't seem to be a great idea due to no redundancy - however, I'm confused as to whether storing the media on 1 HDD would make for stable streaming of multiple streams of HD footage in Premiere sequence...
    I found the comparison between the SSD & HDD interesting too, in the sense that running two large HDDs in RAID 0 for the Media Cache & Previews is actually 'quicker' than running them off a single SSD - and that no redundancy isn't so much of an issue here, as they're just the previews, not the actual media.
    So, am I right in saying the setup below would offer a much more efficient solution than my current disk setup, whilst still keeping costs low by using software RAID, rather than buying large SSDs?
    Disk 1: OS & Programs (SSD)
    Disk 2: Media & Projects (HDD)
    Disk 3/4: Media Cache & Previews (2x HDD in RAID 0)
    Many thanks, once again!

  • Crystal Reports Server 2008 (Linux) - Crystal Reports/MySQL/ODBC Issue

    Hello,
    I have successfully installed CRS '08 on a Red Hat Enterprise Linux 4 server.  All services run fine.
    In the CMC, I have uploaded a Crystal Report that connect to a remote MySQL server. 
    I have installed the My SQL ODBC 3.51.11 and .12 Drivers as a System DSN.
    I have proven that the reports run fine in Crystal Reports 2008 directly against the remote MySQL DB server.
    (in Windows but with the same 3.51 ODBC Drivers)
    I have also proven that the database connection works okay from the CRS '08 Red Hat server to the remote MySQL DB server, when also creating a system DSN (using bash ./ODBCConfig)
    The problem is that when I log into the CMC or InfoView, and when I run the Crystal Reports from there, I get an error message:
    "Error in File <MyCrystalReport>: Failed to load database information"
    Is there something wrong with my specific Crystal Reports' Database Configuration? (Right click- Database Configuration)
    I see the driver was registered correctly in the /etc/odbc.ini file
    Am I supposed to set any other ODBC environment variables?
    Is there are firewall issue (port 3306 is already open)?
    In summary, the install was successful, and Crystal Reports can be uploaded and viewed via CMC or InfoView, but I cannot run the Crystal Reports against the database.
    Please advise, Thanks!

    Hi, I'm facing a similar problem. My ODBC DSN never works with CRS. Here are the details:<br><br>
    (1) I  installed the CRS 2008 in /opt/crystalreportsserver_2008_v1/ on a Linux platform. The CRS works well. I created a report with Crystal Reports 2008. This report directly connects to a MySQL server. After I published the report and manually modify its database configuration, I can browse it from InfoView. I'm sure that CRS, MySQL, and a report connecting to MySQL are all good.<br><br>
    (2) Then, I created an ODBC DSN on a Windows platform. This DSN connects to a MySQL server. I created another report with Crystal Reports using this DSN. The report can show the data within Crystal Reports.<br><br>
    (3) Then, I published the second report to CRS, but when I try to browse it, I always get such a message: Failed to open the connection.<br><br>
    I have configured the ODBC for CRS on the Linux server and I think the configuration is correct. This is how I do that: I edited the /opt/crystalreportsserver_2008_v1/bobje/odbc.ini file. In the file I added a data source called ods_telstar. Following is the content of the file:<br><br>
    [ODBC Data Sources]<br><
    CRSQLServerWP=DataDirect 5.3 SQLServer Wire Protocol Driver<br>
    CRSybaseWP=DataDirect 5.3 Sybase Wire Protocol Driver<br>
    CRText=DataDirect 5.3 Text Driver<br>
    %SYBASEDSN%=DataDirect 5.3 Sybase Wire Protocol Driver<br>
    ods_telstar = MySQL<br>
    <br>
    ... <br>
    <br>
    [ods_telstar]<br>
    Description     = ODS on telstar<br>
    Trace       = Off<br>
    TraceFile   = stderr<br>
    Driver      = /opt/crystalreportsserver_2008_v1/bobje/enterprise120/linux_x86/odbc/lib/libmyodbc5.so<br>
    SERVER      = xxx<br>
    USER        = xxx<br>
    PASSWORD    = xxx<br>
    PORT        = 3306<br>
    DATABASE    = ods<br>
    <br>
    In the middle I removed some data source definitions that are by default in the file. Note that I use "xxx" to replace the server name, user, and password. Such information is for internal use and I'm sure the original information is correct. The MySQL ODBC driver file has been put in the correct location. Correct access permissions has been assigned to the file.<br><br>
    I've tried to restart the CRS server, but still the report using ODBC DSN cannot be viewed.<br><br>
    The reason that we want to user ODBC DSN is that we may have many reports to publish. When we design the reports, we specify that they get data through an ODBC DSN such as ods_telstar. If we configure the same DSN on CRS, then we don't need manually modify each report's configuration after we publish them. If these reports are directly connecting to MySQL, then we have to manually modify each one's database configuration after we publish them.<br><br>
    I've no idea what's wrong with all the setup. Any suggestions and comments are appreciated!<br>

  • Crystal Reports Server 2008 V1, RedHat Enterprise Linux, MySQL, ODBC

    Iu2019m confused about connecting to an ODBC source from a report within CMC. Iu2019m a Unix guy; I donu2019t know much about Crystal reports, but Iu2019m working with a Crystal guy to get this thing working.
    <br><br>
    First, background: I have installed Crystal Reports Server 2008 V1 in RedHat Enterprise Linux (5.4), and itu2019s running just fine! Iu2019m using the included Tomcat application server, but Iu2019m storing CMS and Audit data our local running copy of MySQL (5.1.42). The RHEL install is native 32-bit (the only way I could get it to work), Crystal is storing and retrieving data from MySQL, The Central Management Console is responding to port 8080 over Tomcat, Iu2019m able to log in and see stuff, and so far, life is good.
    <br><br>
    Now, where Iu2019m stuck: the data weu2019re trying to build reports from <i>also</i> resides in this local Linux / MySQL install, and connecting to it from a report within CMC is where Iu2019m lost.
    <br><br>
    First, I successfully installed the unixODBC and MyODBC drivers in Linux. Iu2019m able to connect to MySQL successfully using the isql utility. Here are my conf files:
    <br><br>
    <pre class="jive-pre"><code class="jive-code jive-java">/etc/odbc.ini
    [DSN_NAME]
    Driver = MySQL ODBC 5.1 Driver
    DATABASE = project_web_prod
    DESCRIPTION = Project Description
    UID = username
    PWD = password
    SOCKET = /var/lib/mysql/mysql.sock
    /etc/odbcinst.ini
    [MySQL ODBC 5.1 Driver]
    Driver = /usr/lib/libmyodbc5.so
    UsageCount = 1
    </code></pre>
    <br>
    Again, this all works with isql (Iu2019ve even used both a socket connection, and port 3306, in odbc.ini).
    <br><br>
    Now, our Crystal guy uploads a report into the CMC. I go to <i>Folders -> <Project Folder></i>, right-click the report I want to test, click <i>Database Configuration</i>, and check the option <i>Use custom database login information specified here</i>. I select database driver <i>ODBC</i> from the dropdown, and type in the server, database, username, and password info. However, when I try to run the report, it fails to connect.
    <br><br>
    So, stupid question, can Crystalu2019s CMC use the system ODBC configuration options? (The ones stored in /etc). Because I saw an odbc.ini file in ~crystalinstalldir/bobje/. I edited it to match the contents of my /etc/odbc[inst].ini files, but to no avail. I saw that Crystal has itu2019s own ODBC engine, but it doesnu2019t support MyODBC driver, does it? I even tried hacking env.sh to use the system unixODBC library instead of the included one, but no luck.
    <br><br>
    So, in short, my question: how do I simply get reports in CMC to connect to a MySQL data source (using ODBC)?
    <br><br>
    Thanks so much! An answer to this question will save my day!
    <br><br>

    Thank you, Efstratios, for the helpful reply!
    So, I followed the directions in the PDF file you attached, and everything went smoothly. However, Iu2019m still not able to connect to ODBC within CMC.
    Hereu2019s what I did:
    <ul style="list-style-type:disc">
    <li>Copied the unixODBC libraries over to &lt;installdir&gt;/bobje/enterprise120/linux_x86/odbc/lib</li>
    <li>Removed MySQL ODBC connector 5.1, installed MySQL ODBC connector 3.51.</li>
    <li>Edited &lt;installdir&gt;/bobje/defaultodbc.ini, added my DSN and MySQL library info as per the instructions (I have both an odbc.ini, and defaultodbc.ini, identical files, just to be safe)</li>
    <li>Tested the connection using these libraries, this odbc.ini, and isql. Worked just fine</li>
    </ul>
    So, my problem seems to be in getting the CMC to actually <i>use</i> my ODBC setup!
    Any other hints / things I could try?
    When I right-click a report, and go to &ldquo;Database Configuration,&rdquo; which connection options should I use for the report? Iu2019ve tried both &ldquo;Use original database logon information from the report,&rdquo; and &ldquo;Use custom database logon information specified here&rdquo; (using the ODBC option from the drop-down menu). Either way, if I enter in the database, username, password, and then try to run the report (&ldquo;Run Now&rdquo;), I get this message in the History: &ldquo;Failed - Information is needed before this report can be processed.&rdquo;
    Is there another place I could get a more helpful error message? Or is there, perhaps, another way I could test database connectivity from within CMC? I wish there were at least a &ldquo;Test Database Connection&rdquo; optionu2026 :P
    Thanks so much for your help!

  • Adobe LiveCycle Designer ES Error while Connecting to MYSQL ODBC Driver

    Hi
    I'm getting an strange error message when i try to connect a LC PDF form to
    MYSQL DB using MySQL Connector /ODBC 3.51 Driver
    Here is the complete detail how i was trying to build a connection
    string :-
    I Opened a form in Adobe LiveCycle Designer ES2 Ver.9.0.0
    Clicked on Data View Pallete --> New Data Connection --> selected OLEDB Database radio button --> Build a Connection string (clicked on build button) --> selected MS OLE DB Provider for ODBC Drivers (the default selected option ) --> clicked on Next >> button --> Use connection string (radio button) --> Build connection string on clicking Build button --> Select Data Source windows opens --> Clicked on Machine Data Source tab --> created a new data source (with User Data Source) --> Selected the MySQL ODBC Driver (MySQL ODBC 3.51 Driver) --> Clicked on next button and then Finish
    A Connector/ ODBC 3.51.28 - Add Data Source Name window opens up which have the DSN connection details (DSN Name , Server , user , password , database).
    I put all the default details
    After this i got a error message saying that
    Adobe LiveCycle Designer ES has encountered a problem and needs to
    close. we are sorry for the inconvenience
    I tried this number of time and was getting this error message every
    time i try to put the DSN Detail and trying to connect to the DB. This
    was really irritating.
    Can somebody's what's the Issue . Is this a Resource Conflict or
    something else
    P.S :- I am using Adobe LiveCycle Designer ES2 Ver.9.0.0 with Windows XP and MySQL
    Connector /ODBC 3.51 and the DB Connection is working good for MS
    Access( though i don't need MySQL Connector fot this ).
    Any Help would be highly appreciated
    Thanks Alok

    Hi
    I'm getting an strange error message when i try to connect a LC PDF form to
    MYSQL DB using MySQL Connector /ODBC 3.51 Driver
    Here is the complete detail how i was trying to build a connection
    string :-
    I Opened a form in Adobe LiveCycle Designer ES2 Ver.9.0.0
    Clicked on Data View Pallete --> New Data Connection --> selected OLEDB Database radio button --> Build a Connection string (clicked on build button) --> selected MS OLE DB Provider for ODBC Drivers (the default selected option ) --> clicked on Next >> button --> Use connection string (radio button) --> Build connection string on clicking Build button --> Select Data Source windows opens --> Clicked on Machine Data Source tab --> created a new data source (with User Data Source) --> Selected the MySQL ODBC Driver (MySQL ODBC 3.51 Driver) --> Clicked on next button and then Finish
    A Connector/ ODBC 3.51.28 - Add Data Source Name window opens up which have the DSN connection details (DSN Name , Server , user , password , database).
    I put all the default details
    After this i got a error message saying that
    Adobe LiveCycle Designer ES has encountered a problem and needs to
    close. we are sorry for the inconvenience
    I tried this number of time and was getting this error message every
    time i try to put the DSN Detail and trying to connect to the DB. This
    was really irritating.
    Can somebody's what's the Issue . Is this a Resource Conflict or
    something else
    P.S :- I am using Adobe LiveCycle Designer ES2 Ver.9.0.0 with Windows XP and MySQL
    Connector /ODBC 3.51 and the DB Connection is working good for MS
    Access( though i don't need MySQL Connector fot this ).
    Any Help would be highly appreciated
    Thanks Alok

  • Acrobat 9 does not install after Microsoft ODBC Setup on windows server 2003

    I recently downloaded Acrobat Reader 9 from Adobe website. The package was consisted of one file AdbeRdr90_en_US.exe with an appx. size of 33.4MB. When i double click this file Microsoft ODBC Setup is started instead of Adobe Acrobat Reader 9 setup. I clicked next and in the end receive ODBC has been successfully installed and after that Acrobat Reader 9 setup is never started. Tried several times but the same thing and unable to install the reader on this windwos server 2003+sp1.
    Can anybody help me to resolve this problem?
    ishqi92

    Probably need to ask in the Reader forum, this is not it. The Reader forum link is listed at the top of this forum.

  • DAS Can't connect to mySQL ODBC

    Using:<BR>HPS 8.3<BR>Sun Solaris 8<BR>I've created a BQY in Intelligence Explorer that connects using mySQL ODBC in Windows XP and wanted to publish it to the web, but I needed to publish the OCE to the server and set it up with DAS.<BR><BR>Here are the steps I took<BR>1. Installed the mysql connector odbc 3.51.12 sun solaris2.8 sparc 64bit ODBC in Solaris.<BR>2. Created an odbc.ini file in Solaris with my mySQL connection settings in the home directory of the user running the services. I even made a copy of it in the $BP_HOME directory.<BR>3. Added the library path for my ODBC library to all my scripts.<BR>4. Added the data source using the service config tool.<BR>5. Restarted services<BR>6. published the OCE and BQY<BR><BR>When I access the BQY using the plug-in, it gives me <BR>"Server Error [2009]; Internal Error Detected in Data Access Service"<BR><BR>When I access it using the thin-client (iHTML), it gives me:<BR>"An Intelligence Service error has occurred.-Failed to acquire requested service"<BR><BR>What else needs to be done?<BR>I tried some the other suggestions to no avail:<BR>--added the library path  to the LD_PRELOAD variable in the $BP_HOME/bin/services.sh script<BR><BR>Also, I noticed that when I ran ServiceConfig.sh, there were no data sources to pick from the dropdown.  Anyone know how to make that active so I can just PICK the connection to use?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I'd strongly recommend that you take all that JDBC code out of your JSP. Put it into a class that you can test on the command line. Once you have it working, you can use it to get at data and pass it along to your JSP for display.
    I'd also recommend that you not use scriptlets and learn JSTL right away. MVC separation suggests that putting Java code in a JSP is a very bad idea.
    %

  • OBIEE 10.1.3.4.1 & MySQL ODBC on linux.  Generated SQL is wrong.

    Anyone know how to fix this situation?
    We are running OBIEE 10.1.3.4.1 on Redhat Linux 5.3 with MySQL ODBC connector.
    When connecting to MySQL we have need to connect to multiple databases.
    Problem is that OBIEE is generating incorrect sql.
    Example:
    select * from db_name..table_name;
    Note the two dots between db and table.
    This is incorrect syntax for MySQL. Should be only 1 dot.
    But I can't find a way to get OBIEE to only use 1 dot.

    MySQL is not a supported Datasource.
    http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10417.pdf

  • Problems with MySQL ODBC install on Linux

    Oracle 11gR2
    Linux 6.3
    I am using the Oracle ODBC Gateway and trying to configure for connectivity to MySQL.
    Can anyone forward me:
    (1) link to MySQL ODBC Driver
    (2) instructions on how to install
    I have tried installing the following and I am getting dependency errors:
    [root]# rpm -ivh  mysql-connector-odbc-5.1.10-1.x86_64.rpm
    Preparing...                ########################################### [100%]
       1:mysql-connector-odbc   ########################################### [100%]
    myodbc-installer: symbol lookup error: myodbc-installer: undefined symbol: SQLInstallDriverEx
    error: %post(mysql-connector-odbc-5.1.10-1.x86_64) scriptlet failed, exit status 127
    [root]# rpm -ivh mysql-connector-odbc-5.2.6-1.el6.x86_64.rpm
    error: Failed dependencies:
            libodbc.so.2()(64bit) is needed by mysql-connector-odbc-5.2.6-1.el6.x86_64
            libodbcinst.so.2()(64bit) is needed by mysql-connector-odbc-5.2.6-1.el6.x86_64
            rpmlib(FileDigests) <= 4.6.0-1 is needed by mysql-connector-odbc-5.2.6-1.el6.x86_64
            rpmlib(PayloadIsXz) <= 5.2-1 is needed by mysql-connector-odbc-5.2.6-1.el6.x86_64

    The MySQl ODBC driver requires an ODBC Driver Manager (libodbc.so.2). So please make sure you first install an ODBC Driver manager (for example unixODBC Driver Manager release 2.3) using an RPM or compile it from the soiurce files (www.unixODBC.org).
    - Klaus

  • MS SQL Server 2012 Developers Freeze At ODBC Setup

    I am attempting to create an ODBC connection using my local computer's
    Admin Tools-ODBC Connection interface.
    I can select the MS SQL Server driver type, enter the odbc name I want to call the connection , then click browse so to look for sql databases in a local install of MS SQL Server 2012 Developers Edition
    The odbc setup goes into a search mode that ran for over 4 hours and the process could not be terminated using Task Manager - End Task. 
    After rebooting, I tried the Options - Create New Connection using Microsoft SQL Server Data Tools interface and get the same result where I again have to reboot the computer to stop the setup.
    Is this an expected result when setting up an odbc this way and/or is there another way odbcs are created so to connect to MS SQL Server 2012 databases?
    I am a database

    Hello,
    I can't reproduce this issue on my test environment, and I'm sure what do you mean hang on search mode while create a SQL Server ODBC Data Source. Could you please share a screenshot about this issue?
    I would suggest you take a look at the following articles about how to create a ODBC DSN to SQL Server 2012:
    Creating a SQL Server ODBC Data Source:
    http://technet.microsoft.com/en-us/library/cc879308(v=sql.105).aspx
    http://hodentekmsss.blogspot.com/2013/08/how-do-you-create-odbc-dsn-to-sql.html
    Hope this helps.
    Elvis Long
    TechNet Community Support

  • Crystal Report on Universe with MySQL ODBC

    Hi
    I created a report with Crystal reports by using a Universe based on MySQL ODBC. In my local (Windows XP) installed Report Designer everything is running fine. I'm also able to publish this report to my BOE, based on RHEL.
    If I will refresh my report on InfoView, database credential are required, but my credential are not accepted. I only become a error message: Failed to open the connection
    If I use Webi with the same universe and the same connection, everything is fine.
    I have also change the ODBC version, but no other result.
    Any idea, where I can trace this connection?
    Versions:
    Crystal Reports 2008 (12.0.0.683)
    Business Objects Enterprise 3.0 (12.0.0.683)
    MySQL ODBC 3.51.27 and 5.1.5
    Thanks a lot
    Christoph

    Hi,
    thank you very much for reply.
    I think you got it. We have the goal to create a report that can be printed and is top-gloss-report for management ; ) One query would not be able to include all that stuff. It is very different.
    So we created 7 different queries in SAP BW Query Designer and we want to put them together in BO Crystal Reports.
    All Queries work with input variable for period and year. These input variables are used in the columns of the queries for calculating the key figures.
    So, if we put these queries together into Crystal Reports, we should actually use "replacement path" for variables. But the sap.help says, that isn't doable.

  • MySQL ODBC driver (32 bit) linked server, architecture mismatch

    Hello,
    I am trying to create a linked server in SQL 2012 Management Studio with a MySQL external server. I have used the 32bit ODBC driver as instructed by the developer, following this rule:
    To manage a data source that connects to a 32-bit driver under 64-bit platform, use c:\windows\sysWOW64\odbcad32.exe.
    My connection is fine using the ODBC connector, but when I try to create the linked server I get an architecture mismatch error: The specified DSN contains an architecture mismatch between the Driver and Application Error 7303.
    Can someone help?
    Best regards
    Kostas
    Kostas Backas-Systemgraph Technologies

    Hello,
    What's the bit verison of the SQL Server ?
    Based on your description, you create a DSN connect to MySQL database with 32 bit MySQL ODBC driver under 32bit ODBC Administrator tool (sysWOW64\odbcad32.exe).
    When you create linked server on SQL Server instance, it will use 64 bit Microsoft OLE DB Provider for ODBC Drivers if the bit version of SQL Server is 64 bit. That may cause the error you received. In that case, please download 64bit MySQL ODBC driver and
    create a DSN with 64 bit ODBC Administrator tool.
    Reference: http://dev.mysql.com/downloads/connector/odbc/
    If I have any misunderstanding, please correct me.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • MySQL ODBC DNS

    Hi to everyone! First of all let me tell you that i've been looking for an example on how to do this for a long time before even considering making this post.
    Let's go back to business, I'm having an issue trying to connect a mySQL database through "DSN". 
    $connectionDB = new-object system.data.odbc.odbcconnection
    $connectionDB.connectionstring = "(Driver={MySQL ODBC 5.2w Driver};DSN=RENTABILIDAD_DES)"
    $connectionDB.open()
    Results are not very promising
    [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified"[0]
    Enviroment:
    Connection from a Windows 64 Enterprise
    Connection to mySQL database (remote)
    Powershell v3
    Just in case you, I can and did connect to mySQL done the stuff i needed to do making the proper conection string. The issue in doind this, is that the password is in plain text (Harcoded on the code), now when i move the development to production site i
    wont be able to do this. Example above
    #dataBase info
    $mysql_server = "10.1.131.106"
    $mysql_user = "USER"
    $mysql_password = "PASSWORD"
    $Mysql_db = "db_XXXXXXX"
    $ConnectionString = "SERVER=$mysql_server;UID=$mysql_user;PWD=$mysql_password;database=$Mysql_db"
    $connectionDB = New-Object -TypeName MySql.Data.MySqlClient.MySqlConnection
    $connectionDB.ConnectionString = $ConnectionString
    $connectionDB.Open()
    Works like a charm... anyway does anyone know to to use an ODBC already created to connect a mySQL data Base using powershell?
    In advance thanks!!

    I'm suggesting that might be part of the problem, take those out and try it again.  You aren't using parentheses in the 2nd example and I don't think your first example would work with them.  The error message tends to support my suspicion that
    the values for DSN and Driver are not being passed correctly.
    I hope this post has helped!

  • CR2008:  MySQL ODBC Connection duplicating FROM statement in SQL Expression

    Maybe I'm doing something wrong here, but I think maybe I'm not and that I've found a bug.
    I'm doing a very simple select statement:
    SELECT count(*)
    FROM labtech.computers
    WHERE os NOT LIKE %server%
    When I do this statement, I get an error:
    Crystal Reports
    Error in compiling SQL Expression :
    Database Connector Error: '42000:[MySQL][ODBC 5.1 Driver][mysqld-5.1.37-community]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT count(*)
    FROM labtech.computers
    WHERE os NOT LIKE %server% FROM `labtec' at line 1 [Database Vendor Code: 1064 ]'.
    OK  
    There is nothing wrong with this sql statement, so I started digging a little, removing everything except for
    Select *
    Crystal Reports
    Error in compiling SQL Expression :
    Database Connector Error: '42000:[MySQL][ODBC 5.1 Driver][mysqld-5.1.37-community]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT *
    FROM `labtech`.`clients` `clients1`' at line 1 [Database Vendor Code: 1064 ]'.
    OK  
    You will see that it is adding the 
    FROM `labtech`.`clients` `clients1`
    So, my questions is:
    1) Is this an issue with CR2008 or the MySQL ODBC driver
    2) If it's CR2008, how do I report it?
    3) Can anybody else duplicate it?
    Thanks in advance for any help.
    -Scott

    Hi Scott,
    Lots of info in these forums, more info in the [Crystal Report Designer|SAP Crystal Reports; forum. If you search in there you'll find references to others who suggested training material. You can also click on the eLearning tab above and find more info...
    Thank you
    Don

  • The ODBC data source administrator does not have the mysql odbc 3.51 driver

    Hi^^,
    I am trying to create the DSN for the type 1 driver.
    I go the the ODBC data source administrator > click userdsn>add
    It takes me to the screen"Create new data source"
    Here i want to select Mysql ODBC 3.51 Driver and then click on finish.
    My problem is that I do not have the choice of Mysql ODBC 3.51 Driver.
    How do I get it among my list of choices.
    Is the mysql software corrupt and do i need to install it.
    Regards,
    Prashant

    Don't use odbc at all for java <-->MySQL. Use the JDBC driver from the MySQL website

Maybe you are looking for