<?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/"
	>

<channel>
	<title>Eric Fickes &#187; mysql</title>
	<atom:link href="http://ericfickes.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://ericfickes.com</link>
	<description>Internets, Databases, Skateboards, Ice Hockeys, and Family</description>
	<lastBuildDate>Thu, 22 Jul 2010 22:45:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Invalid token &#8216;void&#8217; in class, struct, or interface member declaration</title>
		<link>http://ericfickes.com/2010/02/invalid-token-void-in-class-struct-or-interface-member-declaration/</link>
		<comments>http://ericfickes.com/2010/02/invalid-token-void-in-class-struct-or-interface-member-declaration/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 23:32:34 +0000</pubDate>
		<dc:creator>Eric Fickes</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[ADO.NET]]></category>
		<category><![CDATA[ADO.NET Entity Data Model]]></category>
		<category><![CDATA[edmx]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[visual studio 2008]]></category>
		<category><![CDATA[void]]></category>

		<guid isPermaLink="false">http://ericfickes.com/?p=1041</guid>
		<description><![CDATA[EDIT : After finishing this post I ran into all sorts of other strange issues and restarted using a Web Appliction instead of a plain old Website.  Between IntelliSense not showing any classes, to project reference issues, I couldn&#8217;t figured it out in time.  I&#8217;m sure there&#8217;s a way, I just had to move on.  So [...]]]></description>
			<content:encoded><![CDATA[<h2>EDIT :</h2>
<p>After finishing this post I ran into all sorts of other strange issues and restarted using a Web Appliction instead of a plain old Website.  Between <a title="IntelliSense is the BEST feature of all Visual Studios" href="http://en.wikipedia.org/wiki/IntelliSense" target="_blank">IntelliSense</a> not showing any classes, to project reference issues, I couldn&#8217;t figured it out in time.  I&#8217;m sure there&#8217;s a way, I just had to move on.  So maybe this ramble below will be helpful for someone.</p>
<address>EF</address>
<p>Just ran into something quirky with Visual Studio 2008&#8242;s new ADO.NET Entity Data Model wizard.  While working on an ASP.NET 3.5 website ( not a codebehind web application ) I was trying to get the ADO.NET Entity Data model wizard to work with MySQL and ran into a probable Visual Studio bug.  To sum up the issue, if you are going to add a new edmx to your project, do NOT save it to the App_Code folder initially.  Put it in your root folder, compile your project, then move the edmx where you&#8217;d like.</p>
<p>Assuming you&#8217;ve already created your ASP.NET Website project, here&#8217;s how you reproduce this issue.</p>
<h3 style="text-align: center;"><strong>Right click your project and left click &#8216;Add New Item&#8217;</strong></h3>
<p style="text-align: center;">
<div id="attachment_1042" class="wp-caption aligncenter" style="width: 390px"><a href="http://ericfickes.com/wp-content/uploads/2010/02/vs1-AddNewItem.png" rel="lightbox[1041]"><img class="size-full wp-image-1042" title="Add New Item" src="http://ericfickes.com/wp-content/uploads/2010/02/vs1-AddNewItem.png" alt="Right click your project, left click Add New Item" width="380" height="225" /></a><p class="wp-caption-text">Add New Item</p></div>
<h3 style="text-align: center;"><strong>Select ADO.NET Entity Data Model, name it, select your language of preference</strong></h3>
<p style="text-align: center;">
<div id="attachment_1045" class="wp-caption aligncenter" style="width: 372px"><a href="http://ericfickes.com/wp-content/uploads/2010/02/vs2-NewEDM1.png" rel="lightbox[1041]"><img class="size-full wp-image-1045" title="New ADO.NET Entity Data Model" src="http://ericfickes.com/wp-content/uploads/2010/02/vs2-NewEDM1.png" alt="New ADO.NET Entity Data Model" width="362" height="466" /></a><p class="wp-caption-text">ADO.NET Entity Data Model</p></div>
<h3 style="text-align: center;"><strong>Click Yes to the &#8216;Store in App_Code&#8217; prompt</strong></h3>
<p style="text-align: center;"><strong> </strong></p>
<div id="attachment_1046" class="wp-caption aligncenter" style="width: 500px"><strong><strong><a href="http://ericfickes.com/wp-content/uploads/2010/02/vs3-AddToAPP_CODE.png" rel="lightbox[1041]"><img class="size-full wp-image-1046" title="Place your edmx in App_Code folder" src="http://ericfickes.com/wp-content/uploads/2010/02/vs3-AddToAPP_CODE.png" alt="Place your edmx in App_Code folder" width="490" height="199" /></a></strong></strong><p class="wp-caption-text">Place file in &#39;App_Code&#39; folder</p></div>
<p><strong> </strong></p>
<h3 style="text-align: center;"><strong>Complete the new Entity Data Model wizard</strong></h3>
<p style="text-align: center;"><a title="ADO.NET DataEntities and WCF Feeding a Silverlight DataGrid" href="http://silverlight.net/learn/tutorials/adonetdataentities-cs/" target="_blank">See this tutorial if you have not done this before</a></p>
<p style="text-align: center;">
<p style="text-align: center;">
<h3 style="text-align: center;"><strong>Compile project after completing wizard</strong></h3>
<p style="text-align: left;">
<div id="attachment_1047" class="wp-caption aligncenter" style="width: 665px"><a href="http://ericfickes.com/wp-content/uploads/2010/02/vs4-BuildFail.png" rel="lightbox[1041]"><img class="size-full wp-image-1047" title="Invalid token 'void' in class, struct, or interface member declaration" src="http://ericfickes.com/wp-content/uploads/2010/02/vs4-BuildFail.png" alt="Invalid token 'void' in class, struct, or interface member declaration" width="655" height="399" /></a><p class="wp-caption-text">Invalid token &#39;void&#39; in class, struct, or interface member declaration</p></div>
<p style="text-align: left;">At this point your project should have a new.edmx file located inside of the App_Code folder, but the project won&#8217;t build without failing.  If you are stuck in this predicament, follow this workaround.</p>
<h3 style="text-align: center;"><strong>Move .edmx to root folder and rebuild</strong></h3>
<p style="text-align: left;"><strong> </strong></p>
<div id="attachment_1048" class="wp-caption aligncenter" style="width: 346px"><strong><strong><a href="http://ericfickes.com/wp-content/uploads/2010/02/vs5-move_edmx.png" rel="lightbox[1041]"><img class="size-full wp-image-1048" title="Move edmx to root and recompile, no errors!" src="http://ericfickes.com/wp-content/uploads/2010/02/vs5-move_edmx.png" alt="Move edmx to root and recompile, no errors!" width="336" height="468" /></a></strong></strong><p class="wp-caption-text">WORKAROUND : move edmx to root folder, then recompile</p></div>
<p><strong> </strong></p>
<p style="text-align: left;">
<p style="text-align: left;">After moving your edmx file to the root folder you should be able to compile without problem.  Assuming this solves your problem, you should be able to move your edmx file to the App_Code folder without problem.  Seems like an initial compile problem<strong>.<br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://ericfickes.com/2010/02/invalid-token-void-in-class-struct-or-interface-member-declaration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Copy a MySQL database to your local MySQL machine</title>
		<link>http://ericfickes.com/2008/12/copy-a-mysql-database-to-your-local-mysql-machine/</link>
		<comments>http://ericfickes.com/2008/12/copy-a-mysql-database-to-your-local-mysql-machine/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 03:43:04 +0000</pubDate>
		<dc:creator>Eric Fickes</dc:creator>
				<category><![CDATA[command line]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[copy database]]></category>
		<category><![CDATA[dump file]]></category>
		<category><![CDATA[export database]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[import database]]></category>
		<category><![CDATA[mysql5]]></category>
		<category><![CDATA[phpMyAdmin]]></category>

		<guid isPermaLink="false">http://ericfickes.com/?p=343</guid>
		<description><![CDATA[Here&#8217;s one way to copy a MySQL database from one server to another using phpMyAdmin, and the MySQL command line client. Requirements : MySQL 5.x installed on your local machine MySQL command line client on your local machine Access to phpMyAdmin on your source MySQL machine Assumptions: You have access to the MySQL command line [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s one way to copy a MySQL database from one server to another using phpMyAdmin, and the MySQL command line client.</p>
<p><strong>Requirements :</strong></p>
<ul>
<li>MySQL 5.x installed on your local machine</li>
<li>MySQL command line client on your local machine</li>
<li>Access to phpMyAdmin on your source MySQL machine</li>
</ul>
<p><strong>Assumptions:</strong></p>
<ul>
<li>You have access to the MySQL command line client.</li>
<li>You have the root password for your local MySQL instance</li>
<li>You are comfortable using phpMyAdmin and MySQL command line client</li>
</ul>
<p><strong>Instructions:</strong></p>
<ol>
<li>Log into phpMyAdmin on your source MySQL machine.</li>
<li>Click the Export link on the lower part of the home page.</li>
<li>Select your database in the &#8216;Export&#8217; box on the left.</li>
<li>Make sure SQL is selected under the database box.</li>
<li>In the &#8216;Options&#8217; box on the right, make sure Structure and Data are selected.</li>
<li>Make sure to check &#8216;Add DROP TABLE / DROP VIEW&#8217; as well.</li>
<li>Towards the bottom, check the box next to &#8216;Save as file&#8217;.  This will be the file we import later.</li>
<li>Click the GO button, and your browser should prompt you to download your SQL file.  *Make note of where you saved your exported sql file.  I saved mine to d:\downloads\import.sql because it&#8217;s an easy path to use later.</li>
<li>Open your local MySQL Command Line Client.  ( From MySql Program menu or type &#8220;<strong>mysql -u root -p</strong>&#8221; in the run dialog box ).</li>
<li>Enter your root password when prompted.</li>
<li>Import your database by running this command &#8220;<strong>mysql \. d:\downloads\import.sql</strong>&#8220;.  Be sure to adjust the path to match where you saved your sql file from step 8.</li>
<li>Now you should see your database listed when you run the command &#8220;<strong>show databases;</strong>&#8220;</li>
</ol>
<p> </p>
<p>Here are instructions for doing the same thing on OS X</p>
<ol>
<li>Follow steps 1 through 8 above to created your sql export file</li>
<li>Connect to mysql &#8220;/usr/local/mysql/bin/mysql -u root -p&#8221;</li>
<li>{enter root password}</li>
<li>If it&#8217;s not already created, created your databse &#8220;create database {your db name};&#8221;</li>
<li>Select your database &#8220;user {your db name};&#8221;</li>
<li>&#8220;mysql \. /users/ericfickes/Downloads/mydbfile.sql&#8221;</li>
</ol>
<p>Be sure to adjust the paths listed to match your MySQL install, and the location where you downloaded the sql file.</p>
]]></content:encoded>
			<wfw:commentRss>http://ericfickes.com/2008/12/copy-a-mysql-database-to-your-local-mysql-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
