<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>MySQL</title><link>http://forums.asp.net/56.aspx</link><description>Discuss using MySQL as a data store for ASP.NET.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Unable to connect to any of the specified MySQL hosts</title><link>http://forums.asp.net/thread/2984227.aspx</link><pubDate>Thu, 05 Mar 2009 08:54:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2984227</guid><dc:creator>mona.said</dc:creator><author>mona.said</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2984227.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=2984227</wfw:commentRss><description>hi all 
i had the same problem and i fixed it be reconfigure the MYSQL itself as it by default not allow to connect other machine to it.
so check that is use as Server not developer, i hope it fix the problem
cheers :),
Mona said</description></item><item><title>MySql.Data.MySqlClient does not contain any public member</title><link>http://forums.asp.net/thread/2433647.aspx</link><pubDate>Thu, 19 Jun 2008 12:17:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2433647</guid><dc:creator>Webmonkeymon</dc:creator><author>Webmonkeymon</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2433647.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=2433647</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;daxmax:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Data Connections tab &lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;
&lt;p&gt;That post was helpful and I did connect.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Now I am back at this again but this time I cannot get the mysql.web.dll to register.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;MySql.Data.MySqlClient does not contain any public member&lt;/p&gt;
&lt;p&gt;the mysql.web.dll will not register.&amp;nbsp;&amp;nbsp; The&amp;nbsp;mysql.data.client cannot find theNamespace. &lt;/p&gt;
&lt;p&gt;i have added them to the projects, put the dll in the web bin folder, built the solutions and the built the website.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I also have another project open and working with a registered mysql.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I do not have it in the full project source code.&amp;nbsp; The full project shows me dependancies but will not let me add one.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I should have documented this better the first time. &lt;img src="http://forums.asp.net/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;/p&gt;
&lt;p&gt;-- i will this time. &lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Unable to connect to any of the specified MySQL hosts</title><link>http://forums.asp.net/thread/2364392.aspx</link><pubDate>Sun, 18 May 2008 08:18:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2364392</guid><dc:creator>daxmax</dc:creator><author>daxmax</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2364392.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=2364392</wfw:commentRss><description>&lt;p&gt;Here is my suggestion. Set up the server you want to work with on the Data Connections tab of&amp;nbsp; Visual Studio. With the 5.2.1&amp;nbsp; install of the .NET MySQL connector, it also installs some nifty features into VS like being able to view\edit\query,etc. to the Mysql database&amp;nbsp; from the Data connections window. &amp;nbsp; My point here is to check to see if the data connection, which is the formal way that mySQL developers suggest you create a tie in to your database, works.&amp;nbsp; You could have a firewall, norton,&amp;nbsp; etc. issue or it could be specific to Visual studio. Are you able to connect via MySQL Query browser?&amp;nbsp;&amp;nbsp; Check the permissions and if push comes to shove, load up a&amp;nbsp; http sniffer to see if the requested connection is actually going to the remote server and coming back with a response.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Unable to connect to any of the specified MySQL hosts</title><link>http://forums.asp.net/thread/2362839.aspx</link><pubDate>Fri, 16 May 2008 16:35:49 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2362839</guid><dc:creator>Webmonkeymon</dc:creator><author>Webmonkeymon</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2362839.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=2362839</wfw:commentRss><description>&lt;p&gt;i have the same error. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;However I am not using the .net connector&lt;/p&gt;
&lt;p&gt;i tried&amp;nbsp;odbc&amp;nbsp;and switched all the code to use the MySqlConnection but still same d@#$ thing.&lt;/p&gt;
&lt;p&gt;I can connect fine through visual studio, through&amp;nbsp;MySql Administrator and MySqlQuery browser.&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;For now I am connecting to another machine on my home network, but tried to two other remote mysql databases first.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;I have tried endless combinations of connection strings!&amp;nbsp;&amp;nbsp; Almost all of them work using visual studio or query browser.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;This is very important to me.&amp;nbsp; thanks&amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Unable to connect to any of the specified MySQL hosts</title><link>http://forums.asp.net/thread/2359668.aspx</link><pubDate>Thu, 15 May 2008 11:43:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2359668</guid><dc:creator>Sirsiljas</dc:creator><author>Sirsiljas</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2359668.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=56&amp;PostID=2359668</wfw:commentRss><description>&lt;p&gt;Hello friends&lt;/p&gt;&lt;p&gt;I am trying to connect to my MySql database on a dedicated server (from my home computer), but i keep running into different kind of errors. I keep debugging and try to solve the problems, but the last error is kinda driving me crazy, so I hope you can help me with my problem.&lt;/p&gt;&lt;ol&gt;&lt;li&gt;I have installed MySQL Connector .Net 5.2.1&lt;br /&gt;&lt;/li&gt;&lt;li&gt;I have installed MySQL Connector ODBC&lt;/li&gt;&lt;li&gt;I have created a new Project in VWD 2008 Express and included the MySql.Data.dll into my Bin folder&lt;/li&gt;&lt;li&gt;And I use the following code to connect to my MySql database:&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;b&gt;Web.config:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;lt;connectionStrings&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;myConStr&amp;quot; connectionString=&amp;quot;server=serverIP; database=dbName; user id=uName; password=pName;&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/connectionStrings&amp;gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;MasterPage.master.cs&lt;/b&gt;&lt;/p&gt;&lt;p&gt;using MySql.Data.MySqlClient;&lt;/p&gt;&lt;p&gt;....&lt;/p&gt;&lt;p&gt;try&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using (MySqlConnection con = new MySqlConnection(ConfigurationManager.ConnectionStrings[&amp;quot;myConStr&amp;quot;].ConnectionString.ToString()))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; con.Open();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using(MySqlCommand cmd = new MySqlCommand(&amp;quot;SELECT [field1] FROM [table] WHERE [field2] &amp;lt;= 10&amp;quot;, con))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using(MySqlDataReader dr = cmd.ExecuteReader())&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ddlUsers.DataSource = dr;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ddlUsers.DataBind();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dr.Close();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; con.Close();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch(Exception ex)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; errorMsgTop.Text = ex.Message.ToString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;&lt;b&gt;dllUsers&lt;/b&gt; is an &amp;lt;asp:DropDownList&amp;gt;.&lt;/p&gt;&lt;p&gt;But I keep getting this error: &lt;br /&gt;&lt;br /&gt;error msg: Unable to connect to any of the specified MySQL hosts.&lt;br /&gt;error source: MySql.Data&lt;/p&gt;&lt;p&gt;It&amp;#39;s complaining about &lt;b&gt;con.open()&lt;/b&gt;. I&amp;#39;ve tryed to connect with these database login values with my other (classic ASP) projekt and it works fine, but I can&amp;#39;t make it work with ASP.NET. Can you please help me with this problem? &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>