Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    MYSQL




Can I Use Asp And ODBC Driver To Connect To MySql Database


I just migrated my access db to mysql and I'm trying to figure out how change my connections and code for mysql, I was told that I would have to use php, but I also read that it can be done with asp using an ODBC driver which I have installed on my server. If I use the ODBC driver would I be able use the same SQL that I used to connect to the access DB? what other issues would there be?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Configure MySQL ODBC Driver To Connect To A Mysql Server On My Own Side Of The Router?
Using MS Access, I have attached to MySQL servers in other states
and other countries on the other side of my router. But when I use the
MySQL ODBC driver 3.51 to connect to a MySQL server on my own LAN,
the driver tells me it cannot make the connection. Here are the ODBC
driver connection parms:

Data Source Name: (free field - name my "my linux box" will do nicely)
Host/Server Name (or IP) - something like MSQLUserName@ServerName.net
has worked fine for me in the past. Now I'm trying 192.168.1.106
Database Name - whatever, mysqldb works fine, any valid db

User - root
Password - myrootpass

Port - 3306 has worked fine 4 me N the past. Dunno whether 2 use now
SQL Command On Connect - haven't ever put anything here

Perhaps there is some configuration in mysql user privilege for the
mysqluser "root" that would prevent him from logging from a remote PC
to the mysql server?

ODBC Driver Setup - Don't Prompt On Connect
I have setup an ODBC driver for my MySQL database and use a 3rd party
program to connect to it. Everytime the software connects, the ODBC
driver setup screen pops up. I have to click OK on it to continue. I
set the parameter "Dont prompt on connect" in the options but this has
not solved the issue.

The system setup is Win2K SP2, MySQL 4.0.15, MySQL ODBC driver 3.51.

Connect MySQL To An Different Database Through ODBC
Is it possible to make a statement where you can import selected tables from a different datasource? Something like

INSERT INTO mysqltable
SELECT * FROM odbctable

Where "odbctable" connects through a connection string in de ODBC manager of Windows.
I know of a MySQL ODBC driver, but can MySQL communicate with ODBC itself on a Windows platform the other way around?

MySQL ODBC Driver 3.51
The table it is selecting on contains 64 rows.
here is an example piece of code:

strSQL = SELECT DISTINCT id from table where id = 10
set conn = CreateObject("ADODB.Connection")
conn.Open "Driver={MySQL ODBC 3.51 Driver}; Server=as3;Database=name","user","password"
set rs = conn.execute(strSQL)
'next line of code'

It takes 5 seconds plus to get the the next line of code from "set rs = conn.exec......."

MySQL ODBC 3.51 Driver
I have just installed the MySQL ODBC driver 3.51 on an XP machine
which is behind a proxy.When I configure my DSN, I can't access the MySQL server which is in the "outside" world.I get this error:

[MySQL] [ODBC 3.51 Driver] Unknown MySQL Server Host 'mysqlserver.com'
(11004)

When I click the [Configure] button in my DSN configuration, I cannot
see any field to define a proxy.

MySQL ODBC Driver Error
I am using C# to edit and view a MySQL database. I have added the ODBC driver for MySQL to my computer and I can add the database to my project in Visual Studio. At first it gives me an error and I have looked in other forums and found that there are two periods were their should only be one and I have since corrected this by editing the statementment in the designview with...

SELECT * FROM `mu`.`environment`

instead of

SELECT * FROM `mu`..`environment`

At this point when I click finish, VS2005 says there were errors generated with the tableadapter configuration, specifically the SELECT statement.

ERROR [HY010][MySQL][ODBC 3.51 Driver][mysqld-5.0.26-community-nt]

If I continue anyways I can preview the data just fine, however if I add a datagridview to my form it is blank. In the design view, it is not displaying any of columns. It is like the columns don't exist. What am I doing wrong? Also, I see there is a ADO.NET driver for MySQL, would that work better and if so how can I add the database to my project.

MySQL ODBC 3.51 Driver Very Slow!
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL
tables to a Microsoft Access 2003 database. I am finding that the data from
the MySQL tables takes a hell of a long time to load making any kind linkage
with my Access data virtually useless.

I have the MySQL driver setup in as a USER DSN. The MySQL data is sitting
out on a server and the Access database is running locally.

MySQL ODBC Driver In DataLink
I'm trying to use the Windows DataLink (udl) to set up a connection to a
MySQL database.

I've installed the 3.51 ODBC driver from the MySQL website - however, using
a DataLink, it doesn't show up as a DataSource -

How can I get it recognized there?

