MySQL DSN files

Hi!
I'm trying to store data from LabVIEW in a MySQL database, I've foloved the folowing procidure (http://digital.ni.com/public.nsf/allkb/47A8CF66D5E3C8CC8625720A006139D6) and it all works fine. But then,  I would like to be able to put my path to my DSN in a string so that I do not have to specifie it every time I run the program. They say that you can do that in the last sentence of the tutorial, but I cant find my specific path. I did exactly as it sad in the tutorial, do anybody know how I can find thise address?
Solved!
Go to Solution.
Attachments:
MySQL.vi ‏16 KB

ollef,
Hello! Following that Tutorial you linked allows you to create at User DSN and according to the documents below isn't actually a file, but information stored in a registry. So, when using the DB Tools Open Connection VI you would wire a string control into the Connection Information Input of the VI with the Data Source Name of the User DSN that you created in Step 6 of the tutorial.
What Is the Difference between a System DSN, a User DSN, a File DSN, Universal Data Link (UDL), and ...
Database Source Name
Ben Sisney
FlexRIO V&V Engineer
National Instruments

Similar Messages

  • MySQL DSNs

    Hi
    Is anyone out there able to do a quick test of MySQL DSNs?
    I am running CF10 beta on Win Vista Home Premium 64-bit, and trying to create DSNs to a  "MySQL 5.5.2-m2-community" DB, also installed locally.  When I do so, I get this:
    Connection verification failed for data source: dsntest
    com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
    The root cause was that: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
    Connecting to the same DB with the same credentials on CF8 and CF9 (and Railo, OpenBD and BD.NET) works fine.
    I have ruled out firewall issues.
    I'm less interested in people offering advice as to what might be the cause (Adobe are on the case, and they'll be best placed to advise there), but just interested if someone who has a comparable environment could try to set up a MySQL DSN and see if it works.
    If someone can get a DSN to work on  Win Vista Home Premium 64-bit, and MySQL 5.5.2-m2-community (or similar, if not exactly the same point release), then I'd be pretty happy to just put it down to a vagary of my PC, and advise Adobe to stop looking at it.
    On the other hand if someone else has the same problem, it would be handy to know.
    Cheers.
    Adam

    Geoff
    You may need to use MySQL Administrator to add a host from which root
    can connect, if you want to be able to log in as root from workstations.
    By default I believe root can only connect from localhost, ie the
    server itself, and this is a security feature.
    However, you can add additional hosts, including %.yourinternaldomain,
    and re-assign the privileges you want root to have. I find it a bit
    confusing, but root@localhost and root@somewhere_else seem to behave as
    different users.
    I personally leave root for just localhost access and use another user
    for workstation access - a bit safer and if I stuff up the other user if
    worst comes to worst I can fix it from a command line on the server.
    Hope this helps
    Rob
    Geoff Roberts wrote:
    >>>> On 6/08/2007 at 8:53 am, in message <[email protected]>,
    > Christopher Premo<[email protected]> wrote:
    >> I've just loaded it as well. I am running the Free NSure Audit (version
    >> 2.0.2) on my File servers. Currently, I'm just tracking Netware and
    >> eDirectory Logins and outs and intruder detections.
    >>
    >> I've tried to connect to the MySQL database via the MySQL ODBC driver,
    >> but have been unsuccessful so far. However, I have been able to use the
    >> MySQL Administration and Query Browser program to access the MySQL
    >> database on the Master server.
    >>
    >> I'm in the processes of developing instruction for our unit to "export"
    >> the Audit data, clear the MySQL database, and import the data into an
    >> Access database for audit analysis. Unfortunately, there are some manual
    >
    >> steps, but the process seems to be easy and quick to accomplish.
    >
    > I've been able to login remotely. Finally. However NOT as root. I had to
    > create another user and grant it all rights for everything. That works from
    > console and remotely, root still only works from the console. I'm wondering
    > if this is a 'feature'...
    >
    >
    > Regards
    >

  • Mysql DSN not in odbc.ini

    running mysql 5 cfmx 6.1
    I created a mysql datasource in the CFMX admin without a
    problem and am able to connect to the database, everything works
    fine. My problem is I don't see this in my ODBC.INI in the
    registry. I can see all other datasources except for mysql. Can
    anyone tell me why this happens?
    Also can anyone point to where I might find a way to create
    this mysql DSN connection through code?
    Thanks in advance

    Yes i want to connect to Oracle Database, i understand from documentation if i want to connect to Oracle Database, it is enough to have TNS entry and OCI uses that to connect. Somehow i am not able to connect to DB using OCI. So i thought to try using ODBC ie., by modifying odbc.ini file under BIHome/setup on server.
    thanks

  • Building PHP 5.2.5 and MySQL (Cannot find MySQL header files under /usr.)

    Hi,
    we are in big trouble here. On Mac OS X 10.4 it was no problem building PHP with additional modules. Unfortunately it´s not working this time.
    This is the error message i got when building php:
    checking for mSQL support... no
    checking for MSSQL support via FreeTDS... no
    checking for MySQL support... yes
    checking for specified location of the MySQL UNIX socket... /var/mysql/mysql.sock
    checking for MySQL UNIX socket location... /var/mysql/mysql.sock
    configure: error: Cannot find MySQL header files under /usr.
    Note that the MySQL client library is not bundled anymore!
    Looks like some libs are missing?!
    find / -iname 'libmysqlclient*'
    That doesn´t helper neither. No results.
    Any idera what´s wrong here?

    the php in 10.5 uses extensions, you do not need to rebuild php to get mssql to work..
    Take a look at http://downloads.topicdesk.com/docs/AddingGD2_to_PHP_on_OS_X_Server_10_5Leopard.pdf
    as you can see in that example GD is built separately, mssql is the same.. do a google search on mssql.so and you will find a bunch of info (most of it is for linux but you should be able to get the info to work)

  • How to bulk import data into CQ5 from MySQL and file system

    Is there an easy way to bulk import data into CQ5 from MySQL and file system?  Some of the files are ~50MB each (instrument files).  There are a total of ~1,500 records spread over about 5 tables.
    Thanks

    What problem are you having writing it to a file?
    You can't use FORALL to write the data out to a file, you can only loop through the entries in the collection 1 by 1 and write them out to the file like that.
    FORALL can only be used for SQL statements.

  • Have  a MYSql dump file in *.sql extension

    Hi
    I have a MySql dumped file in *.sql extension.
    I have been reviewing ( maybe cannot see) SQL dev to see if I can use it to migrate the mysql file.
    Is this possible?  I looked at the snippet of the sql file and it has indications to create tables using specific MySQl engines...
    Is connecting to the source db ( MySQL) the only way to do this?
    thanks

    The supported methods of migrating from MySQL to Oracle RDBMS via the SQL Developer tool are discussed in ...
    Getting Started: SQL Developer Migrations
    MySQL Migration
    Even very old versions of SQL Developer (say, version 1.5.5) support migration, but the steps may vary depending on version so it is best to use the latest 4.0.3production release. If your migration is small, then using the Copy to Oracle feature may suffice:
    Getting Started: SQL Developer Migrations

  • Restore MySQL database file into SQL server

    Hi experts,
    I have a MySQL Server backup file. How can I restore it to SQL Server?
    Or what is the way around getting the database into SQL Server?
    ebro

    Hi experts,
    I have a MySQL Server backup file. How can I restore it to SQL Server?
    Or what is the way around getting the database into SQL Server?
    ebro
    You cannot restore MySQL backup file on SQL Server.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • SQL Server 2005 Express DSN File

    I'm converting to sql server 2005, my orignal DSN file sql server 7 looked like the following
    [ODBC]
    DRIVER=SQL Server
    UID=sa
    DATABASE=PCX-MEMS-SCANS
    APP=Microsoft® Windows® Operating System
    SERVER=PCX-DATABASE
    the new one is SQL SERVER EXPRESS 2005
    [ODBC]
    DRIVER=SQL Server
    UID=sa
    DATABASE=PCX-MEMS-SCANS
    APP=Microsoft® Windows® Operating System
    SERVER=PCX-DATABASE\\SQLEXPRESS
    I get an error when I try to connect to the database.

    Hi jtibbetts,
    Could you be more specific? Are you using LabVIEW, CVI, Visual Studio, the Database Connectivity Toolset? What error are you seeing (error code number, description)?
    Charlie M. CLD

  • Oracle DSN files in UNIX

    Hi Guys,
    i need to change server name in a DSN , orcale is installed in a UNIX server but i am nto sure where the DSN files reside in UNIX, can anyone help me in finding that file.

    Ok
    For Solaris
    # vi /etc/resolv.conf
    for HP-UX
    The Berkley Internet Name Domain (BIND) is the most common implementation of DNS for UNIX based systems and HP ships BIND with all of its HP-UX versions.
    /etc/resolv.conf
    /etc/nsswitch.conf
    /etc/named.conf

  • MySQL DB file using java

    Is there a way of creating a mySQL database file using java, a file similar to MS Access file?

    I recall a software that save files in .mysql format.
    Didn't know how these files were generated, but I am
    sure of the extension.Well that's swell.
    There is no such file used by MySQL. Further MySQL databases are not contained in a file but in fact use several files and are tied directly to tables. For each table you will have two files, one with structure and one with the data. Then for each index you will have another file.
    That's for MyISAM tables anyway (a MySQL variant of ISAM). For other table engine types it varies but multiple files per table is a common thread.
    The file you are talking about most likely contains SQL queries and is a SQL batch program for creating and populating a database.
    Anyway on to trying to actually resolve your issue. Creating ISAM files from scratch is a no-go to create a database. You can of course always connect to the database engine and issue queries like "CREATE DATABASE" or "CREATE TABLE"
    What is the actual problem you are trying to solve here?

  • Problem configuring DSN file

    Hi guys.
    I need some advice on how to configure an .DSN file on a Windows95.
    I need to link MS Access on this win95 to a Oracle DB located on a remote machine.
    (MS Access) ---> (Remote machine OracleDB)
    Thanks.
    MYI
    null

    If you're using the latest version of the Oracle driver, there should be a 'Test Connection' button in the DSN configuration screen. Use that to verify that your DSN is set up correctly.
    Given that there's a password field, my guess is that you're using the Microsoft ODBC for Oracle driver. I'd suggest that you try the Oracle driver, simply because I'm much better able to help you out with it.
    I assume that you've successfully installed the Oracle client on your machine. I assume as well that you've used the Net8 Configuration Assistant to create a new TNS name for the server you're trying to connect to. I assume you used the 'Test Connection' feature of that tool to verify that you could connect with and log into your database.
    Justin

  • MySQL data files: where do they live

    I am building an online system using mySQL. I have two (I hope) simple questions.
    1. Where do the data files live eg. What do I have to backup to be sure my data is safe?
    2. I built the system on a Mac OS 10.3 machine (not 10.3 server). How do I transfer the mySQL database structures to the (now included) version of mySQL running in Mac OS 10.4 server?
    Any advice will be much appreciated.
    Ray
    G5   Mac OS X (10.4.3)  
    G5   Mac OS X (10.4.3)  

    On OS X Server, the standard location for the MySQL data files is: /var/mysql. Any databases you create will wind up in there. If you install a fresh copy of MySQL onto OS X from a MySQL package, they go into /usr/local/mysql/data.
    You have a couple of options for the transfer. 1) Using MySQL, use mysqldump to create SQL files of your database tables, both structure and data. 2) Using something like phpMyAdmin, you can export the tables into a structure that can then be imported on your 10.4 server. 3) Copy the relevant database directories from your /var/mysql directory on OS X 10.3 into the /var/mysql directory on your 10.4 Server. Either stop MySQL on 10.3 first or lock the tables before you do a copy. Then, after plopping them into the 10.4 directory, restart MySQL on 10.4 and you should be good to go.
    If you are interested in knowing how to use the tools like mysqldump or how to import from a text file, MySQL's site has a section of documentation on these: mysqldump / mysqlimport
    Xserve Dual 2.3 GHz / PowerMac Dual 2 GHz   Mac OS X (10.4.3)  

  • MySQL - Oracle: files only?

    Hi,
    I have downloaded MySQL data files from Ensembl (http://www.ensembl.org/Download/) and like to load it into an Oracle database without starting a local MySQL instance.
    Is it possible to read the MySQL data files and load it into an Oracle database?
    Regards,
    Andre

    Andre,
    The Oracle Migration Workbench works against a live mysql database (with running processes).
    Oracle has a tool called sql*loader (sqlldr) for loading flat files into oracle, you would have to configure it and the oracle database depending on the data.
    The alternative is to load the data into a mysql database and migrate the 'live' mysql database using the workbench.
    Regards,
    Turloch
    Oracle Migration Workbench Team

  • MySQL header files location

    I am compiling a newer version of php on an G4 box running OS X Server 10.5.8 and I get the following config error:
    +checking for specified location of the MySQL UNIX socket... /var/mysql+
    +configure: error: Cannot find MySQL header files under /usr/local/mysql.+
    +Note that the MySQL client library is not bundled anymore!+
    Where are the header files for MySQL on OS X Server? I have searched high & low and can't find them...
    Many thanks in advance.
    Paul

    I believe I have now found the cause and solution to the problem.
    http://support.apple.com/kb/TA25017?viewlocale=en_US
    This support page explains that the MySQL headers are not included in OS X 10.5 and that you need to follow the instructions to install them. Once I did this the php .configure build ran smoothly.

  • How to restore a mysql dump file to database using java

    hai friends,
    i'm developing an application. in that i need to back up and restore the database. i'm using mysql.
    in that i used a code to back up the db.. its working perfectly and the dump file is created perfectly..
    but while trying to restore the dump file nothing is happening...
    can anyone provide me a sample code to restore the dump to database using java code...
    thanks in advance...

    The first, biggest mistake you made in the code is that you didn't read standard output and error from the process, and/or you're ignoring exceptions. Because if you did, you would have read error messages that would have given you a clue what's wrong. (either that, or you ignored the clues, or didn't understand them and failed to tell us what the error messages are)
    The second mistake is that you invoked exec with the call that takes a single string, when that string includes whitespace not used as delimiters.
    The third mistake was that you used a terrible subject line for your post. Your problem is that you're having trouble with Runtime.exec. The fact that it's about mysql isn't relevent.
    The fourth mistake is that you didn't mention Runtime.exec at all until pushed. You should provide these details. When you try to self-diagnose something that you don't understand, and then hide information, you're just wasting everybody's time, including your won.
    The fifth mistake is that you're using poor spelling.
    The sixth mistake is that you still haven't said why you're doing this in Java.

Maybe you are looking for