Databases :: Use Connector / NET On Win 2008 Server To MySQL On Linux?
Mar 9, 2010
I have Connector/NET working on my windows 2008 web server. We are moving the MySQL DB from localhost on that windows 2008 server to a new Linux server. The tables are copied over. I can connect to them in the cmd line using all the same credentials.
When I try to connect via my ASP.NET application I get the ambiguous Error:
"Unable to initialize provider. Missing or incorrect schema."
I just moved to a new 2008 64 Bit Server. We are using MySQL, now also the 64 Bit version. Now I found out that there is a 64 Bit ODCB Driver, but not an 64 Bit Net/Connector.
Is that an issue or is the .NET Connector by default 32 and 64 Bit?
environment: W7 Ultimate 64, VS2008, Mysql 5.1.45, Connector .Net 6.2.2
.aspx environment: a DropDownList (DDL) triggers a DetailsView (DV). All functions (select, edit, new ...etc) work fine.
Now, in the same .aspx page I use Event "SQLDSDVKlient_Inserted" to get the Last inserted record ID using "ExecuteScalar" method! This to fill the DV with the just created record using "New" (see code below).
on "cnn.Open()" I get below error msg; Event code 3005!
Some additional info:
a) keep in mind this all happens in the same .aspx page b) In the MySQL wizard (5.1.45) I clicked the "allow remote connections". c) the ConnectionString is copied out of web.config (remind you: all 'normal' DV functions work fine.I.e. I certainly can connect to my MySQL DB.) d) When using, in ConnectionString, the parameters "Allow User Variables=True;old guids = true" I get, on statement "cnn = New Data.SqlClient.SqlConnection(connString)" a msg: Keyword not supported"; so I removed it. e) without above connectionstring parm I get on statement "cnn.Open()" below error msg: where I need help!
Questions:
1) why does the system suddenly bring the remote connection into play?; I'm always on the same machine, same .aspx page! 2) what is the role of the "mysql connector.net" (6.2.2) in this scenario ?
I am with GoDaddy (yeah, yeah, don't want to hear it) and must use ODBC to connect to my MySQL database. The connections are working fine but I have a GridView/DetailsView parent/child relationship set up between 3 pages. I know that these pages worked with a .NET Connector locally but after I changed them to ODBC, I only get the first part of the page, nothing that depends on data being selected works. This has led me to believe that I must alter the way I pass parameters to the next request page. I have read some things about using a question mark but I cannot figure out how I should apply it to my page as most examples are in C# or VB. My page is mostly pure ASP.NET and I'm not sure if I still continue to utilize the asp:ControlParameter. the code below.
how to get GoDady to alter their medium trust to accept sockets???? That's all it would take
This is the page my employees will use to view the people in the database and then select them and have a details view of that particular cust_code (customer code) pop up to the right of the gridview:
[Code]....
This is the page ( UpdatePrefCustomers.aspx ) that my employees, who will be allowed access it (yes, I already know how to apply authorization but will do it last before deployment so it doesn't drive me crazy when I preview in browser), will use to add, edit, and delete from the database. It must be accessed first and the other two pages, prefcust_edit.aspx and prefcust_insertt.aspx are called from it by passing the parameter cust_code:
I am starting a new project where I have to use oracle and asp.net. Oracle 11 enterprise edition. Problem is oracle database reside in linux server and application server is in windows. My question is1. Is there any problem connecting oracle from asp.net?
My local computer is 64 bit but the downloads for the .Net mySql connector found here:[URL]are 32 bit. I installed the 32 bit file however, whenever I try to input any new connector information after the 1st keystroke the box disappears. So I'm assuming that it has more to do with my machine being 64 bit rather than 32. Is there a 64 bit version of this connector?
UPDATE:
It is the Add a Connection box.
After I enter anything into any of the textboxes the above box just disappears.
I'm trying to connect my app to my database hosted on my web space. I have a newbie query.Do I have to install Connector/Net 6.8.3 on my web space's server, or, can I install it locally and just change a config file of some sort on my server version? If the latter is possible, what is my best (and easiest) way of developing / testing in two DB environments? the testing server will be my online one so I don't mind having to manually edit something each time after I publish it.
In Visual Web Developer 2008, creating new sqldatasource connection, I not find ".NET Framework Data Provider for MySQL". I have already installed MySQL Connector/Net 6.2. I could add a reference to MySql.Data. Why!
I just downloaded and installed the most recent MySQL .net connector, 6.3.6 and it connects to the DB just fine. My problem is with the web.config settings I have set for it. It seems that theMinRequiredNonAlphanumericCharacters property is hard coded to '1'.I've changed this to 0, 5, or any other number. I even setup a web page to just display the properties of the provider. If I change the values in the web.config, the values update. It seems that MinRequiredNonAlphanumericCharacters won't change.
[Code]....
Again, the DB connection works just fine, reason I did not post the connection string. The min password length at 44 was just for testing.
[Code]....
Of the three I only tested, only MinRequiredNonAlphanumericCharacters stays at '1' no matter what I change it to in the web.config. I even changed it to 'abcd' and received no .NET runtime errors. Me thinks it is hard coded some where or I'm not using the right property name in the web.config. I copied the web.config value straight from the example in the documentation that came with the MySQL .net connector.
First one will be: I've installed MySql, Query broswer, and ODBC connector (not sure what this one does. Can anyone explain?)
Now, when im dragging a new DataGridView into the form, and try to connect it to a MySql database, i can't seem to find MySql in the databases list... why is that?
Second question, assuming everything works fine, how can i upload the database to a server and use it there?
I can think of two problems trying to do this : (1) Im not sure where my Database files are stored at... (for some reason, they are not found in MySql/Data... this folder is completly absent)
(2) While working with ACCESS, all i had to do is to point the .aspx page that did the connecting to the location of the .mdb file, but now, each time i want to reach my database, i need to send the page to the server (localhost). How will i create a connection to my database, when its on another server, in the code page ? (small code example would be nice).
System.Data.Odbc.OdbcException: ERROR [HY000] [MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on '127.0.0.1' (10048)ERROR [HY000] [MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on '127.0.0.1' (10048)
I have used ASD.NET code using SQL Database for Transaction operation successfully. By changing the Database Code to interface with MYSQL an Error occurs. If I remove the Transaction Code from within the the application, it works OK by displaying the MYSQL data (Read Only) in the layout of the application. I am using Mysql Essential-4.1.22-win32 and MYSQL Connector ODBC-3.51.2. My objective is to EDIT the MYSQL Data.
My kind webhost (1and1) royally asked me to go elsewhere to do something like this.
I have 2 sites. One of them was developed by a .Net programmer. Now I am contracted to implement a PHP site and fetch data from the .Net site.
There is an ASP.Net form that a customer fills and when they hit submit, the data gets stored in SQL Server DB. How do I also store the same data in MySQL parallelly? I cannot directly use some database connectors with ASP.Net since MySQL connectivity is not supported on 1and1 Windows hosting (biz account, no less!).
What I thought of is to publish an RSS feed of entries in ASP.Net site and routinely scrape that data into MySQL on Linux host. It is an overkill, I know. Not efficient.
i have a simple questions. I am programming in Visual studio using vb.net. As Database i am using mysql with the .Net connector and using the membership provider. Do i need to install microsoft sql server 200X too ? (although i will not use it)
I m using visual studio 2010 and i downloaded mySQL connector /net 6.3 (latest one). But when i try to connect mySQL Server it says "there is no support prior to 5.0". I think our mySQL server is version 4.0. How can i connect it?
I am trying to store a SQL Server datetime into MySQL datetime field, but MySQL stores the date value as all zeros. I use this function to trim the fractional part from the SQL Server datetime, but get the same result when trying to store it in MySQL.
I am fairly new to ASP.net - comming from a PHP / MYSQL background sometimes certain things in ASP.net confuse the hell out of me. In PHP - when writing an application you always connect to an external database server (MYSQL , PostGreSQL ) using a username and password and aswell a datbase server address(mostly localhost). Now with ASP.net i noticed that you can connect to an existing database within SQL server or you can create a local database in the App_Data folder.
The local database seems much easier to work with however my concern is what would you store in a local database? surely you cannot use it as a main database to store all your data(compared to a MYSQL database)? Secondarily with SQL server - when i login into SQL server management express , it uses "Windows Authetication" , i tried to select "Sql Server authentication" and enter my own username and password to login but that did'nt work. How do i deploy a database from SQL server to the web? - in MYSQL for example we would have a SQL dump file , which can be simply imported/exported from server to server.