Configure MySQL ODBC Driver
I'm working on a MFC application and I need to be able to prompt the window "MySQL ODBC 3.51 Driver - DSN Configuration" for the user to configure a dsn connection...

This is like selecting the "ODBC Data Source Administrator", selecting the File DSN tab, clicking one of the dsn links and then pressing configure...

Is there a way to prompt this precise window programmatically?

SQLColumns Function And MySQL ODBC Driver
The MySQL ODBC driver returns an error when calling SQLColumns function with an empty Table parameter:

[MySQL][ODBC 3.51 Driver][mysqld-4.0.18-nt]Can't use wildcards in table name

Is there a newer version which supports wildcards in table name? Actually I don't really need wildcards, but I need to get the list of all columns in all tables.

URGENT: Error 1316 On Install Of MySQL Connector/ODBC Driver 3.51
I have my Vice President's laptop and trying to install the ODBC drivers for reporting that he needs.. and am facing a time crunch. I'm getting the following error, which I've never run into before. I thought the setup file was corrupt, so I re-downloaded her from another mirror, but I get the same error.

ERROR 1316. A network error occurred while attempting to read from the file

C:DOCUME~1cbockLOCALS~1Tempmysql-connect or -odbc-3.51.12-win32.msi

[MySQL][ODBC 3.51 Driver][mysqld-5.0.19-log]MySQL Server Has Gone Away
My site is hosted on Windows IIS, and I use ASP, and connect to MySQL 5.0.19 via an ODBC 3.51 driver.

MySQL is I think hosted on a Linux machine.

My problem is this:

My site keeps getting lots of these errors messages each day:

[MySQL][ODBC 3.51 Driver][mysqld-5.0.19-log]MySQL server has gone away

I mean hundreds - e.g. for Feb alone, so far, these errors have been logged in my error table:

New Version Of The ODBC Driver
Anybody know when the new version of the ODBC Driver is gonna be out? I'm using 3.51.11-1, but I'm having problems transferring information from SQL Server.

