Also do not know how long it road can go, and then also do not have the skills of the gains and losses, procured self interest, can learn how much to learn how much ....
This is an example of using PHP to connect to ODBC (copied), ODBC should also be set, pay attention to the System DSN, colleagues say that using ODBC performance is not very good!
/* This ex
I,MySQLInstallation
1,
Http://dev.mysql.com/downloads/mysql/5.0.html
2. download content
(1)mysql-noinstall-5.0.45-win32.zip
(2)mysql-gui-tools-noinstall-5.0-r12-win32.zip
(3366mysql-connector-odbc-noinstall-3.51.21-win32.zip
3. Installation Steps
3.1 install the MySQL Service
(1) Create My. ini with the following content. Put the file in the Windows folder of the System Disk:
[Winmysqladmin]
Server = D:/MySQL-DB/mysql-5.0.45-win32/bin/mysqld-nt.exe
[
Today, there is a problem, although not a big problem, but for beginners also entangled me for a long time! (well)Problem:Running the JSP project does not connect to the database:Java.sql.SQLException: [MICROSOFT][ODBC Driver Manager] in the specified DSN, the architecture between the driver and the application does not match.I am using JDBC-ODBC Bridge connection
Label:First, open in the configuration file php.ini file, ODBC extension:Delete Php_pdo_odbc.dll this line commentIi. Configuring an ODBC data source 1. Open the Administrative Tools icon in the Control Panel.2. Double-click the data Source (ODBC) icon in it.3 Select the system DSN tab.4. Click Add in the System DSN tab.5. Select Microsoft
1. create the folder "AccessDb" under the site (my site is: E: \ javatest) and create the Database "test. mdb and table stu. The stu field is id and stuname test. mdb path: E: \ javatest \ AccessDb
For example:
2. Create the test connection database file "AccessTest. jsp" at the site (E: \ javatest"The Code is as follows:
Try {Class. forName ("sun. jdbc. odbc. JdbcOdbcDriver ");}Catch (ClassNotFoundExcep
Tags: SQL database Control Panel blank data source targetWhen we build a SQL database or SQL AlwaysON, how do we test if the connection is OK? One way is to "Configure ODBC-connected SQL Server" 1. Open ODBC Data Source Manager: Control Panel--〉ODBC Data source 650) this.width=650; "Style=" background-image:none; borde
database to the Instantclient_11_2 directory you just extracted. (can also be taken from any computer equipped with Oracle)The computer next to me is equipped with Oracle, and its network folder is G:\app\John\product\11.2.0\dbhome_1Step Three:To modify a Network\admin\tnsnames.ora file: Add the following lines of code at the end of the documentORCL81 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =
:3. Configure DSNAs below, the above section of the PBDB2015 is configured before it is available. How exactly is it configured?First click on the User DSN, then click Add, select Oracle in Instantclient10_2, the popup dialog is as shown in the figure below.The data source name is a custom. The main TNS Service Name should be written in full, such as 127.0.0.1:1521/pdbd2015. Local, 1521 port, DB instance name pdbd2015. Do not write only a local addres
1. create the folder "AccessDb" under the site (my site is: E: \ javatest) and create the Database "test. mdb and table stu. The stu field is id and stuname test. mdb path: E: \ javatest \ AccessDbFor example:2. Create the test connection database file "AccessTest. jsp" at the site (E: \ javatest"The Code is as follows:Try {Class. forName ("sun. jdbc. odbc. JdbcOdbcDriver ");}Catch (ClassNotFoundException e
Also do not know how long it road can go, and then other skills more than a temporary gain and loss, with their own interests, can learn how much more how much ....
This is an example of using PHP to connect ODBC (copied), ODBC also need to set up, note to Xuan System DSN, colleagues say that the performance of ODBC is not very good!
?/* This example is a demo
. Configure client computers, control Panel, data source, user dsn-> Add, select Oracle in Instantclient_12_1,tns Service name, select the database name, my name is XE, click Test Connection, if the prompt success is OK.8, to prevent garbled in the installation database on the computer (my ORACLE is installed on the window), view the Nls_lang value under Hkey_loc
Recently done a project, through the VC ODBC access to the Oracle database, on my computer can run normally, not on other computers, because there is no Oracle ODBC driver, unable to configure the Oracle data source. Most of the blog posts on the Web are installed by the
The following example is the simplest example of an ODBC connection to a MySQL database.
General steps:
1. Registration drive;
2. Establish a connection;
3. Create a statement;
4. Processing the results;
5. Release resources.
Attention:
1. Software development environment: MyEclipse 8.5+ MySQL5.1
2. The MySQL driver package nee
The connection method between the database and the development tool in B/S mode.1. Use ODBC to connect to the database:
ODBC provides three kinds of DSN, the difference is very simple: User DSN can only be used for this user. The difference between the system DSN and the file DSN is that the storage location of the connection
Configure/etc/odbc.iniExecute command: isql freeswitch freeswitch 123456-vFirst error:[08S01] [UnixODBC] [MySQL] [ODBC 5.3 (W) Driver] Can ' t connect to local MySQL server through socket '/tmp/mysql.sock ' (2)Reason: There is no/tmp/mysql.sock this file.Workaround: Ln-s/var/lib/mysql/mysql.sock/tmp/mysql.sock.A second error:[S1000] [UnixODBC] [MySQL] [ODBC 5.3 (W) Driver] Access denied for user ' freeswitc
source (ODBC ))
If the ODBC driver is successfully installed, open the ODBC data source Manager and you will be able to see the ODBC driver items:3. Configure DSN
As shown below, the above section of pbdb2015 is only available after configuration. How to configure it?First, click User DSN, then click Add, and select
A SQL Server instance that is connected through an ODBC
$connection = Odbc_connect ("MyData", "userid", "passwd");
$query = "SELECT * from tab_1 where no>0";
$result = Odbc_do ($connection, $query);
Print "
"; while (Odbc_fetch_into ($result, $fields)) {print "
\ n "; for ($i =; $i ";}}Print "
";
Odbc_close ($
Connection SQLServer2005 failed with error message:Error type:Microsoft OLE DB Provider for ODBC Drivers (0x80004005)[Microsoft] [ODBC SQL Server Driver] [DBNETLIB] General network error. Please check your network documentation.My connection string is: Driver={sql Server}; Server=192.168.10.139;database=testfax; uid=sa
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.