<?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>Shawson&#039;s Code Blog &#187; mySQL</title>
	<atom:link href="http://codeblog.shawson.co.uk/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://codeblog.shawson.co.uk</link>
	<description>development notes for my failing memory</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:00:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>MySQL 5.1 with DotNet claims Procedure or function &#8216;&#8216; cannot be found in database &#8216;&#8216;</title>
		<link>http://codeblog.shawson.co.uk/mysql-5-1-with-dotnet-claims-procedure-or-function-cannot-be-found-in-database/</link>
		<comments>http://codeblog.shawson.co.uk/mysql-5-1-with-dotnet-claims-procedure-or-function-cannot-be-found-in-database/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 13:45:09 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[mySQL]]></category>

		<guid isPermaLink="false">http://codeblog.shawson.co.uk/?p=1174</guid>
		<description><![CDATA[We have some dot net code which uses MySQL- our live setup it thus; MySQL 5.1.45 MySQL Dot net connector dll version 6.2.2.0 We recently rebuilt our dev server, and installed MySQL 5.1- it turns out the minor revision number was slightly higher, but nothing to set off any alarm bells, or so we thought; [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/mysql-5-phpmyadmin-installation-root-account-not-accepted/' rel='bookmark' title='MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted'>MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-command-line-setting-up-a-new-database-and-user/' rel='bookmark' title='MySQL Command Line &#8211; Setting up a new database and user'>MySQL Command Line &#8211; Setting up a new database and user</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-backup-restore/' rel='bookmark' title='MySQL Backup &amp; Restore'>MySQL Backup &#038; Restore</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>We have some dot net code which uses MySQL- our live setup it thus;</p>
<p>MySQL 5.1.45<br />
MySQL Dot net connector dll version 6.2.2.0</p>
<p>We recently rebuilt our dev server, and installed MySQL 5.1- it turns out the minor revision number was slightly higher, but nothing to set off any alarm bells, or so we thought;</p>
<p>MySQL 5.1.57</p>
<p>With this combination or MySQL connector 6.2.2.0 and MySQL 5.1.57, we couldn&#8217;t execute any stored procedures- we would just get;</p>
<p>Procedure or function &#8216;
<procedure-name>&#8216; cannot be found in database &#8216;<database-name>&#8216;</p>
<p>Googling turned up lots of suggestions like &#8220;make sure your connection string is lower case&#8221; etc etc- nothing fixed our issue.</p>
<p>We found the solution was to update our MySQL dot net connector to the latest, which at time of writing was 6.3.7.0.</p>
<p>You can <a href="http://dev.mysql.com/downloads/mysql/">get MySQL here</a>, and the <a href="http://dev.mysql.com/downloads/connector/net/1.0.html#downloads">MySQL dot net connector here</a>.</p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/mysql-5-phpmyadmin-installation-root-account-not-accepted/' rel='bookmark' title='MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted'>MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-command-line-setting-up-a-new-database-and-user/' rel='bookmark' title='MySQL Command Line &#8211; Setting up a new database and user'>MySQL Command Line &#8211; Setting up a new database and user</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-backup-restore/' rel='bookmark' title='MySQL Backup &amp; Restore'>MySQL Backup &#038; Restore</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/mysql-5-1-with-dotnet-claims-procedure-or-function-cannot-be-found-in-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Backup &amp; Restore</title>
		<link>http://codeblog.shawson.co.uk/mysql-backup-restore/</link>
		<comments>http://codeblog.shawson.co.uk/mysql-backup-restore/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 19:40:06 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[mySQL]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[disaster recovery]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[restore]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=461</guid>
		<description><![CDATA[I did this on an install of MySQL 5 Community Server running on Windows 2008 Server Web Edition- From the command line- backup: mysqldump -u [username] -p[password] [database name] > FILE.sql restore; mysql -u [username] -p[password] [database name] < FILE.sql Remember; if you have restored your core mysql database, which contains all the info on [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/mysql-5-phpmyadmin-installation-root-account-not-accepted/' rel='bookmark' title='MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted'>MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-command-line-setting-up-a-new-database-and-user/' rel='bookmark' title='MySQL Command Line &#8211; Setting up a new database and user'>MySQL Command Line &#8211; Setting up a new database and user</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-5-1-with-dotnet-claims-procedure-or-function-cannot-be-found-in-database/' rel='bookmark' title='MySQL 5.1 with DotNet claims Procedure or function &#8216;&lt;procedure-name&gt;&#8216; cannot be found in database &#8216;&lt;database-name&gt;&#8216;'>MySQL 5.1 with DotNet claims Procedure or function &#8216;<procedure-name>&#8216; cannot be found in database &#8216;<database-name>&#8216;</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I did this on an install of MySQL 5 Community Server running on Windows 2008 Server Web Edition- From the command line- <strong>backup</strong>:</p>
<p>mysqldump -u [username] -p[password] [database name] > FILE.sql </p>
<p><strong>restore</strong>;</p>
<p>mysql -u [username] -p[password] [database name] < FILE.sql </p>
<p>Remember; if you have restored your core mysql database, which contains all the info on users and privileges, you will need to do a </p>
<p>FLUSH PRIVILEGES; </p>
<p>before you will be able to login using those user accounts!</p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/mysql-5-phpmyadmin-installation-root-account-not-accepted/' rel='bookmark' title='MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted'>MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-command-line-setting-up-a-new-database-and-user/' rel='bookmark' title='MySQL Command Line &#8211; Setting up a new database and user'>MySQL Command Line &#8211; Setting up a new database and user</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-5-1-with-dotnet-claims-procedure-or-function-cannot-be-found-in-database/' rel='bookmark' title='MySQL 5.1 with DotNet claims Procedure or function &#8216;&lt;procedure-name&gt;&#8216; cannot be found in database &#8216;&lt;database-name&gt;&#8216;'>MySQL 5.1 with DotNet claims Procedure or function &#8216;<procedure-name>&#8216; cannot be found in database &#8216;<database-name>&#8216;</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/mysql-backup-restore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Command Line &#8211; Setting up a new database and user</title>
		<link>http://codeblog.shawson.co.uk/mysql-command-line-setting-up-a-new-database-and-user/</link>
		<comments>http://codeblog.shawson.co.uk/mysql-command-line-setting-up-a-new-database-and-user/#comments</comments>
		<pubDate>Sun, 31 May 2009 20:30:42 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[mySQL]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=190</guid>
		<description><![CDATA[From the command line start up mySql; mysql -u root -h localhost -p you will be prompted to enter your root password.  Once you&#8217;re in you can go ahead and create the database; CREATE DATABASE &#60;data_base_name&#62;; BAMM- that&#8217;s your database done &#8211; you can see this by typing; SHOW databases; Next add a user and [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/mysql-5-phpmyadmin-installation-root-account-not-accepted/' rel='bookmark' title='MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted'>MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-backup-restore/' rel='bookmark' title='MySQL Backup &amp; Restore'>MySQL Backup &#038; Restore</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-5-1-with-dotnet-claims-procedure-or-function-cannot-be-found-in-database/' rel='bookmark' title='MySQL 5.1 with DotNet claims Procedure or function &#8216;&lt;procedure-name&gt;&#8216; cannot be found in database &#8216;&lt;database-name&gt;&#8216;'>MySQL 5.1 with DotNet claims Procedure or function &#8216;<procedure-name>&#8216; cannot be found in database &#8216;<database-name>&#8216;</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>From the command line start up mySql;</p>
<pre>mysql -u root -h localhost -p</pre>
<p>you will be prompted to enter your root password.  Once you&#8217;re in you can go ahead and <strong>create the database</strong>;</p>
<pre>CREATE DATABASE &lt;data_base_name&gt;;</pre>
<p>BAMM- that&#8217;s your database done &#8211; you can see this by typing;</p>
<pre>SHOW databases;</pre>
<p>Next <strong>add a user</strong> and grant all privileges to that new database (and only that database);</p>
<pre>GRANT ALL ON &lt;data_base_name&gt;
.* TO &lt;user_name&gt;@localhost IDENTIFIED BY '&lt;password&gt;';</pre>
<p>Or, to be more specific (and secure!)</p>
<pre>
GRANT SELECT , INSERT , UPDATE , DELETE , CREATE , DROP , ALTER ON &lt;data_base_name&gt; . * TO &lt;user_name&gt;@localhost IDENTIFIED BY '&lt;password&gt;';
</pre>
<p>The last line you need before you can use the account is;</p>
<pre>
FLUSH PRIVILEGES;
</pre>
<p>The PCTools.com website has a <a title="password generator" href="http://www.pctools.com/guides/password/?length=10&amp;phonetic=on&amp;alpha=on&amp;mixedcase=on&amp;numeric=on&amp;punctuation=on&amp;nosimilar=on&amp;quantity=1&amp;generate=true" target="_blank">handy page for generating random passwords</a>.</p>
<p>Note, the user created here will only have access when logging on from the local machine.  If you want a user which can logon from anywhere replace localhost with %.  Alternativly you can also specify specific ip addresses.</p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/mysql-5-phpmyadmin-installation-root-account-not-accepted/' rel='bookmark' title='MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted'>MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-backup-restore/' rel='bookmark' title='MySQL Backup &amp; Restore'>MySQL Backup &#038; Restore</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-5-1-with-dotnet-claims-procedure-or-function-cannot-be-found-in-database/' rel='bookmark' title='MySQL 5.1 with DotNet claims Procedure or function &#8216;&lt;procedure-name&gt;&#8216; cannot be found in database &#8216;&lt;database-name&gt;&#8216;'>MySQL 5.1 with DotNet claims Procedure or function &#8216;<procedure-name>&#8216; cannot be found in database &#8216;<database-name>&#8216;</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/mysql-command-line-setting-up-a-new-database-and-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Move from BlogEngine.net to WordPress 2.7.1!</title>
		<link>http://codeblog.shawson.co.uk/move-from-blogenginenet-to-wordpress-271/</link>
		<comments>http://codeblog.shawson.co.uk/move-from-blogenginenet-to-wordpress-271/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 21:41:55 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblogwp/?p=57</guid>
		<description><![CDATA[I&#8217;m a .net developer by day, so am always keen to use .net technologies where ever possible.  For the past few months I&#8217;ve been persevering with BlogEngine.net, a dot net blogging platform which I run on my Windows 2k8 IIS7 box from home, however I can do it no more!  I&#8217;ve found myself looking on [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/my-shiny-new-blog/' rel='bookmark' title='My shiny new blog'>My shiny new blog</a></li>
<li><a href='http://codeblog.shawson.co.uk/wordpress-import-from-wordpress-org-500-server-errors-timeouts/' rel='bookmark' title='WordPress import from WordPress.org &#8211; 500 Server Errors &amp; Timeout&#8217;s!'>WordPress import from WordPress.org &#8211; 500 Server Errors &#038; Timeout&#8217;s!</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-5-phpmyadmin-installation-root-account-not-accepted/' rel='bookmark' title='MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted'>MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a .net developer by day, so am always keen to use .net technologies where ever possible.  For the past few months I&#8217;ve been persevering with BlogEngine.net, a dot net blogging platform which I run on my Windows 2k8 IIS7 box from home, however I can do it no more!  I&#8217;ve found myself looking on with envy at the features in the newer builds of WordPress as i struggle on with the various &#8220;quirks&#8221; of BlogEngine and finally decided I could no longer put up with it- I&#8217;ve made the switch to WordPress which I&#8217;ve used in the past and I have to say I&#8217;m pleasantly surprised- not only is it as good as i remember, but it&#8217;s come on leaps and bounds both feature and interface wise since I last used it.</p>
<p>To get WordPress up and running I had to setup PHP5, mySQL (and phpMyAdmin to save me the pain of mySQL command line syntax again) under IIS7 which I also found to be easy (all up and running within an hour!) following the guides over on the <a title="TrainSignal Training- Setting up WordPress on IIS7" href="http://www.trainsignaltraining.com/installing-wordpress-on-iis7/2008-10-06/" target="_blank">TrainSignal training website</a></p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/my-shiny-new-blog/' rel='bookmark' title='My shiny new blog'>My shiny new blog</a></li>
<li><a href='http://codeblog.shawson.co.uk/wordpress-import-from-wordpress-org-500-server-errors-timeouts/' rel='bookmark' title='WordPress import from WordPress.org &#8211; 500 Server Errors &amp; Timeout&#8217;s!'>WordPress import from WordPress.org &#8211; 500 Server Errors &#038; Timeout&#8217;s!</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-5-phpmyadmin-installation-root-account-not-accepted/' rel='bookmark' title='MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted'>MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/move-from-blogenginenet-to-wordpress-271/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted</title>
		<link>http://codeblog.shawson.co.uk/mysql-5-phpmyadmin-installation-root-account-not-accepted/</link>
		<comments>http://codeblog.shawson.co.uk/mysql-5-phpmyadmin-installation-root-account-not-accepted/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 10:41:00 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[mySQL]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/post.aspx?id=c6db69ec-ed89-4d3a-889a-e0f6305e3de4</guid>
		<description><![CDATA[I recently installed mysql 5 under Windows 2003, with phpMyAdmin running under IIS 6 and came across an issue trying to get phpMyAdmin to access the database- I found that the root credentials were&#8217;nt accepted. The error i receive was &#8220;#1251 &#8211; Client does not support authentication protocol requested by server; consider upgrading MySQL client&#8221; [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/mysql-command-line-setting-up-a-new-database-and-user/' rel='bookmark' title='MySQL Command Line &#8211; Setting up a new database and user'>MySQL Command Line &#8211; Setting up a new database and user</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-backup-restore/' rel='bookmark' title='MySQL Backup &amp; Restore'>MySQL Backup &#038; Restore</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-5-1-with-dotnet-claims-procedure-or-function-cannot-be-found-in-database/' rel='bookmark' title='MySQL 5.1 with DotNet claims Procedure or function &#8216;&lt;procedure-name&gt;&#8216; cannot be found in database &#8216;&lt;database-name&gt;&#8216;'>MySQL 5.1 with DotNet claims Procedure or function &#8216;<procedure-name>&#8216; cannot be found in database &#8216;<database-name>&#8216;</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I recently installed mysql 5 under Windows 2003, with phpMyAdmin running under IIS 6 and came across an issue trying to get phpMyAdmin to access the database- I found that the root credentials were&#8217;nt accepted. The error i receive was</p>
<h2>&#8220;#1251 &#8211; Client does not support authentication protocol requested by server; consider upgrading MySQL client&#8221;</h2>
<p><span style="font-family: verdana; color: #000000; font-size: x-small;"> </span> Apparently this is to do with me using an older version of phpMyAdmin and how the passwords are encrypted- I found an article on <a href="http://www.webmasterworld.com/forum88/6114.htm" target="_blank">WebMasterWorld</a> detailing how to resolve it;</p>
<p>Login from the command line to your MySQL database;</p>
<pre class="brush: plain">
mysql -u root -h localhost -p
</pre>
<ul>
<li>-u lets you set the username to use, in this case I&#8217;m using the root account</li>
<li>-h sets the host- I&#8217;m logging in from the local machine so used localhost- I havn&#8217;t enabled root access from any remote machines</li>
<li>-p indicates that you will be supplying a password</li>
</ul>
<p>You will then be prompted the enter the password for your database.  Once you&#8217;re in, execute the following sql to update the password</p>
<pre class="brush: sql">
UPDATE mysql.user
SET password=OLD_PASSWORD(&#039;somepassword&#039;)
WHERE user=&#039;someuser&#039;;
AND host=&#039;somehost&#039;;
</pre>
<p>Once that&#8217;s done you will also want to flush the priviledges;</p>
<pre class="brush: sql">
flush privileges;
</pre>
<p>You can now safely quit the mysql client with &#8216;exit&#8217; and you are set!</p>
<p>This is also covered on the <a href="http://dev.mysql.com/doc/refman/5.0/en/old-client.html" target="_blank">mySQL documentation</a> site.</p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/mysql-command-line-setting-up-a-new-database-and-user/' rel='bookmark' title='MySQL Command Line &#8211; Setting up a new database and user'>MySQL Command Line &#8211; Setting up a new database and user</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-backup-restore/' rel='bookmark' title='MySQL Backup &amp; Restore'>MySQL Backup &#038; Restore</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-5-1-with-dotnet-claims-procedure-or-function-cannot-be-found-in-database/' rel='bookmark' title='MySQL 5.1 with DotNet claims Procedure or function &#8216;&lt;procedure-name&gt;&#8216; cannot be found in database &#8216;&lt;database-name&gt;&#8216;'>MySQL 5.1 with DotNet claims Procedure or function &#8216;<procedure-name>&#8216; cannot be found in database &#8216;<database-name>&#8216;</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/mysql-5-phpmyadmin-installation-root-account-not-accepted/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