ODBC Driver Problem
I was successfully loading a table from ACCESS up to my host MySQL using the 3.51 ODBC driver. Then I upgraded my Windows 2000 sp3 to sp4 (and I think Microsoft updated Office at that time as well along with doing some security fixes.) Now Windows and ACCESS work, but I when transferrirng I get:
"ODBC - call failed
[MySQL][OBDC 3.51 Driver] User cancelled (#0)"
or
"Microsoft Access has encountered a problem and needs to close. We are sorry for the inconvenience."

Any clue as to what's calling this? I though about re-installing Access, but it looks like you have to re-install the whole Office if I do. I tried a repair on Access and also re-installed the dirver. No change.

ODBC Driver Setup
I have setup an ODBC driver for my MySQL database and use a 3rd party
program to connect to it. Everytime the software connects, the ODBC
driver setup screen pops up. I have to click OK on it to continue. I
set the parameter "Dont prompt on connect" in the options but this has
not solved the issue.

The system setup is Win2K SP2, MySQL 4.0.15, MySQL ODBC driver 3.51.

How To Establish A Connection Using ODBC Driver
i am comepletely new to the world of mySQL and really programming. i have downloaded and installed mySql and the ODBC driver. my understanding is that i can use java to create databases, and sends the queries to mysql using the odbc driver. if i am wrong, please steer me in the correct path.

further, i need to know what jav code i need to use to connect, using odbc connector, with mysql.

ODBC Driver Does Not Support The Requested Properties
I'm trying to log data to a certain schema on MySQL 5 server via DSN. MySQL connector/ODBC driver version is 3.51., running in Win XP.

*Sometimes* I receive the following error:

---
An error occurred calling 'LogResults' in 'DBLog' of 'DBLog 1.0 Type Library'
An error occurred executing a statement.
Schema: My Recordset.
Statement: My_Table.
ODBC driver does not support the requested properties.
Description: ODBC driver does not support the requested properties.
Number: -2147217887
NativeError: 0
SQLState:
Reported by: Microsoft OLE DB Provider for ODBC Drivers
Source: DBLog
---

The worst thing is that sometimes everything seem to be ok but no data is logged to database! This case is very confusing, the logging has been successfull before and I've not been able to trace this. I've checked the basics (SQL syntax, schema priviledges, ...).

ODBC Driver Problem In Limited Access Account
I am in need of some advice. We are running a client/server program and are using mysql for the database. We have a server running our main application, and then we install clients out in the field. They communicate to the server over the facility's standard network. The problem comes in when we hit a client computer that is not normally logged on as an administrator. We switch to the account with administrative rights so we can install our client software, and after the install the program runs fine. When we switch back to the user account with limited access, the program runs but cannot connect to the databases on the server. The ODBC drivers are loaded in the System DSN but are not working properly. If you try to configure them while you are in the limited access account it tells you that the driver cannot be found and that we should reinstall it. Is there anyway to get these drivers working under a limited access account?

ODBC To Connect Mysql
I would link to use VB to connect mysql using ODBC, but the mysql database is outside my OS. I'm sure that the setting of ODBC is done, but when I connect the ODBC, it prompt me the error message " Host 192.168.xxx.xxx is not allow to connect to mySQL server" What wrong with it?

Create Odbc Connect From Mysql To Oracle
can someone provide step by step instructions on how to set up a odbc connection from mysql to oracle and have records in a table transferred from a mysql table to an oracle table. Mysql and Oracle are on Solaris OS.

ODBC Can't Connect To MySQL Server On 'localhost' (10013) (2003; S1000)
I have xampp running. WinMySqlAdmin is correctly showing my database "finofix".
Using dosbox i can open the database using "mysql -ufinofix -p<pwd>;" and "use test;"
So everything looks allright.

My application runs on 'localhost'.
ODBC sytem-DSN definition: name=finofix, server= ,username=finofix, pwd=XXX, database=finofix

When running my PHP application I get:

msql,version 32.1.739,Nov 15 2000
ODBC: available data sources:
ODBC: finofix - MySQL ODBC 3.51 Driver
ODBC: database connect string is 'finofix/finofix/<password>'
ODBC: connecting to database
ODBC Error: [MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on 'localhost' (10013) (2003; S1000)

How To Connect To An ODBC Source
I need help connecting mysql to an Oracle database. The Oracle database is set as an ODBC driver on my PC. I currently use MS access, connect via the ODBC connection and it runs great.

I now want to connect to this ODBC connection using mysql, but I don't know how. Can anyone get me connected?

Unable To Connect To Database Server. Can't Connect To MySQL Server On 'localhost' (10055)
I am running a PHP application with mySQL . Some times it gives the following error.
I do not understrand why this error occures .

today i am using the application but it is not giving the error but error occures yested day .

Unable to connect to Database Server. Can't connect to MySQL server on 'localhost' (10055).

Cannot Connect To Mysql Database
I am creating a html page to allow user submit their inputs in the text fields and the inputs they inserted will be submitted into the table "account" which is in "myfyp" database. I created the database using the PHPMyAdmin and I am using localhost as the webserver.

The problem now is I cannot connect into the database which I received the connection error message as I have set in the codes. The PHP file which is linked with the HTML form i created is namely "register.php", while the connection file is "connect.php", and the HTML form is "register.html". Code:

How To Connect To MySQL Database
I have a program run in mysql database flatform (note that this program run and creat some mysql talble- i must not install mysql server). Now i want to connect to this database to view these table. I have tried to use mysql control center but it doesn't work (i think it because my program not have mysql server)

Connect One MySQL Database To Another
I need to connect a MySQL database on one server to another MySQL database on another server. The situation is similar to DBlinks in Oracle.

I know if you want to connect to another DB on the same server, you can use something like:

select a.cola, b.colc from thisdb.tablename as a, thatdb.tablename as b where a.colb = b.colb;

I need something similar but both databases reside on different servers altogether. Is it possible in MySQL and how can it be done?

Can't Connect To Mysql 5 Database.
I just installed the latest one but when i try to connect to it with MySQL administrator it sais im connecting to an MySQL 3.x server. and that it can only connect to 4.x ore higher.May it be something wrong in the setttings causing this error?

Could Not Connect To The Database, Please Recheck The Settings You Specified. Also Make Sure That A Database With The Name You Specified Already Exists On The Database Server. PhpAdsNew Will Not Create The Database For You, You Must Create It Manually
The error message I get above is the same everytime when trying to install phpAdsnew. I have tried everything. I am hosted through yahoo! and have actually succesfully installed scripts before even though I know nothing about it. Now that I have a "auto-install", it does not work. Yahoo! also offers php-nuke with the auto-install where you just click a few buttons, and I get a similar error stating that it can not conect to the database.

Please can anyone help me and tell me what I am doing wrong?

Connect To Remote Database(MySQL)
is there some sort of setting I need to turn on where I can access the database from another server. So instead of using "localhost" I can use the actual server IP address.

And just for future reference, is this how you set up a application server connecting to a database server?

Connect A FTP Server With A MySQL Database
I want to connect a FTP server with a MySQL database but I don't know if it possible...
In fact, I have a FTP server with some documents and I want to store these documents in my database... Is it possible?

Connect To MySQL Database Remotely
Im trying to connect to my MySQL database from a remote server. Im using the below asp srcipt but im having no luck. Im getting this error:

[MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on '83.146.35.143' (10060)

Can anyone tell me what i need to download to get the connection working or what settings i need to change? Im happy to change the driver im using. Im using Unbunu Server with MySQL 4.1.1 . Code:

Even Root Cannot Connect To Database 'mysql'
The version of my mysql server is 3.23.58. Before hand, everything works fine. However, when I connect to the data server sit in host 'A' from host 'B' by jdbc. As mysql's user table denied the access from host 'B', I know when attribute 'host' in table 'user' is set to '%' will fix the problem, However, I set it graphically from phpmyadmin.

After setting, the direct result is I cannot connect to any databases in this server@A even from A the error msg is: ERROR 1044: Access denied for user: '@localhost' to database 'mysql'. By googling, I copied the 'user.frm', 'user.MYD', 'user.MYI' from another host to the corresponding path in host A and restart mysqld.

It doesn't work. Then, I tried 'mysql_install_db', gone in vain either. It cost me nearly 2 whole days . I have many important databases stored in this server, I am afraind the install of a new one will bring more problems. Any suggestions, or ideas?

Connect Frm Cmd Line But Not Via Php To Mysql Database.
I have installed a new issue of mysql 4.1 and am able to build and control a database via the cmd line. However I can't connect using php. My system is windows XP.

My php commands require a pw and user name and I don't have a user name. I tried to connect to the root with php and could not. Below is the results and the php program I used. Code:

Connect To MySQL Database From Another Host.
I am trying to connect to MySQL database at on host (DBhost) from another host (PROGRAMhost).

While I try to connect to the database at DBhost from DBhost itself the next is working fine for me: mysql_connect("localhost","dbname","dbpassword")

Now I am trying to find out what to use instead of localhost? I tried to replace localhost with host's url : port (I tried number of ports) but this is not working (even when I am connecting from DBhost itself). How can I find out what is the proper value to use instead of localhost?

Cant Connect To Database With MySQL Administrator
I have to MySQL databases set up on different servers.  No matter what I try I cannot connect to either of them with any windows based clients such as MySQL adminstrator.  Both databases have users that allow a connection from any where and I can connect to them between servers just not windows.

Cannot Connect To MySQL Database Using An Applet
I have a database I created in mySQL. I've been entering data every day
into the database using a Java application that I wrote. The database
and the Java program are on the same Win 98 SE machine.

I've been working on another program (an applet) to send and receive
data over the internet. I got the applet to connect with the database
and receive data. All the while I was developing the applet, I would
tell it to find the database at 127.0.0.1 if I wasn't connected to the
internet, or I'd give it the current IP address of my connection if I
was. This seemed to work fine all along.

Now that the program is nearing completion, I uploaded a copy of it to
my personal web space to give it a "real-life" try. Code:

Can't Connect To Database After MySQL 4.1.10 Upgrade
I using Apache 1.3.31, PHP 4.3.8 and MySQL 4.1.10 on Win XP home edition. Prior to MySQL 4.1.10, I was using MySQL 4.0.18. The PHP scripts were able to connect to the database. After the upgrade, PHP scripts can't connect to the database.

Are there any specifications for MySQL 4.1.10 to work with PHP/Apache??? I would like to try to solve this before using the "System Restore" option.

Can Connect Mysql Database Through Router?
i have already used mysql server with many application done for testing for personal purposes, but i have found a issue that i cannot solve yet.

I installed a mysql server in a computer far away from where I stand, the thing is the ip address of this computer is given by a router and it is impossible to me to make a good communication to that server.

Is there any application, software o a possible way that i can communicate to this server?.

Connect To MySQL Database From Another Host.
I am trying to connect to MySQL database at on host (DBhost) from another host (PROGRAMhost).

While I try to connect to the database at DBhost from DBhost itself the next is working fine for me:
mysql_connect("localhost","dbname","dbpassword")

Now I am trying to find out what to use instead of localhost? I tried to replace localhost with host's url:port (I tried number of ports) but this is not working (even when I am connecting from DBhost itself). How can I find out what is the proper value to use instead of localhost?

MySQL Slow To Connect To Remote Database
I was running a PHP/MySQL web site with the database on the local web server. I needed to move the database off the webserver (located in the firewall DMZ) and onto its own machine (behind the firewall on our private network)

Now when I run my web site it goes really slow. I ran mysql from the command line on the web server and connected through to the database machine behind the firewall using
webserver:/# mysql -h 192.168.1.7 -u www-data -p

After I enter the password, it takes around 5-7s before I see the mysql> prompt.

Is mysql trying to do reverse dns on the IP address and timing out? I added the machine details to /etc/hosts so it would be recognized but no improvement. Or do I have something wrong with my mysql configuration?

Connect To Mysql Database From External Server
Im trying to set up a server purely for MySQL use.  The problem I have is I can connect to the database from Localhost but not from any other servers.  I have got both localhost and % users in my users table.

Connect Remote JSP Files With Local MySQL Database?
I use dreamweaver 8.0.
I have my jsp files on the remote server Z:.
I have my local computer 'A' connected to this server.
I have my MySQL database on my 'A' computer.
I want to know how to connect the remote JSP files with the database?
Currently I am using jdbc.odbc drivers on 'A' computer.
But my server computer has Linux and uses org.gjt.mm.mysql drivers.
Which drivers and Where should be the drivers?

Connect Remote JSP Files With Local MySQL Database?
I use dreamweaver 8.0.
I have my jsp files on the remote server.
I have my local computer connected to this server.
I have my MySQL database on my computer.
I want to know how to connect the remote JSP files with the database?
Where should be the ODBC-drivers?

Error Message: MYSQL RealTime: Failed To Connect Database Server Asterisk
I have installed asterisk version 1.2.14, asterisk-addons 1.2.5 and mysql version 4.1.21. on Red Hat linux version 9.0. I created the database 'asterisk' in mysql so that the asterisk cdr record can be stored in my sql. I has edited the asterisk modules.conf to load cdr_addon_mysql.so and also change the configuration in cdr_mysql.conf. Finally, i do a reset on asterisk.

I got the below error message after i reset my asterisk.

Error [6825]: cdr_addon_mysql.c:231 mysql_log: cdr_mysql:cannot connect to database

ERROR[6969]: res_config_mysql.c: 651 mysql_reconnect: MYSQL RealTime: Failed to connect database server asterisk on (err 1045). Check debug for more info.

MySql Driver?


I would like to know what kind of problem could trigger this error:

Quote:

Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The mysql driver is not currently installed' in C:wampwww estlibraryendDbAdapterPdoAbstract.php:79

I am using the Zend Framework and I am simply trying to insert data in a table.

How could I install a mysql driver? phpmyadmin works fine.

Org.gjt.mm.mysql.Driver
I'm using some 3rd-party JSP tag libraries and Java classes in my JSP, and get the following error when I run it:
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
Does any one know where this class sits, so that I can include it in the CLASSPATH.

Mac OS X: How Do I Identify A MySQL DB Driver?
My environment: Mac OS X (10.3.8) "Panther"

This is a very simple question from a neophyte slamming into brick walls.

I'm trying to connect Qt C++ (and XCode/Obj-C) to mysql database.

I'm assuming that the necessary DB driver comes with the standard mysql instillation (like via DarwinPorts on the Mac OS X (10.3.8).

I'm also assuming that the driver is a dynamic library.

1) How do I know that I have it?
2) What does it look like? I'm guessing 'libmysql3.dynlib' or something like this.
3) Is there an env variable to assign its path (for Darwin 7.8 --- BSD Unix)?
4) Or need I just hard link it during the make.

