<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>RSS feed for InstantSpot site Mark Brown&apos;s Blog</title><link>http://markbrown.instantspot.com</link><description>Adventures of a ColdFusion Newbie</description><language>en-us</language><copyright>This work is Copyright &#xA9; 2009 by Mark Brown&apos;s Blog</copyright><generator>RSSVille ColdFusion FeedMaker, version 1.0</generator><pubDate>Fri, 20 Nov 2009 23:38:01 GMT</pubDate><item><title>Reset MySql root password</title><link>http://markbrown.instantspot.com/blog/2007/04/20/Reset-MySql-root-password</link><description>&lt;p&gt;  One of the problems I ran into when I started playing with MySql was trying to figure out how to reset the root password.    &lt;/p&gt;  &lt;p&gt;  one night I was dinking around in MySql, and wound up locking myself out.  I searched high and low for someway to reset that password, found a couple of hints at how, but couldn&amp;#39;t ever get it reset.  It was on a new install of Ubuntu and Mysql, so I removed MySql, reinstalled it, and I still couldn&amp;#39;t get in.  So, I wound up reinstalling Ubuntu, then MySql to get it to work.  &lt;/p&gt;  &lt;p&gt;  Today I was perusing the mysql newbie from and saw this post.  &lt;a href=&quot;http://forums.mysql.com/read.php?10,149291,149311#msg-149311&quot;&gt;http://forums.mysql.com/read.php?10,149291,149311#msg-149311&lt;/a&gt;   &lt;/p&gt;  &lt;p&gt;  Boy that would have been helpful about 3 weeks ago, so hopefully someone here might find it useful now!  &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  Have a good weekend!   &lt;/p&gt;  </description><pubDate>Fri, 20 Apr 2007 17:29:03 GMT</pubDate><guid>http://markbrown.instantspot.com/blog/2007/04/20/Reset-MySql-root-password</guid><category>SQL</category></item><item><title>Remote Access to mySql Database</title><link>http://markbrown.instantspot.com/blog/2007/03/30/Remote-Access-to-mySql-Database</link><description>&lt;p&gt;  As I&amp;#39;m playing with MySql I found that setting up remote access to the mysql server is a bit tricky at first, so I thought I&amp;#39;d share quickly with you how to set up account with remote access.  &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;Here&amp;#39;s the whole process:  &lt;/p&gt;  &lt;p&gt;  I&amp;#39;ve got a Ubuntu box running MySql 5 on it.  Once I got MySql installed (sudo apt-get install mysql-server) I set up the root account with a password. (mysqladmin -u root password &amp;quot;passwordyouwant&amp;quot;) &amp;lt;--Thanks for that &lt;a href=&quot;http://ajlcom.instantspot.com&quot;&gt;Aaron Lynch&lt;/a&gt;.  &lt;/p&gt;  &lt;p&gt;  Then, log into the MySql server by opening a terminal window locally and typing:  &lt;/p&gt;  &lt;p&gt;  mysql -u root -p  (then enter the password you set above)  &lt;/p&gt;  &lt;p&gt;  Following the tutorial located &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/tutorial.html&quot;&gt;here&lt;/a&gt; , I then created a db, and table, and populated it with some data.   &lt;/p&gt;  &lt;p&gt;  At this point I think, what if I want to administer this thing from my laptop?  So, I installed the MySql Administrator (sudo apt-get install mysql-admin).    &lt;/p&gt;  &lt;p&gt;  I tried to log in using the sql admin tool after the install.  Typed in the ip address of the MySql Server, username and password, but it threw this error:  &lt;/p&gt;  &lt;p&gt;  Could not connect to host &lt;br /&gt;  MySQl Error Nr. 1130&lt;br /&gt;  Host &amp;#39;192.168.1.103&amp;#39; is not allowed to connect to this MySQL server  &lt;/p&gt;  &lt;p&gt;  I started browsing some forums and blogs and found that I need to edit the /etc/mysql/my.conf file to allow other machines besides the localhost to access the server.  &lt;/p&gt;  &lt;pre&gt;  sudo nano /etc/mysql/my.cnf&lt;br /&gt;  &lt;/pre&gt;  &lt;pre&gt;  and change the line:   &lt;/pre&gt;  &lt;pre&gt;  bind-address           = localhost&lt;br /&gt;  &lt;/pre&gt;  &lt;pre&gt;  to your own internal ip address e.g. 192.168.2.10   &lt;/pre&gt;  &lt;pre&gt;  bind-address           = 192.168.2.10  &lt;/pre&gt;  &lt;pre&gt;  CTRL-X to close nano, y to save, enter to confirm the location&amp;nbsp;  &lt;/pre&gt;  &lt;p&gt;  I try the MySql Administrator again, but get the same error or a  1045 error. So I get to doing some more research and find that for a account to access a MySql db remotely you have to tell the server the host name that you&amp;#39;ll be connecting from or you can use a % as a wildcard meaning from everywhere.  The MySql documentation does a great job of showing you how &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/adding-users.html&quot;&gt;here.&lt;/a&gt; &amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  I went to the server, logged into mysql locally (or via ssh) and typed:  &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO &amp;#39;typeusername&amp;#39;@&amp;#39;localhost&amp;#39; IDENTIFIED BY &amp;#39;typepasswordhere&amp;#39; WITH GRANT OPTION;&amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO &amp;#39;typeusername&amp;#39;@&amp;#39;%&amp;#39; IDENTIFIED BY &amp;#39;typepasswordhere&amp;#39; WITH GRANT OPTION;  &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;The first statement gives the username permission to log on locally to the db from the console of the server, and the second statement gives the username access remotely from anywhere.&amp;nbsp; I could have done &amp;#39;typeusername&amp;#39;@&amp;#39;192.168.2.50&amp;#39; in that second statement restricting that username to only being able to connect from local and 192.168.2.50.&lt;br /&gt;     &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;One note on those usernames.&amp;nbsp; I created another username for remote access, instead of trying to edit root,&amp;nbsp; as I was scared to mess with the root account.&amp;nbsp;&amp;nbsp; Plus I&amp;#39;m getting kinda tired of breaking these linux boxs and not knowing how to fix them:)&amp;nbsp; Also the part that says &amp;quot;PRIVILEGES ON *.*&amp;quot; is giving this new account superuser privileges, so be careful with this. &amp;nbsp;   &lt;/p&gt;  &lt;p&gt;  Once I typed those two commands into MySql to create those accounts and privileges it started working like a champ from my workstation.  &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;Of course none of this is anything new, but I found it a&amp;nbsp; bit time consuming trying to get it to work. I&amp;#39;m still pretty new to&amp;nbsp; mySql. Hopefully this will save some other newbies some of their time.  &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;Later,  &lt;/p&gt;  &lt;p&gt;  Mark&amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;  &lt;/p&gt;  </description><pubDate>Sat, 31 Mar 2007 04:38:16 GMT</pubDate><guid>http://markbrown.instantspot.com/blog/2007/03/30/Remote-Access-to-mySql-Database</guid><category>SQL</category></item><item><title>SQL Tutorials</title><link>http://markbrown.instantspot.com/blog/2006/11/17/SQL-Tutorials</link><description>&lt;p&gt;  In my quest to learn all this new stuff I&amp;#39;ve found that there are a great deal tutorials on the web that are very helpful in learning new technologies without having to spend half my pay checks on books.    &lt;/p&gt;  &lt;p&gt;  After talking to a developer friend of mine about good resources to use to learn sql he directed me to this webesite.  &lt;u&gt;&lt;font&gt;&lt;a href=&quot;http://www.sqlcourse.com/&quot; target=&quot;_blank&quot; onclick=&quot;return top.js.OpenExtLink(window,event,this)&quot;&gt;&lt;u&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot; color=&quot;#0000ff&quot;&gt;http://www.sqlcourse.com/  &lt;/font&gt;&lt;/u&gt;&lt;/a&gt;&lt;/font&gt;&lt;/u&gt;   &lt;/p&gt;  &lt;p&gt;  Seems like a pretty good site for a complete newbie to SQL, but i haven&amp;#39;t gone all the way thru it yet.  Another one I found this I like is &lt;a href=&quot;http://www.w3schools.com/sql/default.asp&quot;&gt;http://www.w3schools.com/sql/default.asp. &lt;/a&gt;    &lt;/p&gt;  &lt;p&gt;  Actually I&amp;#39;ve found most of the tutorials at W3Schools pretty helpful.  &lt;/p&gt;  &lt;p&gt;  This might all be old news to some of you, but it&amp;#39;s nice to know where to go to get some good example and turorials on some of this stuff.  &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  Thanks for reading and as always I&amp;#39;m looking forward to your comments.  &lt;/p&gt;  &lt;p&gt;  Mark  &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  P.S.  If you feel like adding to this very short list, please do.     &lt;/p&gt;  </description><pubDate>Fri, 17 Nov 2006 15:17:15 GMT</pubDate><guid>http://markbrown.instantspot.com/blog/2006/11/17/SQL-Tutorials</guid><category>SQL</category></item><item><title>CF Newbieness and Hello</title><link>http://markbrown.instantspot.com/blog/2006/10/11/CF-Newbieness-and-Hello</link><description>&lt;p&gt;  Well, Hello.  My name is Mark Brown.  This is my first blog, so bear with me.    &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  I decided to start this thing because I&amp;#39;m learning some new skills.  I&amp;#39;m a IT Manager, and am very familiar with pc&amp;#39;s, servers, networks, blah, blah, blah.  It dawned on me a few months ago that I needed to learn some new skills.  On the advice from a friend, Mike,  I decieded to learn Web Application Programming using ColdFusion.  So, I figured, that sounds easy enough, and started.  First problem I ran into was, I HAVE NO PROGAMMING EXPERIENCE.  None.  Ziltch. Nada.  I&amp;#39;ve written a few batch scripts for login scripts on my Novell servers at work, but other than that I was clueless.  Well, I&amp;#39;m still clueless, but an learning more by the day.  You web programmers talk your own language.  I&amp;#39;m Starting to understand some of it, but hey, life is just one big learning curve. Right?   &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  Anyway, I&amp;#39;m about 6 months into it.  I haven&amp;#39;t been hitting it too hard, but have learned quite a bit.  About a month ago I launched my family website, http://www.thebrownhomeonline.com.  I did it with Coldfusion and it seemed fairly straight forward.  It&amp;#39;s got a private section that took me a while to figure out how to do the security, and the initial learning about frameworks to keep the maintenance of it easy were a bit difficult for me, but I eventually got it with some very generous help from Mike.  &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  I&amp;#39;ve got a couple other projects I&amp;#39;m working on, which I&amp;#39;ll talk about later.    &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  Main reason for this blog entry is just to Introduce myself, and give you all a idea of what to expect from this blog.    &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  What I&amp;#39;m hoping to accomplish here is to document my journey from total cluelessness in ColdFusion and web apps to my finished products.  I hope to be able to help other newbies find good resources I&amp;#39;ve used, and/or document some of the hurdles I ran into throughout this process and how I overcame them.  You&amp;#39;ll probably also get to see some of my rants and raves on wide variety of subjects.  Lucky YOU!!!  &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  So, there you have it.    &lt;/p&gt;  &lt;p&gt;  &amp;nbsp;  &lt;/p&gt;  &lt;p&gt;  Later,  &lt;/p&gt;  &lt;p&gt;  Mark   &lt;/p&gt;  </description><pubDate>Wed, 11 Oct 2006 13:42:07 GMT</pubDate><guid>http://markbrown.instantspot.com/blog/2006/10/11/CF-Newbieness-and-Hello</guid></item></channel></rss>