<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Gebze Web Tasarım &#187; MySQL</title>
	<atom:link href="http://hasangursoy.com.tr/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://hasangursoy.com.tr</link>
	<description></description>
	<lastBuildDate>Mon, 06 Feb 2012 20:38:42 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hasangursoy.com.tr' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/ca833ba944afdcd9a5199f9a29361595?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Gebze Web Tasarım &#187; MySQL</title>
		<link>http://hasangursoy.com.tr</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hasangursoy.com.tr/osd.xml" title="Gebze Web Tasarım" />
	<atom:link rel='hub' href='http://hasangursoy.com.tr/?pushpress=hub'/>
		<item>
		<title>Asp.Net&#8217;te MySQL ile Kimlik Doğrulama ve Yetkilendirme</title>
		<link>http://hasangursoy.com.tr/2008/09/09/aspnette-mysql-ile-kimlik-dogrulama-ve-yetkilendirme/</link>
		<comments>http://hasangursoy.com.tr/2008/09/09/aspnette-mysql-ile-kimlik-dogrulama-ve-yetkilendirme/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 09:10:44 +0000</pubDate>
		<dc:creator>Hasan Gürsoy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Programlama]]></category>
		<category><![CDATA[web tasarımı]]></category>

		<guid isPermaLink="false">http://xspgroup.wordpress.com/?p=682</guid>
		<description><![CDATA[Dün Asp.NET Login Kontrollerinie MySQL ile kullanabilmek için tüm gün araştırdım durdum. Şimdi de bu bilgileri paylaşmak istedim. Eğer benim gibi asp.net&#8217;te yeni iseniz bu bilgiler illaki lazım olur. Çünkü genellikle SQL Server kullanılmak istenmez. İlk önce yapmanız gereken Mysql.Data 5.2.2&#8216;yi yüklemek(5.2.3 şu an son versiyon fakat ilerde göreceğiniz bir işlemi otomatik olarak yapmıyor). 5.2.2&#8242;i [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&amp;blog=942496&amp;post=682&amp;subd=xspgroup&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="snap_preview">
<p>Dün Asp.NET Login Kontrollerinie MySQL ile kullanabilmek için tüm gün araştırdım durdum. Şimdi de bu bilgileri paylaşmak istedim. Eğer benim gibi asp.net&#8217;te yeni iseniz bu bilgiler illaki lazım olur. Çünkü genellikle SQL Server kullanılmak istenmez.</p>
<p>İlk önce yapmanız gereken <strong>Mysql.Data 5.2.2</strong>&#8216;yi yüklemek(5.2.3 şu an son versiyon fakat ilerde göreceğiniz bir işlemi otomatik olarak yapmıyor). 5.2.2&#8242;i <a href="http://mirror.csclub.uwaterloo.ca/mysql/Downloads/Connector-Net/mysql-connector-net-5.2.2.zip" target="_blank">buradan</a> bulabilirsiniz.</p>
<p>Projenizin web.config dosyasını açıp bağlantı cümlelerine aşağıdaki gibi bir bağlantı ekleyin:</p>
<p><code><strong>&lt;connectionStrings&gt;<br />
&lt;remove name=”LocalMySqlServer”/&gt;<br />
&lt;add name=”LocalMySqlServer” connectionString=”server=localhost; user id=root; password=toor; persist security info=true; database=dorknozzle;” providerName=”MySql.Data.MySqlClient”/&gt;<br />
&lt;/ connectionStrings&gt;</strong></code></p>
<p>Proje referanslarına (Projeye sağ tıklayıp&gt;Property Pages&#8217;dan) MySQL.Data&#8217;yı eklemeniz tavsiye edilir.</p>
<p><strong>Mysql.Data</strong> ve <strong>Mysql.Web</strong> dll&#8217;lerini projenizin içindeki <strong>Bin</strong> klasörüne kopyalayın. Sonra da Solution Explorer&#8217;ı tazeleyin.</p>
<p><em>Dikkat machine.config dosyasında değişiklik yapmanız pek tavsiye edilmeyen birşeydir. Ama mysql için bunları eklememiz gerekiyor. Ve unutmayın ki asp.net servis sağlayıcınız MySQL&#8217;i desteklemeyebilir. Bunu en başta sorun.</em></p>
<p>machine.config dosyasını açıp aşağıda belirtildiği yere <strong>autogenerateschema=”true” </strong>niteliğini ekleyin:</p>
<p><code>&lt;membership&gt;<br />
&lt;providers&gt;<br />
&lt;add name=”MySQLMembershipProvider” <strong>autogenerateschema=”true” </strong>type=”MySql.Web.Security.MySQLMembershipProvider, MySql.Web, Version=5.2.2.0, … /&gt;<br />
&lt;/providers&gt;<br />
&lt;/membership&gt;</code></p>
<p>Sitenizin konfigurasyon sayfasını açın (Açılmış olan projede, Website &gt; ASP.NET Configuration yolunu izleyin, ya da Solution Explorer&#8217;daki çekik ve dünya ikonuna tıklayın). Provider sekmesinde Membership Provide listesinden <strong>MySQLMembershipProvider</strong>&#8216;ı<strong></strong> ve Role Provider listesinden de <strong>MySQLRoleProvider</strong>&#8216;ı seçin. İsterseniz test linklerine basıp bağlantıları kontrol edebilirsiniz.</p>
<p>Ben eğitim süresince aşağıdaki hatalarla karşılaştım (en azından hatırladıklarım ve kaydettiklerim bunlar)  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  /&gt; :</p>
<p><code>There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.</code></p>
<p><code>The following message may help in diagnosing the problem: <strong>Unable to initialize provider. Missing or incorrect schema. (c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 145)</strong></code></p>
<p>Ayrıca aşağıdaki linkler çok faydalı oldu. Ortadaki link en faydalısı (tümü İngilizce kaynaklardır):</p>
<p><a href="http://www.dotnetsurfers.com/Blog/2007/12/12/UsingMySQLWithAspnetForAuthenticationauthorization.aspx" target="_blank">www.dotnetsurfers.com</a><br />
<a href="http://blog.nolanbailey.com/2008/03/08/mysql-aspnet-membership-and-role-provider/194" target="_blank">blog.nolanbailey.com</a><br />
<a href="http://forums.asp.net/t/1270199.aspx" target="_blank">forums.asp.net</a></p>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xspgroup.wordpress.com/682/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xspgroup.wordpress.com/682/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xspgroup.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xspgroup.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xspgroup.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xspgroup.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xspgroup.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xspgroup.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xspgroup.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xspgroup.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xspgroup.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xspgroup.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xspgroup.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xspgroup.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xspgroup.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xspgroup.wordpress.com/682/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&amp;blog=942496&amp;post=682&amp;subd=xspgroup&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hasangursoy.com.tr/2008/09/09/aspnette-mysql-ile-kimlik-dogrulama-ve-yetkilendirme/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef44f444d737c62ba6a047d7ccdf187c?s=96&#38;d=&#38;r=PG" medium="image">
			<media:title type="html">HasanG</media:title>
		</media:content>
	</item>
		<item>
		<title>Asp.Net Authorization &amp; Authentication with MySQL</title>
		<link>http://hasangursoy.com.tr/2008/09/09/aspnet-authorization-authentication-with-mysql/</link>
		<comments>http://hasangursoy.com.tr/2008/09/09/aspnet-authorization-authentication-with-mysql/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 08:36:48 +0000</pubDate>
		<dc:creator>Hasan Gürsoy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[asp.net login controls]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[Authorization]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[visual web developer]]></category>

		<guid isPermaLink="false">http://xspgroup.wordpress.com/?p=678</guid>
		<description><![CDATA[I&#8217;ve been googling all day to find out how to use the ASP.NET Login Controls with MySQL. And finaly I did it. I&#8217;m sharing this knowledge here. Firstly I&#8217;ve installed Mysql.Data 5.2.2 (version 5.2.3 doesn&#8217;t auto generate schema). You can download it from here. Add connection string in your web.config file for the database connection: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&amp;blog=942496&amp;post=678&amp;subd=xspgroup&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been googling all day to find out how to use the ASP.NET Login Controls with MySQL. And finaly I did it. I&#8217;m sharing this knowledge here.</p>
<p>Firstly I&#8217;ve installed <strong>Mysql.Data 5.2.2</strong> (version 5.2.3 doesn&#8217;t auto generate schema). You can download it from <a href="http://mirror.csclub.uwaterloo.ca/mysql/Downloads/Connector-Net/mysql-connector-net-5.2.2.zip" target="_blank">here</a>.</p>
<p>Add connection string in your web.config file for the database connection:</p>
<p><code><strong>&lt;connectionStrings&gt;<br />
&lt;remove name="LocalMySqlServer"/&gt;<br />
&lt;add name="LocalMySqlServer" connectionString="server=localhost; user id=root; password=pwd; persist security info=true; database=your_database;" providerName="MySql.Data.MySqlClient"/&gt;<br />
&lt;/ connectionStrings&gt;</strong></code></p>
<p>I have copied dll&#8217;s from MySql Program Files folder <strong>Mysql.Data</strong> and <strong>Mysql.Web</strong> into my application&#8217;s <strong>Bin</strong> folder and refreshed the Solution Explorer from Visual Studio.</p>
<p>Then edited my machine.config file and added <strong>autogenerateschema=&#8221;true&#8221; </strong>attribute<strong> </strong>at this line:</p>
<p><code>&lt;membership&gt;<br />
&lt;providers&gt;<br />
&lt;add name="MySQLMembershipProvider" <strong>autogenerateschema="true" </strong>type="MySql.Web.Security.MySQLMembershipProvider, MySql.Web, Version=5.2.2.0, ... /&gt;<br />
&lt;/providers&gt;<br />
&lt;/membership&gt;</code></p>
<p>Finaly opened my ASP.Net Site Configuration (With the web site project loaded in Visual Web Developer, select Website › ASP.NET Configuration). Selected <strong>MySQLMembershipProvider </strong>from Membership Provide&#8217;s list and <strong>MySQLRoleProvider </strong>from Role Provider at <strong>Provider </strong>Tab. You can also do a test if the connection is ok.</p>
<p>I had these errors during the learning process :</p>
<p><code>There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.</code></p>
<p><code>The following message may help in diagnosing the problem: <strong>Unable to initialize provider. Missing or incorrect schema. (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 145)</strong></code></p>
<p>You could also see these pages. They got really helpfull to me:</p>
<p><a href="http://www.dotnetsurfers.com/Blog/2007/12/12/UsingMySQLWithAspnetForAuthenticationauthorization.aspx" target="_blank">www.dotnetsurfers.com</a><br />
<a href="http://blog.nolanbailey.com/2008/03/08/mysql-aspnet-membership-and-role-provider/194" target="_blank">blog.nolanbailey.com</a><br />
<a href="http://forums.asp.net/t/1270199.aspx" target="_blank">forums.asp.net</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xspgroup.wordpress.com/678/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xspgroup.wordpress.com/678/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xspgroup.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xspgroup.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xspgroup.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xspgroup.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xspgroup.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xspgroup.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xspgroup.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xspgroup.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xspgroup.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xspgroup.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xspgroup.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xspgroup.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xspgroup.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xspgroup.wordpress.com/678/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&amp;blog=942496&amp;post=678&amp;subd=xspgroup&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hasangursoy.com.tr/2008/09/09/aspnet-authorization-authentication-with-mysql/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef44f444d737c62ba6a047d7ccdf187c?s=96&#38;d=&#38;r=PG" medium="image">
			<media:title type="html">HasanG</media:title>
		</media:content>
	</item>
	</channel>
</rss>