Odbc 3.51, Visual Studio 2003, Odbc DataAdapter
one Question. Is here anybody who had success in accessing a mySQL database
via the ODBCDataAdapter in the Visual Studio design view?

I get always Errors after creating the select Statement in the
ODBCDataAdapter Configurartion wizard. The error-Message tells me, that the
user has no permissons. If I do the access in Code, it works. But I want to
Create a Dataset in the Desing View.
----
in German:

mal ne Frage. Hat es hier schon mal jemand geschafft mit dem odbc
Dataadapter auf eine MySQL Datenbank zuzugreifen und zwar in der Design-View
vom VS?

Bei mir klappt das nur im VS 2003, und dann habe ich aber nachdem ich den
Select-Querie zusammengestellt habe Probleme mit dem Zugriff.

Wenn ich das ganze über Code probiere, klappt der Zugriff wunderbar. Aber
nicht über den Wizard.

Im alten VS geht das sowieso nicht. da kann man den ODBC DataAdapter nicht
konfigurieren.

Mysql Jdbc Driver Problem
I am trying to connect to mysql database using connector/J jdbc driver
this is my code

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

import java.util.*;

class JdbcTest1 {

public static void main(String[] args) {
// Connection conn = null;
// Statement st = null;
//R........................


Copyright © 2005-08 www.BigResource.com, All rights reserved