<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-10827377</id><updated>2012-02-09T10:35:31.713Z</updated><title type='text'>TT380 - A bluffer's guide</title><subtitle type='html'>The aim of this blog is to capture all the most useful and interesting snippets of advice from the Feb 05 TT380 students as they work through the course.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-10827377.post-1623308384084510889</id><published>2007-06-27T12:13:00.000+01:00</published><updated>2007-06-27T12:14:43.429+01:00</updated><title type='text'>New Entrepreneur Scholarships (NES)</title><content type='html'>Tonight is the our New Entrepreneur Scholarship graduation. The event is being held at the Ramside Hall Hotel in Durham. I have been elected by my fellow entrepreneurs to give a short speech. I am looking forward to the whole evening and would like to thank those who were involved in the programme, namely Eric Smalley, Neil Hannah, Katy Rain and Julia Gilliam from the University of Teesside.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-1623308384084510889?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/1623308384084510889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=1623308384084510889' title='141 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/1623308384084510889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/1623308384084510889'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2007/06/new-entrepreneur-scholarships-nes.html' title='New Entrepreneur Scholarships (NES)'/><author><name>Jayson @ &lt;a href="http://www.soho-it-solutions.co.uk"&gt;SOHO IT Solution&lt;/a&gt;</name><uri>http://www.blogger.com/profile/03621887382639745343</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>141</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110845948212965240</id><published>2006-02-15T09:18:00.000Z</published><updated>2005-02-22T15:59:08.826Z</updated><title type='text'>Blog Foxing</title><content type='html'>&lt;b style='color:black;'&gt;What this blog is for&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;This blog is a set of pages pretending to be a blog. Actually it is the bluffer's guide to TT380. To help you bluff your way through this course start at the beginning, or not; it's up to you!!&lt;br /&gt;&lt;br /&gt;If you start at the beginning then the next article is linked at the end of each page.&lt;br /&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/setting-up-local-services-for-tt380.html'&gt;Setting up local services for TT380&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/stage-1-install-apache-and-coldfusion.html'&gt;STAGE 1: Install Apache and ColdFusion Express&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/stage-2-install-mysql-and-myodbc.html'&gt;STAGE 2: Install mySQL and myODBC&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/mysql-hour-4.html'&gt;mySQL Hour 4&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/mysql-hour-5.html'&gt;mySQL Hour 5&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/mysql-hour-6.html'&gt;mySQL Hour 6&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/mysql-hour-7.html'&gt;mySQL Hour 7&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/mysql-hour-7.html'&gt;mySQL Hour 7&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/securing-mysql-server-on-windows.html'&gt;Securing a MySQL Server on Windows&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/time-to-do-stuff.html'&gt;Time to do stuff&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/1-sort-out-password-for-root-user.html'&gt;1. Sort out the password for the root user&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/2-create-new-user-to-mimic-settings-on.html'&gt;2. create a new user to mimic the settings on SSH / OU server&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/3-create-contactdb-database.html'&gt;3. Create the contactDB database...&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/4-define-user-privileges.html'&gt;4. Define user privileges&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/5-create-tables-in-contactdb.html'&gt;5. create tables in contactDB&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/cool-resources.html'&gt;Cool resources&lt;/a&gt;&lt;br /&gt;&lt;a href='http://tt380.blogspot.com/2005/02/installing-coldfusion-mx-7-onto.html'&gt;Installing ColdFusion MX 7 onto a Windows XP Pro SP2 system&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Whenever this article says it was posted, it wasn't. It probably isn't even 2006 yet!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110845948212965240?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110845948212965240/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110845948212965240' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110845948212965240'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110845948212965240'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2006/02/blog-foxing.html' title='Blog Foxing'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110960090679343325</id><published>2005-02-28T14:27:00.000Z</published><updated>2005-02-28T14:29:23.446Z</updated><title type='text'>Importing data into your TTCFM database</title><content type='html'>&lt;div style="text-align: justify;"&gt;This blog will hopefully help those of you that are experiencing problems when trying to upload/import data into the various tables of your database that is located on the OU server. I have tested each of the methods listed here. The data was successfully uploaded and imported into the relevant tables, with no records being skipped and no warning.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Please Note: That if you are using these methods on your own local installation you may well get warnings, I currently have a local setup using the version of MySQL that was distributed on the &lt;span style="font-weight: bold;"&gt;Certificate of Web Application Development CD-ROM&lt;/span&gt;, namely version 4.0.17 and after numerous hours of testing it appears that for some reason, unbeknown to me at present warnings are given when I used the methods detailed in this blog entry. But hey this is for the OU server, and thats the main concern at the moment afterall.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 0, 153);"&gt;Using the INSERT method&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;   &lt;div style="text-align: justify;"&gt;Okay this is the exact procedure that I used to perform this data insert. Using SSH secure shell open a terminal window to the OU server. Change to your web directory using the following command syntax:&lt;br /&gt;&lt;/div&gt;   &lt;pre&gt;&lt;span style="color: rgb(204, 102, 0); font-weight: bold;"&gt;cd web&lt;/span&gt;&lt;/pre&gt; &lt;div style="text-align: justify;"&gt;Log into the MySQL monitor using the following syntax, changing the jg3723 to your OU username:&lt;br /&gt;&lt;/div&gt;   &lt;pre&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;mysql -u jg3723 -p&lt;/span&gt;&lt;/pre&gt;When prompted enter you OU PI number remember letters should be in CAPITALS. Select the database to be used, in this case it should be the same name as you OU username, using this command syntax:&lt;br /&gt;   &lt;pre&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;USE jg3723;&lt;/span&gt;&lt;/pre&gt;Now its time to write the INSERT statement, for test purposes you could use the following, which is what I entered:&lt;br /&gt;   &lt;pre&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;INSERT INTO master_name&lt;br /&gt;VALUES ('',now(),now(),'Amanda','Gurney');&lt;/span&gt;&lt;/pre&gt;Hopefully, you should see the following message after pressing the ENTER key.&lt;br /&gt;&lt;pre&gt;&lt;span style="color: rgb(204, 102, 0); font-weight: bold;"&gt;Query OK, 1 row affected (0.00 sec)&lt;/span&gt;&lt;/pre&gt;Well that's the &lt;span style="font-weight: bold;"&gt;INSERT&lt;/span&gt; method successfull used, so it's now onto the &lt;span style="font-weight: bold;"&gt;LOAD DATA&lt;/span&gt; method next.&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 0, 153);"&gt;Using the LOAD DATA Method&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;   &lt;div style="text-align: justify;"&gt;With this method I pre wrote a DDL script and a plain text file that contained the data to be imported, these two files were then uploaded to my OU web directory If you would like to use my DDL script and data file &lt;a href="http://www.jasong.acomm-hosting.co.uk/tt380/scripts/loaddata.zip"&gt;click here&lt;/a&gt; to down load them.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Hopefully you will still have your SSH terminal window open and logged into your MySQL database. If not please connect and login to your database again.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;You now need to change the DDL file to point to your own database; using Notepad open the loaddata.sql file and change the first line so it reads the name of your database. Then save the file and close it.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;Now upload the DDL script and data file to your OU web directory.  To check that they are there use the following syntax:&lt;br /&gt;&lt;/div&gt;   &lt;pre&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;ls&lt;/span&gt;&lt;/pre&gt;Hopefully you will see the a list similar to mine below:&lt;br /&gt;&lt;pre&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(204, 102, 0); font-weight: bold;"&gt;[jg3723@ttcfm web]$ ls&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0); font-weight: bold;"&gt;all_names.cfm  createtables.sql  loaddata.sql     mytidy.sql&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 102, 0); font-weight: bold;"&gt;contactDB.sql  eca               master_name.txt&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 102, 0); font-weight: bold;"&gt;&lt;span style="font-size:85%;"&gt;[jg3723@ttcfm web]$&lt;/span&gt; &lt;/span&gt;&lt;/pre&gt;  &lt;div style="text-align: justify;"&gt;Okay the files are there so let's import the data.  This is done by using the following syntax:&lt;br /&gt;&lt;/div&gt;   &lt;pre&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;source loaddata.sql&lt;/span&gt;&lt;/pre&gt;  &lt;div style="text-align: justify;"&gt;Hopefully you will see the following messages displayed after pressing the ENTER key.&lt;br /&gt;&lt;/div&gt;   &lt;pre&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;Reading table information for completion of table and column names&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;You can turn off this feature to get a quicker startup with -A&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;Database changed&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;Query OK, 4 rows affected (0.00 sec)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(204, 102, 0);"&gt;Records: 4  Deleted: 0  Skipped: 0  Warnings: 0&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold; color: rgb(51, 0, 153);"&gt;My Conclusion&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;Well that's the end of my &lt;span style="font-weight: bold;"&gt;LOAD DATA&lt;/span&gt; and &lt;span style="font-weight: bold;"&gt;INSERT&lt;/span&gt; summary, you should now be able to alter the various commands and files to import any data that you wish to insert into your database. Have fun!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(153, 51, 153);font-size:180%;" &gt;All the best Jayson&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="font-weight: bold; color: rgb(153, 51, 153);font-size:180%;" &gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110960090679343325?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://mrjaysongs.blogspot.com/2005/02/importing-data-into-your-ttcfm.html' title='Importing data into your TTCFM database'/><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110960090679343325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110960090679343325' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110960090679343325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110960090679343325'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/importing-data-into-your-ttcfm.html' title='Importing data into your TTCFM database'/><author><name>Jayson @ &lt;a href="http://www.soho-it-solutions.co.uk"&gt;SOHO IT Solution&lt;/a&gt;</name><uri>http://www.blogger.com/profile/03621887382639745343</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110908400317491460</id><published>2005-02-22T14:23:00.000Z</published><updated>2005-02-22T15:57:03.493Z</updated><title type='text'>Installing ColdFusion MX 7 onto a Windows XP Pro SP2 system</title><content type='html'>The aim of this installation guide is to give you a clear and easy to understand guide for installing a local version of ColdFusion MX 7 Developer Edition onto a Windows XP Pro SP2 platform.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;strong&gt;Step 1: Download the required installation files&lt;br /&gt;Step 2: Prepare system for installation&lt;br /&gt;Step 3: Install ColdFusion MX7 Developer Edition&lt;br /&gt;Step 4: Install and Configure MySQL ODBC data source&lt;br /&gt;Step 5: Test your installation and configuration&lt;br /&gt;Step 6: Congratulations!&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;color:#cc66cc;"&gt;STEP 1: OBTAIN THE REQUIRED INSTALL FILES&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;The &lt;span style="color:#ccccff;"&gt;&lt;strong&gt;ColdFusion Express&lt;/strong&gt;&lt;/span&gt; version 4.0 that is on the Cert in Web Apps Development CD-ROM has caused me numerous nightmares when it came to configuring my MySQL ODBC data source. My answer was to install a copy of the latest release &lt;strong&gt;&lt;span style="color:#ffccff;"&gt;ColdFusion MX 7 Developer Edition&lt;/span&gt;&lt;/strong&gt;. This version is as far as I am currently aware free for development use so there is no time limit on its usage.&lt;br /&gt;&lt;br /&gt;Okay let’s get the download! Using you web-browser, enter the following URL:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.macromedia.com/cfusion/tdrc/index.cfm?product=coldfusion"&gt;http://www.macromedia.com/cfusion/tdrc/index.cfm?product=coldfusion&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If you are not already registered with Macromedia, you will need to do this and then revisit the above URL. Registration is &lt;span style="color:#ff6666;"&gt;&lt;strong&gt;FREE&lt;/strong&gt;&lt;/span&gt;, simple and rather painless.&lt;br /&gt;&lt;br /&gt;When you return to the download page select the option to download &lt;strong&gt;&lt;span style="color:#ffccff;"&gt;ColdFusion MX 7 Developer Edition&lt;/span&gt;&lt;/strong&gt;, which should be at the top of the page, then select the English Windows 275.79 MB option using the select button, then click on download. Save the file a suitable location on your system, so that you can easier retrieve it later.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff6666;"&gt;&lt;strong&gt;BE WARNED&lt;/strong&gt;&lt;/span&gt; that this download can take some time depending on you particular internet connection.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:130%;color:#cc66cc;"&gt;STEP 2: PREPARE SYSTEM FOR INSTALLATION&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Whilst the installation file is downloading, it’s a good idea to gather the necessary information ready for your installation. Please remember that this installation brief is for use with an OpenSA web-server (Apache), which is distributed on the Cert in Web Apps Development CD-ROM. Note of the following information which is what I personally used for my installation, I also used the default installation for OpenSA, so if you decided to install in any other manner you will need to alter the information below to mirror your own installations:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the serial number for ColdFusion MX 7?&lt;/strong&gt; &lt;span style="color:#9999ff;"&gt;&lt;strong&gt;USE DEVELOPER EDITION&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;What is the type of installation?&lt;/strong&gt; &lt;span style="color:#9999ff;"&gt;&lt;strong&gt;SERVER CONFIGURATION&lt;/strong&gt;&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&lt;strong&gt;ColdFusion MX 7 installation directory?&lt;/strong&gt;&lt;span style="color:#9999ff;"&gt;&lt;strong&gt; C:\CFusionMX7&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;Configure web server or use built-in web server?&lt;/strong&gt; &lt;span style="color:#9999ff;"&gt;&lt;strong&gt;CONFIGURE&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;Choose web server to configure?&lt;/strong&gt; &lt;span style="color:#9999ff;"&gt;&lt;strong&gt;APACHE&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Apache configuration directory? &lt;span style="color:#9999ff;"&gt;C:\OpenSA\Apache\Conf&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Apache path to server binary?&lt;/strong&gt; &lt;strong&gt;&lt;span style="color:#9999ff;"&gt;C:\OpenSA\Apache&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;ColdFusion MX Administrator password?&lt;/strong&gt; &lt;span style="color:#9999ff;"&gt;&lt;strong&gt;YOU CHOOSE THIS AND KEEP IT A SECRET&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Do you want to enable RDS?&lt;/strong&gt; &lt;span style="color:#9999ff;"&gt;&lt;strong&gt;NO&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;color:#cc66cc;"&gt;&lt;strong&gt;STEP 3: INSTALL COLDFUSION MX7 DEVELOPER EDITION&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;Okay you have the downloaded installation file and the required installation notes. Let’s get on with the main installation then. Ensure that the Apache web server is running you can do this by checking the service via the Windows XP Administrators control panel. Shut down all previous ColdFusion services if you have previously installed them – again this can be performed via the Windows XP Administrators control panel.&lt;br /&gt;&lt;br /&gt;Now double click on your downloaded installation file and follow the on screen instructions. Be sure to use the information that we gathered in Step 2, to ensure that the correct information is given to the installation routine.&lt;br /&gt;&lt;br /&gt;Hopefully all went well for you and you now have an installed &lt;span style="color:#ffccff;"&gt;&lt;strong&gt;ColdFusion MX 7&lt;/strong&gt;&lt;/span&gt; server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;color:#cc66cc;"&gt;&lt;strong&gt;STEP 4: INSTALL AND CONFIGURE MYSQL ODBC DATA SOURCE&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Using the ColdFusion Administrator which is accessed via your web-browser and is delivered to you via your local web-server we are now going to configure your MySQL data source.&lt;br /&gt;&lt;br /&gt;Open your web-browser and enter the following address:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://localhost/cfide/administrator/index.cfm"&gt;http://localhost/cfide/administrator/index.cfm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Enter the password that you set during the setup routine then click on the login button. You will then be in the ColdFusion Administrator, so now on the left you will see a link to Data &amp;amp; Services, click on this and then click on the Data Source link.&lt;br /&gt;&lt;br /&gt;We are now going to add a new data source, so enter the name of the data source, for the purposes of this installation guide enter the following: &lt;span style="font-size:130%;color:#9999ff;"&gt;&lt;strong&gt;chelsea&lt;/strong&gt;&lt;/span&gt; then using the selection button below select &lt;span style="font-size:130%;color:#9999ff;"&gt;&lt;strong&gt;MySQL (3.x)&lt;/strong&gt;&lt;/span&gt; as the driver. Then click the add button.&lt;br /&gt;&lt;br /&gt;The next page is where we are going to configure this new data source. Enter the following information into their respective boxes:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Database &lt;span style="color:#9999ff;"&gt;contactDB &lt;/span&gt;&lt;br /&gt;Server &lt;span style="color:#9999ff;"&gt;localhost&lt;/span&gt;&lt;br /&gt;Username &lt;span style="color:#9999ff;"&gt;root&lt;br /&gt;&lt;/span&gt;Password &lt;span style="color:#9999ff;"&gt;your MySQL root password&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Then click the submit button, if all was ok with the data that you have just entered, the screen will change back to the original Data Source screen, BUT the newly created data source named &lt;span style="font-size:130%;color:#9999ff;"&gt;&lt;strong&gt;chelsea&lt;/strong&gt;&lt;/span&gt; will be verified as OK.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;color:#cc66cc;"&gt;&lt;strong&gt;STEP 5: TEST YOUR INSTALLATION AND CONFIGURATION&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Using your HTML editor or Notepad, enter the following test code and then save then save it as odbctest.cfm&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;ColdFusion ODBC Test&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;cfquery name="databases" datasource="chelsea" debug="yes"&amp;gt;&lt;br /&gt;show databases;&lt;br /&gt;&amp;lt;/cfquery&amp;gt;&lt;br /&gt;&amp;lt;cfoutput&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;Today is #DateFormat(now())#&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/cfoutput&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Once the above has been created and saved it to your root web directory, open up your web-browser and request the page via you local web-server (setting this up has been discussed and documented in a previous BLOG)&lt;br /&gt;&lt;br /&gt;Calling the file is simple – enter the following into your web-browser address bar:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://localhost/odbctest.cfm"&gt;http://localhost/odbctest.cfm&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If all is working correctly then the page will display the current date in your browser. Please note that the script only attempts to make a connection to your data source, and that no database data will be displayed. If the current date is not displayed then unfortunately, something is a miss. But if all goes well this will not be the case.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;color:#cc66cc;"&gt;&lt;strong&gt;STEP 6: CONGRATULATIONS!&lt;/strong&gt;&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;If you managed to get the current date displayed in your web-browser, then it looks like you have successfully installed and configured ColdFusion MX 7 Developer Edition to connect and access your MySQL data source.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;color:#ff6666;"&gt;&lt;strong&gt;WELL DONE!&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;So what next I hear you say – well the world is your oyster as they say. Now that this has been configured and tested, you can start to develop your own ColdFusion pages.&lt;/p&gt;&lt;p&gt;I hope that this BLOG helps some of you with you local installation of ColdFusion MX 7, if you have any comments feel free to post them.&lt;/p&gt;&lt;p&gt;BTW - this was written from memory so I have my fingers crossed and hope that there are no errors, but I am certain that you will be the first to tell me if there is - any errors will be investigated and subsequent ammendments will be made.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:180%;color:#6666cc;"&gt;All the best Jayson&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110908400317491460?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110908400317491460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110908400317491460' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110908400317491460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110908400317491460'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/installing-coldfusion-mx-7-onto.html' title='Installing ColdFusion MX 7 onto a Windows XP Pro SP2 system'/><author><name>Jayson @ &lt;a href="http://www.soho-it-solutions.co.uk"&gt;SOHO IT Solution&lt;/a&gt;</name><uri>http://www.blogger.com/profile/03621887382639745343</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110906409730736095</id><published>2005-02-22T09:19:00.000Z</published><updated>2005-02-28T14:50:12.746Z</updated><title type='text'>Cool resources</title><content type='html'>Okay, this is the page dedicated to lots of cool freeware and trialware for doing mySQL and ColdFusion stuff.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. &lt;a href='http://www.microolap.com/products/database/mydesigner/'&gt;http://www.microolap.com/products/database/mydesigner/&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I've been playing around with a few ER diagramming/database design programs and came across one specifically for MySQL. It has a 30 day trial period, but unlike most of them it has a tutorial section in the help, and doesn't attempt to explain things as if you're a space cadet. It's well worth a look, I think it sells for around $120 US, which is probably a bit steep to justify unless you are doing this for a living, but it is pretty simple to use and the results are good. It can even hook up to your DB and create the database for you saving the job of saving the script and importing the SQL yourself ! (what I particularly like is you can instantly preview the table creation SQL as you are editing the table design, and it also helps that it isn't a generic program designed to work with a multitude of RDBMS)&lt;br /&gt;&lt;br /&gt;The only mistake I found in the tutorial was that you need to deselect the table drawing tool before double clicking to define your table columns etc...&lt;br /&gt;&lt;br /&gt;well worth a play if you want to experiment with this kind of thing.&lt;br /&gt;&lt;br /&gt;Simon. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. Questions of scalability, security, and connectivity.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The following white paper from Cisco provides a nice introduction to scalability and looks at their LocalDirector product.&lt;br /&gt;&lt;br /&gt;http://www.cisco.com/en/US/products/hw/contnetw/ps1894/products_white_paper09186a0080091edf.shtml&lt;br /&gt;&lt;br /&gt;It is available as a PDF for download. There is also one of security (also in PDF), but with a network architecture perspective.&lt;br /&gt;&lt;br /&gt;http://www.cisco.com/en/US/about/ac123/ac114/ac173/ac166/small_and_midsized_business09186a00800a346b.html&lt;br /&gt;&lt;br /&gt;You can find all the current unisys benchmark papers at&lt;br /&gt;&lt;br /&gt;http://www.unisys.com/products/es7000__servers/hardware/benchmark__reports/index.htm&lt;br /&gt;&lt;br /&gt;The benchmarks quoted are those of the TPC, so follow at the TPC-W link. The executive summary will give you the total cost of this sort of system.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Glyn&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3. Horizontal Scaling&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href='http://www.computerworld.com/hardwaretopics/hardware/server/story/0,10801,73688,00.html?from=story_package'&gt;http://www.computerworld.com/hardwaretopics/hardware/server/story/0,10801,73688,00.html?from=story_package&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If anyone has anymore then please add a comment with a URL. Thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110906409730736095?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110906409730736095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110906409730736095' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110906409730736095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110906409730736095'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/cool-resources.html' title='Cool resources'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110868362072581439</id><published>2005-02-17T23:30:00.000Z</published><updated>2005-02-17T23:58:03.473Z</updated><title type='text'>5. create tables in contactDB</title><content type='html'>right this'll be it tonight cos I'm v.tired now (ahhh!)&lt;br /&gt;&lt;br /&gt;no flannel, just stuff...&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. create the first table at the command prompt&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;as per the book (hour 8) i create my first table at the command prompt... like this:&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue;'&gt;&lt;br /&gt;C:\mysql\bin&gt;mysql -usupercontact -pA1234567&lt;br /&gt;Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;Your MySQL connection id is 15 to server version: 4.0.17-nt&lt;br /&gt;&lt;br /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the buffer.&lt;br /&gt;&lt;br /&gt;mysql&gt; use contactDB;&lt;br /&gt;Database changed&lt;br /&gt;mysql&gt; CREATE TABLE master_name (&lt;br /&gt;    -&gt; name_id SMALLINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,&lt;br /&gt;    -&gt; name_dateadded DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;    -&gt; name_datemodified DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;    -&gt; firstname VARCHAR (75),&lt;br /&gt;    -&gt; lastname VARCHAR (75),&lt;br /&gt;    -&gt; INDEX idx_fn (firstname),&lt;br /&gt;    -&gt; INDEX idx_ln (lastname)&lt;br /&gt;    -&gt; );&lt;br /&gt;Query OK, 0 rows affected (0.05 sec)&lt;br /&gt;&lt;br /&gt;mysql&gt; show tables;&lt;br /&gt;+---------------------+&lt;br /&gt;| Tables_in_contactdb |&lt;br /&gt;+---------------------+&lt;br /&gt;| master_name         |&lt;br /&gt;+---------------------+&lt;br /&gt;1 row in set (0.00 sec)&lt;br /&gt;&lt;br /&gt;mysql&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;right, done that...&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. type the table definitions into a .sql text file&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;write the file in notepad, for the practice... like this&lt;br /&gt;&lt;br /&gt;&lt;b style='color:orange;'&gt;&lt;br /&gt;USE contactDB;&lt;br /&gt;&lt;br /&gt;CREATE TABLE job_function (&lt;br /&gt;job_id SMALLINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,&lt;br /&gt;name_id SMALLINT UNSIGNED NOT NULL DEFAULT '0',&lt;br /&gt;job_dateadded DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;job_datemodified DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;jobfunction VARCHAR (100),&lt;br /&gt;INDEX idx_job (jobfunction)&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;CREATE TABLE company (&lt;br /&gt;company_id SMALLINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,&lt;br /&gt;company_dateadded DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;company_datemodified DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;companyname VARCHAR (100),&lt;br /&gt;INDEX idx_job (companyname)&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;CREATE TABLE name_company_map (&lt;br /&gt;name_id SMALLINT UNSIGNED NOT NULL,&lt;br /&gt;company_id SMALLINT UNSIGNED NOT NULL&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;CREATE TABLE address (&lt;br /&gt;add_id SMALLINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,&lt;br /&gt;name_id SMALLINT UNSIGNED NOT NULL DEFAULT '0',&lt;br /&gt;add_dateadded DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;add_datemodified DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;streetaddress VARCHAR (255),&lt;br /&gt;city VARCHAR (50),&lt;br /&gt;state CHAR (2),&lt;br /&gt;zipcode VARCHAR (10),&lt;br /&gt;add_type ENUM ('home','work','other')&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CREATE TABLE telephone (&lt;br /&gt;tel_id SMALLINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,&lt;br /&gt;name_id SMALLINT UNSIGNED NOT NULL DEFAULT '0',&lt;br /&gt;tel_dateadded DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;tel_datemodified DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;tel_countrycode CHAR (3),&lt;br /&gt;tel_number VARCHAR (25),&lt;br /&gt;tel_type ENUM ('home','work','other')&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CREATE TABLE fax (&lt;br /&gt;fax_id SMALLINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,&lt;br /&gt;name_id SMALLINT UNSIGNED NOT NULL DEFAULT '0',&lt;br /&gt;fax_dateadded DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;fax_datemodified DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;fax_countrycode CHAR (3),&lt;br /&gt;fax_number VARCHAR (25),&lt;br /&gt;fax_type ENUM ('home','work','other')&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;CREATE TABLE email (&lt;br /&gt;email_id SMALLINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,&lt;br /&gt;name_id SMALLINT UNSIGNED NOT NULL DEFAULT '0',&lt;br /&gt;email_dateadded DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;email_datemodified DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;email_countrycode CHAR (3),&lt;br /&gt;email_number VARCHAR (150),&lt;br /&gt;email_type ENUM ('home','work','other')&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;CREATE TABLE personal_notes (&lt;br /&gt;notes_id SMALLINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,&lt;br /&gt;name_id SMALLINT UNSIGNED NOT NULL DEFAULT '0',&lt;br /&gt;notes_dateadded DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;notes_datemodified DATETIME DEFAULT '0000-00-00 00:00:00',&lt;br /&gt;note TEXT&lt;br /&gt;);&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;if you do cut and paste my table defns. check it over for syntax errors cos it's late now...&lt;br /&gt;&lt;br /&gt;then&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3. add all the tables to contactDB&lt;/b&gt;&lt;br /&gt;&lt;b style='color:blue;'&gt;&lt;br /&gt;C:\mysql\bin&gt;mysql -usupercontact -pA1234567 &lt; c:\mysqldefs\ab_contactDB.sql&lt;br /&gt;&lt;br /&gt;C:\mysql\bin&gt;mysql -usupercontact -pA1234567&lt;br /&gt;Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;Your MySQL connection id is 18 to server version: 4.0.17-nt&lt;br /&gt;&lt;br /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the buffer.&lt;br /&gt;&lt;br /&gt;mysql&gt; use contactDB;&lt;br /&gt;Database changed&lt;br /&gt;mysql&gt; show tables;&lt;br /&gt;+---------------------+&lt;br /&gt;| Tables_in_contactdb |&lt;br /&gt;+---------------------+&lt;br /&gt;| address             |&lt;br /&gt;| company             |&lt;br /&gt;| email               |&lt;br /&gt;| fax                 |&lt;br /&gt;| job_function        |&lt;br /&gt;| master_name         |&lt;br /&gt;| name_company_map    |&lt;br /&gt;| personal_notes      |&lt;br /&gt;| telephone           |&lt;br /&gt;+---------------------+&lt;br /&gt;9 rows in set (0.00 sec)&lt;br /&gt;&lt;br /&gt;mysql&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;that's all good, time for bed!&lt;br /&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110868362072581439?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110868362072581439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110868362072581439' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110868362072581439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110868362072581439'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/5-create-tables-in-contactdb.html' title='5. create tables in contactDB'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110868068222894804</id><published>2005-02-17T22:41:00.000Z</published><updated>2005-02-18T00:06:39.973Z</updated><title type='text'>4. Define user privileges</title><content type='html'>Right, in the last segment I created the contactDB database using "ab1234" with password "A1234567". Now I'm going to create some users and give them privileges...&lt;br /&gt;&lt;br /&gt;&lt;b style='color:purple'&gt;COMMENT: First off I try to define the user permissions using "ab1234"&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue'&gt;C:\mysql\bin&gt;mysql -uab1234 -pA1234567&lt;br /&gt;Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;Your MySQL connection id is 11 to server version: 4.0.17-nt&lt;br /&gt;&lt;br /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the buffer.&lt;br /&gt;&lt;br /&gt;mysql&gt; use mysql&lt;br /&gt;Database changed&lt;br /&gt;mysql&gt; GRANT ALL ON contactDB.* TO supercontact@'localhost' IDENTIFIED BY 'A1234567';&lt;br /&gt;ERROR 1044: Access denied for user: 'ab1234@localhost' to database 'contactDB'&lt;br /&gt;mysql&gt; exit&lt;br /&gt;Bye&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:purple'&gt;COMMENT: That doesn't work so maybe we do have to be logged in as root to create users and define privileges? Try again, this time logged in as root...&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue'&gt;C:\mysql\bin&gt;mysql -uroot -pA1234567&lt;br /&gt;Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;Your MySQL connection id is 12 to server version: 4.0.17-nt&lt;br /&gt;&lt;br /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the buffer.&lt;br /&gt;&lt;br /&gt;mysql&gt; use mysql&lt;br /&gt;Database changed&lt;br /&gt;&lt;br /&gt;mysql&gt; GRANT ALL ON contactDB.* TO 'supercontact'@'localhost' IDENTIFIED BY 'A1234567';&lt;br /&gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;&lt;br /&gt;mysql&gt; GRANT SELECT ON contactDB.* TO 'simpleuser'@'localhost' IDENTIFIED BY 'A1234567';&lt;br /&gt;Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;&lt;br /&gt;mysql&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:purple'&gt;COMMENT: No complaints, created users and defined privileges successfully as the root user...&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Back to DB Manager to check the users are there...yes! (you can make your own screen shot!)&lt;b&gt;&lt;a href='http://tt380.blogspot.com/2005/02/5-create-tables-in-contactdb.html'&gt;5. create tables in contactDB&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110868068222894804?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110868068222894804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110868068222894804' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110868068222894804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110868068222894804'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/4-define-user-privileges.html' title='4. Define user privileges'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110867923217674170</id><published>2005-02-17T22:13:00.000Z</published><updated>2005-02-18T00:05:50.993Z</updated><title type='text'>3. Create the contactDB database...</title><content type='html'>Bizarrely seconded into a T171 chat room for several minutes... nice talking to you all Roger, Les, Charmaine good luck with the course!!! How unfair is that though, they're only level 1 students and they get a chat room to use, surely there's a pecking order to these things!!! Oh well!!! Back to the case study forum and the tumbleweed blowing through TT380 FirstClass forums...&lt;br /&gt;&lt;br /&gt;Where was I? Oh yes, creating a contactDB&lt;br /&gt;&lt;br /&gt;So carrying on from before....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue'&gt;mysql&gt; exit&lt;br /&gt;Bye&lt;br /&gt;&lt;br /&gt;C:\mysql\bin&gt;mysqladmin -u ab1234 -pA1234567 create contactDB&lt;br /&gt;&lt;br /&gt;C:\mysql\bin&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:purple'&gt;I'm following the book, so I exit from mysql monitor (mysql&gt;) and execute the mysqladmin command at the DOS prompt...&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To check to see it has worked I went to DB Manager...&lt;br /&gt;&lt;br /&gt;&lt;a href='http://homepage.ntlworld.com/kellyjeq/dbm2.jpg' target='_new'&gt;&lt;img src='http://homepage.ntlworld.com/kellyjeq/dbm2.jpg' width='650'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Bingo, I refreshed the window using the lightning strike and found my database....&lt;br /&gt;&lt;br /&gt;Onto create the tables....&lt;br /&gt;&lt;b&gt;&lt;a href='http://tt380.blogspot.com/2005/02/4-define-user-privileges.html'&gt;4. Define user privileges&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110867923217674170?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110867923217674170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110867923217674170' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110867923217674170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110867923217674170'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/3-create-contactdb-database.html' title='3. Create the contactDB database...'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110867226203068419</id><published>2005-02-17T20:25:00.000Z</published><updated>2005-02-18T00:04:37.983Z</updated><title type='text'>2. create a new user to mimic the settings on SSH / OU server</title><content type='html'>right, next task...&lt;br /&gt;&lt;br /&gt;so taken Alistair's thoughts forward I create a new user:&lt;br /&gt;&lt;br /&gt;still logged into the mysql monitor as 'root':&lt;br /&gt;&lt;br /&gt;&lt;b style="color: blue;"&gt;mysql&amp;gt; GRANT ALL ON *.* TO 'ab1234'@'localhost' IDENTIFIED BY 'A1234567';&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I'm using the same password for root as my nascent super user...&lt;br /&gt;&lt;br /&gt;Time to see if I can check what I've done. It's off to DBManager...&lt;br /&gt;&lt;br /&gt;First signs are promising, I type in my new 'root user' password and DBManager accepts it and lets me in.&lt;br /&gt;&lt;br /&gt;Right lets see what's going on in DBManager.... Simon Moat said something about this earlier in the case study forum... off to find it...&lt;br /&gt;&lt;br /&gt;Found Simon's Screen Shot in the conference and the first thing I notice is that his version looks newer. You can tell by the XP rounded corners I think. I'm running 2.2.0 from the Cert in WAD CD, I'll have to ask Simon what version he's using...&lt;br /&gt;&lt;br /&gt;Here's my screen shot...&lt;br /&gt;&lt;br /&gt;&lt;a href='http://homepage.ntlworld.com/kellyjeq/dbm1.jpg' target='_new'&gt;&lt;img src="http://homepage.ntlworld.com/kellyjeq/dbm1.jpg" width='650'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Anyway I've found my users - it looks like I've got &amp;lt;blank&amp;gt;, root and ab1234 - so we're okay so far!!&lt;br /&gt;&lt;br /&gt;&lt;b style='color:purple'&gt;What does &amp;lt;blank&amp;gt; do though????&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Not to worry too much about &amp;lt;blank&amp;gt; just now let's do something else...&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href='http://tt380.blogspot.com/2005/02/3-create-contactdb-database.html'&gt;3. Create the contactDB database...&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110867226203068419?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110867226203068419/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110867226203068419' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110867226203068419'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110867226203068419'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/2-create-new-user-to-mimic-settings-on.html' title='2. create a new user to mimic the settings on SSH / OU server'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110866918580755397</id><published>2005-02-17T19:04:00.000Z</published><updated>2005-02-18T00:03:25.150Z</updated><title type='text'>1. Sort out the password for the root user</title><content type='html'>Well I've been all over several forums last night and today trying to understand what this is all about. Basically the installation of mySQL has a "root user", i.e. all powerful user that can do anything in mySQL, and, by default, the root user doesn't have a password. This means that if nasty people gain access to the server that is hosting mySQL then they can mess things up quite badly.&lt;br /&gt;&lt;br /&gt;It is easy to get diverted into a discussion about securing the mySQL server but that is a whole other world of pain and additional complication. For the purposes of working through TT380 the smart money is saying that you don't need to worry about it too much (no warranty is implied in that statement!).&lt;br /&gt;&lt;br /&gt;So let's stop prevaricating and get on with it.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;How do you set a password for the root user?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Okay, most of us (Windows) users will be going into mysql monitor from the DOS window.&lt;br /&gt;&lt;br /&gt;It goes something like this:&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue'&gt;C:\Documents and Settings\Dell&gt;cd c:\mysql\bin&lt;br /&gt;&lt;br /&gt;C:\mysql\bin&gt;mysql -u root -p&lt;br /&gt;Enter password:&lt;/b&gt;&lt;br /&gt;&lt;b style='color:purple'&gt;COMMENT: if you haven't already set up a password for 'root' then hit enter at the password prompt and you're in&lt;/b&gt;&lt;br /&gt;&lt;b style='color:blue'&gt;Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;Your MySQL connection id is 3 to server version: 4.0.17-nt&lt;br /&gt;&lt;br /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the buffer.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:purple'&gt;COMMENT: this is the code that sets your root password&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue'&gt;mysql&gt; SET PASSWORD FOR 'root'@'localhost'=PASSWORD('A1234567');&lt;br /&gt;Query OK, 0 rows affected (0.03 sec)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:purple'&gt;COMMENT: after you've changed the password FLUSH PRIVILEGES just to make sure&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue'&gt;mysql&gt; FLUSH PRIVILEGES;&lt;br /&gt;Query OK, 0 rows affected (0.02 sec)&lt;br /&gt;&lt;br /&gt;mysql&gt; exit&lt;br /&gt;Bye&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:purple'&gt;COMMENT: I tried logging in without a user name and got straight in. I don't know what type of user you login as as default but right now I don't care. I'm assuming it's not the 'root' user&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue'&gt;C:\mysql\bin&gt;mysql&lt;br /&gt;Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;Your MySQL connection id is 4 to server version: 4.0.17-nt&lt;br /&gt;&lt;br /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the buffer.&lt;br /&gt;&lt;br /&gt;mysql&gt; exit&lt;br /&gt;Bye&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:purple'&gt;COMMENT: Then tried logging in as 'root' without a password and got bounced...&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue'&gt;C:\mysql\bin&gt;mysql -u root&lt;br /&gt;ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:purple'&gt;COMMENT: Then tried logging in as 'root' with my new password and was let in.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue'&gt;C:\mysql\bin&gt;mysql -u root -p&lt;br /&gt;Enter password: ********&lt;br /&gt;Welcome to the MySQL monitor.  Commands end with ; or \g.&lt;br /&gt;Your MySQL connection id is 7 to server version: 4.0.17-nt&lt;br /&gt;&lt;br /&gt;Type 'help;' or '\h' for help. Type '\c' to clear the buffer.&lt;br /&gt;&lt;br /&gt;mysql&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Overall, fairly easy to do once you've got the code sorted...what's next...&lt;br /&gt;&lt;br /&gt;Next to create some users so I can mimic what is going on in mySQL in 24hrs. &lt;br /&gt;&lt;br /&gt;Why am I going to create a new user, why not just use the root user?&lt;br /&gt;&lt;br /&gt;Well I'm keeping in mind some tips from Alistair Thomas, just seems using the root user is bad form and something to be avoided. Why that should be will no doubt become clearer as we become more familiar with mySQL:&lt;br /&gt;&lt;br /&gt;&lt;span style='color:green;'&gt;"Having become familiar with Linux this kind of stuff is fairly similar, i.e. the command line and different user accounts. I have a few guidelines for myself:&lt;br /&gt;&lt;br /&gt;- Make sure the root account is secure, i.e. it has a password atleast!&lt;br /&gt;&lt;br /&gt;&lt;b style='color:purple;'&gt;COMMENT: we've just done that!&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;- Don't use the root account. This is a golden rule which is only broken when:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;you need to add or delete a user,&lt;/li&gt;&lt;li&gt;change their privileges,&lt;/li&gt;&lt;li&gt;create or drop a database.&lt;/li&gt;&lt;/ul&gt;Once you've finished breaking your golden rule log straight out and then back in as a normal user. Hopefully you've given that user sufficient, but only sufficient, privileges to do what they need.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;- Break things down into simple testable steps. e.g. if you create a table type do a show table command to see if it has done what you want. After a while you will become more familiar with the set up and won't need the test step as often, but it always seems to help me to know how to check what I've done.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Thanks Alistair.&lt;br /&gt;&lt;br /&gt;Alistair is saying above, amongst other things, that only the root user can be used to create and drop databases. I'm just wondering if that is strictly true as i successfully logged in as "default" and I've been able to create and drop tables there before. we'll see...&lt;br /&gt;&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href='http://tt380.blogspot.com/2005/02/2-create-new-user-to-mimic-settings-on.html'&gt;2. create a new user to mimic the settings on SSH / OU server&lt;/a&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110866918580755397?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110866918580755397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110866918580755397' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110866918580755397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110866918580755397'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/1-sort-out-password-for-root-user.html' title='1. Sort out the password for the root user'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110866704964211268</id><published>2005-02-17T18:59:00.000Z</published><updated>2005-02-18T00:01:56.456Z</updated><title type='text'>Time to do stuff</title><content type='html'>Okay, I've hit a couple of stumbling blocks over the past couple of days, now it's time to sort them out.&lt;br /&gt;&lt;br /&gt;On the To Do list tonight:&lt;ul&gt;&lt;br /&gt;&lt;li&gt;1. Sort out the password for the root user&lt;/li&gt;&lt;br /&gt;&lt;li&gt;2. create a new user to mimic the settings on SSH / OU server&lt;/li&gt;&lt;br /&gt;&lt;li&gt;3. Create the contactDB database...&lt;/li&gt;&lt;br /&gt;&lt;li&gt;4. Define user privileges&lt;/li&gt;&lt;br /&gt;&lt;li&gt;5. create tables in contactDB&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;That ought to do it for now, if I get throught it all I might do some extra bits as well. Here goes....&lt;br /&gt;&lt;br&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href='http://tt380.blogspot.com/2005/02/1-sort-out-password-for-root-user.html'&gt;1. Sort out the password for the root user&lt;/a&gt;&lt;/b&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110866704964211268?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110866704964211268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110866704964211268' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110866704964211268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110866704964211268'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/time-to-do-stuff.html' title='Time to do stuff'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110865687189397841</id><published>2005-02-17T16:12:00.000Z</published><updated>2005-02-18T00:00:28.256Z</updated><title type='text'>Securing a MySQL Server on Windows</title><content type='html'>This article tells you how to secure a mySQL in windows. I haven't read it yet, it was recommended to me by someone.&lt;br /&gt;&lt;br /&gt;Hope it is of use to someone.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href='http://tt380.blogspot.com/2005/02/time-to-do-stuff.html'&gt;we continue...&lt;/a&gt;&lt;/b&gt;&lt;br /&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110865687189397841?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://dev.mysql.com/tech-resources/articles/securing_mysql_windows.html' title='Securing a MySQL Server on Windows'/><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110865687189397841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110865687189397841' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110865687189397841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110865687189397841'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/securing-mysql-server-on-windows.html' title='Securing a MySQL Server on Windows'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110854432290780105</id><published>2005-02-16T08:40:00.000Z</published><updated>2005-02-17T23:59:38.356Z</updated><title type='text'>mySQL Hour 7</title><content type='html'>Hour 7 promises to teach:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;data types&lt;/li&gt;&lt;br /&gt;&lt;li&gt;table creation syntax&lt;/li&gt;&lt;br /&gt;&lt;li&gt;preliminary statements to create tables&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Data Types&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Three types of data type:&lt;ul&gt;&lt;br /&gt;&lt;li&gt;numeric&lt;/li&gt;&lt;br /&gt;&lt;li&gt;data and time&lt;/li&gt;&lt;br /&gt;&lt;li&gt;string&lt;/li&gt;&lt;/ul&gt;This is what they do:&lt;table border="1" cellspacing="2"&gt;&lt;br /&gt;&lt;tbody&gt;&lt;tr valign="top"&gt;&lt;td&gt;Numeric&lt;/td&gt;&lt;td&gt;Properties&lt;/td&gt;&lt;td&gt;Date and Time&lt;/td&gt;&lt;td&gt;Properties&lt;/td&gt;&lt;td&gt;String&lt;/td&gt;&lt;td&gt;Properties&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign="top"&gt;&lt;td&gt;TINYINT&lt;/td&gt;&lt;td align="center"&gt;-128 to 127&lt;br /&gt;or&lt;br /&gt;0 to 255&lt;/td&gt;&lt;td&gt;DATE&lt;br /&gt;&lt;/td&gt;&lt;td&gt;YYYY-MM-DD&lt;br /&gt;&lt;/td&gt;&lt;td&gt;CHAR&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign="top"&gt;&lt;td&gt;SMALLINT&lt;/td&gt;&lt;td align="center"&gt;-32768 to 32767&lt;br /&gt;or&lt;br /&gt;0 to 65535&lt;/td&gt;&lt;td&gt;DATETIME&lt;br /&gt;&lt;/td&gt;&lt;td&gt;YYYY-MM-DD HH:MM:SS&lt;br /&gt;&lt;/td&gt;&lt;td&gt;VARCHAR&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign="top"&gt;&lt;td&gt;MEDIUMINT&lt;/td&gt;&lt;td align="center"&gt;-8388608 to 8388607&lt;br /&gt;or&lt;br /&gt;0 to 16777215&lt;/td&gt;&lt;td&gt;TIMESTAMP&lt;br /&gt;&lt;/td&gt;&lt;td&gt;default length is 14 which stores YYYYMMDDHHMMSS&lt;br /&gt;   &lt;br /&gt;less than length 14 stores less&lt;br /&gt;&lt;/td&gt;&lt;td&gt;BLOB or TEXT&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign="top"&gt;&lt;td&gt;INT or INTEGER&lt;br /&gt;&lt;/td&gt;&lt;td align="center"&gt;-2147483648 to 2147483647&lt;br /&gt;or&lt;br /&gt;0 to 4294967295&lt;/td&gt;&lt;td&gt;TIME&lt;br /&gt;&lt;/td&gt;&lt;td&gt;HH:MM:SS&lt;br /&gt;&lt;/td&gt;&lt;td&gt;TINYBLOB or TINYTEXT&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign="top"&gt;&lt;td&gt;BIGINT&lt;/td&gt;&lt;td align="center"&gt;-2147483648 to 2177483647&lt;br /&gt;or&lt;br /&gt;0 to 18446744073709551615&lt;/td&gt;&lt;td&gt;YEAR&lt;br /&gt;&lt;/td&gt;&lt;td&gt;YY or YYYY&lt;br /&gt;default length is 4&lt;br /&gt;&lt;/td&gt;&lt;td&gt;MEDIUMBLOB or MEDIUMTEXT&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign="top"&gt;&lt;td&gt;FLOAT (M,D)&lt;br /&gt;&lt;/td&gt;&lt;td align="center"&gt;up to 24 d.p.&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;LONGBLOB or LONGTEXT&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign="top"&gt;&lt;td&gt;DOUBLE (M,D) or REAL (M,D)&lt;br /&gt;&lt;/td&gt;&lt;td align="center"&gt;up to 53 d.p.&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;ENUM&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr valign="top"&gt;&lt;td&gt;DECIMAL (M,D) or NUMERIC(M,D)&lt;br /&gt;&lt;/td&gt;&lt;td align="center"&gt;each digit is one byte&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;td&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;i'll finish that table off later if i get time...&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;a href='http://tt380.blogspot.com/2005/02/securing-mysql-server-on-windows.html'&gt;we continue...&lt;/a&gt;&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110854432290780105?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110854432290780105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110854432290780105' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110854432290780105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110854432290780105'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/mysql-hour-7.html' title='mySQL Hour 7'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110849788650444288</id><published>2005-02-15T19:25:00.000Z</published><updated>2005-02-16T09:08:28.440Z</updated><title type='text'>mySQL Hour 6</title><content type='html'>Oh well, I've crashed my user ID in the new forum. Great, I have to wait for Nick to get back from holiday to fix it, because, apparently he's the only one who can.&lt;br /&gt;&lt;br /&gt;So, instead of frittering hours away in the conference, I'll fritter hours away on my blog and trying to second guess the typos and ommissions in the various course materials. Just as well we're not all daft doing this course!&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black'&gt;Determine you goals&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Do it!&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Name&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Address&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Telephone Number&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Fax Number&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Email&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Job&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Company&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Personal notes&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;b style='color:black'&gt;Conceptualise the tables&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I'm conceptualising them right now!!!&lt;br /&gt;&lt;br /&gt;Split it up into "single entry" and "multiple entry" tables:&lt;br /&gt;&lt;br /&gt;&lt;table&gt;&lt;br /&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;Single&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Multiple&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;td valign='top'&gt;Name&lt;br&gt;Job&lt;br&gt;Company&lt;/td&gt;&lt;td valign='top'&gt;Address&lt;br&gt;Telephone Number&lt;br&gt;Fax Number&lt;br&gt;Email&lt;br&gt;Personal notes&lt;/td&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;br /&gt;Look just give everthing an &lt;b style='color:blue'&gt;ID&lt;/b&gt; alright?&lt;br /&gt;&lt;br /&gt;Then add &lt;b style='color:blue'&gt;Date Added&lt;/b&gt; and &lt;b style='color:blue'&gt;Date Modified&lt;/b&gt; fields.&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black'&gt;Determining Relationships&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Well if you know how to do it, it's easy; if you don't, it's still easy!!!&lt;br /&gt;&lt;br /&gt;Basically break everything down into objects (entities I think the database terminology calls them), that's right, everything. Then give each thing its own &lt;b style='color:blue'&gt;ID&lt;/b&gt;. &lt;br /&gt;&lt;br /&gt;Once you've done that add an &lt;b style='color:blue'&gt;ID&lt;/b&gt; for the thing that it's related to. In this example all the things are related to a person. People are stored in the &lt;b style='color:blue'&gt;Name&lt;/b&gt; table so add a &lt;b style='color:blue'&gt;nameID&lt;/b&gt; field to all the other tables in your schema (ooo!!! proper database word!).&lt;br /&gt;&lt;br /&gt;The book (p.69) shows you the updated field name list for each table. Except that the &lt;b style='color:blue'&gt;Company&lt;/b&gt; table hasn't got a &lt;b style='color:blue'&gt;nameID&lt;/b&gt; added to it. This might be what they meant but I'm guessing that it's another &lt;b style='color:black'&gt;TYPO!!!!!!!!&lt;/b&gt; We'll see ;)&lt;br /&gt;&lt;br /&gt;Apparently we've just cracked the &lt;b style='color:blue'&gt;second normal form&lt;/b&gt; where the rule is &lt;b style='color:blue'&gt;"No non-key attributes depend on a portion of the primary key"&lt;/b&gt;. So now you know.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Creating the Database&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Huzzah!!! We're going to create a database now!!!&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;Create a database. At the &lt;b style='color:blue'&gt;c:\mysql\bin&amp;gt;&lt;/b&gt; prompt type:&lt;b style='color:blue'&gt;mysqladmin -u &lt;i&gt;username&lt;/i&gt; -p&lt;i&gt;password&lt;/i&gt; create contactDB&lt;/b&gt;&lt;br /&gt;&lt;li&gt;Connect to mySQL monitor as the main (root - though I think I replaced that when I installed) user: &lt;b style='color:blue'&gt;/usr/local/bin/mysql -h localhost -u root --p&lt;i&gt;yourpass&lt;/i&gt;&lt;/b&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Switch to the mySQL database. At the &lt;b style='color:blue'&gt;mysql&amp;gt;&lt;/b&gt; prompt type: &lt;b style='color:blue'&gt;use mysql&lt;/b&gt;.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;b style='color:blue'&gt;GRANT ALL ON contactDB.* TO supercontact@'yourhost' IDENTIFIED BY 'somepass';&lt;/b&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;&lt;b style='color:blue'&gt;GRANT SELECT ON contactDB.* TO simpleusert@'yourhost' IDENTIFIED BY 'somepass';&lt;/b&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;b&gt;Summary&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Well, we finally got there. Time to revisit my myODBC/mySQL installations and see if I can make them talk.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Soon we'll be off to &lt;a href='http://tt380.blogspot.com/2005/02/mysql-hour-7.html'&gt;mySQL Hour 7&lt;/a&gt;. Stay tuned.&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110849788650444288?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110849788650444288/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110849788650444288' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110849788650444288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110849788650444288'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/mysql-hour-6.html' title='mySQL Hour 6'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110847628594226374</id><published>2005-02-15T13:38:00.000Z</published><updated>2005-02-15T20:26:51.406Z</updated><title type='text'>mySQL Hour 5</title><content type='html'>&lt;b style='color:black;'&gt;Is all about security&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The first thing to do (for Linux/UNIX users apparently, p.54, not quite sure what Windows users are supposed to do) is check the owner of the "MySQL daemon". &lt;br /&gt;&lt;br /&gt;Make sure it's not the "root" user or there could be trouble.&lt;br /&gt;&lt;br /&gt;Under Linux / UNIX:&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue'&gt;ps auxw | grep mysqld&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;will reveal who owns "daemon".&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;Securing your mySQL connection&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If you run mySQL on your own workstation protect your mySQL setup with a screensaver password when you leave your PC unattended. Or lock your front door, the choice is yours.&lt;br /&gt;&lt;br /&gt;If you run mySQL on a server outside of your network then take precautions to make sure nasty people don't get hold of your login information. You can use, wait for it, SSH to encrypt the traffic you send over the web or, if you are using something browser based like phpMyAdmin, you should use the HTTPS protocol via SSL (Secure Sockets Layers - don't know, don't ask, haven't done TT282 yet, just do it alright!).&lt;br /&gt;&lt;br /&gt;Luckily I've already installed SSH, I may blog how at some point...&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;Introducing the mySQL privilege system&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Me:&lt;/b&gt; Hello mySQL privelege system. What do you do?&lt;br /&gt;&lt;br /&gt;&lt;span style='color:green;'&gt;&lt;b&gt;mySQL p.s.:&lt;/b&gt; Well, I check &lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;where you are accessing from (your host)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;who you say you are (username and password)&lt;/li&gt;&lt;br /&gt;&lt;li&gt;what you are allowed to do (your command privileges)&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;Me:&lt;/b&gt; Thanks. Where do you store this information pray tell?&lt;br /&gt;&lt;br /&gt;&lt;span style='color:green;'&gt;&lt;b&gt;mySQL p.s.:&lt;/b&gt; Hmmm, let me think... &lt;ul&gt;&lt;br /&gt;&lt;li&gt;columns_priv - defines user privileges for specific fields in a table&lt;/li&gt;&lt;br /&gt;&lt;li&gt;db - defines permissions for all databases on the server&lt;/li&gt;&lt;br /&gt;&lt;li&gt;func - defines user-created functions&lt;/li&gt;&lt;br /&gt;&lt;li&gt;host - defines the acceptable hosts that can connect to a specific database&lt;/li&gt;&lt;br /&gt;&lt;li&gt;tables_priv - user privileges for specific tables&lt;/li&gt;&lt;br /&gt;&lt;li&gt;user - command privileges for a specific user&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;You'll need these in a minute when you add a few sample users to mySQL you know.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Me:&lt;/b&gt; Will I? Cheers....&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;2-step authentication process&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;mySQL checks 3 things during the authentication process, and it does it in 2 stages:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;the host you are connecting from and the username / password pair you are using&lt;/li&gt;&lt;br /&gt;&lt;li&gt;whatever command (SELECT, UPDATE yadda yadda yadda) you're using, it makes sure you're allowed&lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;If you can't be verified, you can't get in. There's a bit more to it than that, but remember we're bluffing.&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;Working with user privileges&lt;/b&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;Adding Users&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The simplest way to add a new user is via the &lt;b style='color:blue;'&gt;GRANT&lt;/b&gt; command. Or you can &lt;b style='color:blue;'&gt;INSERT&lt;/b&gt; into all the relevant tables in the database, sounds like work to me!&lt;br /&gt;&lt;br /&gt;So here we go:&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue;'&gt;GRANT privileges&lt;br&gt;ON databse.tablename&lt;br&gt;TO username@host&lt;br&gt;IDENTIFIED BY 'password';&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Privileges that may be &lt;b style='color:blue;'&gt;GRANT&lt;/b&gt;ed:&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue;'&gt;ALL&lt;br&gt;ALTER&lt;br&gt;CREATE&lt;br&gt;DELETE&lt;br&gt;DROP&lt;br&gt;FILE&lt;br&gt;INDEX&lt;br&gt;INSERT&lt;br&gt;PROCESS&lt;br&gt;REFERENCES&lt;br&gt;RELOAD&lt;br&gt;SELECT&lt;br&gt;SHUTDOWN&lt;br&gt;UPDATE&lt;br&gt;USAGE&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue;'&gt;GRANT SELECT, INSERT&lt;br&gt;ON myDB.*&lt;br&gt;TO john@"%"&lt;br&gt;IDENTIFIED BY '99hjc';&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Note two wildcards:&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue;'&gt;*&lt;/b&gt; replaces the entire list of tables&lt;br /&gt;&lt;b style='color:blue;'&gt;%&lt;/b&gt; replaces all known hosts anywhere!&lt;br /&gt;&lt;br /&gt;Although &lt;b style='color:blue;'&gt;GRANT&lt;/b&gt;ing privileges should be automatically updated, you can &lt;b style='color:blue;'&gt;FLUSH PRIVILEGES&lt;/b&gt; to reload the privilege tables. Super.&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;Removing Privileges&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The opposite of &lt;b style='color:blue;'&gt;GRANT&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue;'&gt;REVOKE INSERT&lt;br&gt;ON myDB.*&lt;br&gt;FROM john@'%';&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Will ruin john @ anywhere he damn well chooses' day if he wants to execute &lt;b style='color:blue;'&gt;INSERT&lt;/b&gt; commands on any tables in &lt;b style='color:blue;'&gt;myDB&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue;'&gt;FLUSH PRIVILEGES&lt;/b&gt; afterwards, just to make sure.&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;Summary&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Well, very interesting but still a little unsure about this whole setting up users thing. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;I think I'll crack on through &lt;a href='http://tt380.blogspot.com/2005/02/mysql-hour-6.html'&gt;mySQL Hour 6&lt;/a&gt; and see if that illuminates the issue further.&lt;/b&gt;&lt;br /&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110847628594226374?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110847628594226374/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110847628594226374' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110847628594226374'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110847628594226374'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/mysql-hour-5.html' title='mySQL Hour 5'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110845840010137436</id><published>2005-02-15T08:37:00.000Z</published><updated>2005-02-16T14:51:16.643Z</updated><title type='text'>mySQL Hour 4</title><content type='html'>Okay, mySQL Hours 1 to 3 covered basic databasey stuff. Hour 3 touched on "normalisation", which is something I haven't come across in my many hours playing around with the QBE grid in MS Access!&lt;br /&gt;&lt;br /&gt;Hour 4 gets into the detail of how mySQL actually works.&lt;br /&gt;&lt;br /&gt;We are introduced to several mySQL applications; most bundled with the distribution, some that need to be got from other sources.&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;mySQL monitor&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;First up is mySQL monitor. This is a command line interface (read the book p.40!) with mySQL.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Start up your DOS prompt (in Windows: Start&gt;Run type in either "dosprompt" or "cmd", dependent on your Windows version).&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Change directory: &lt;span style='color:blue'&gt;cd C:\mysql\bin&lt;/span&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Start mysql monitor by typing: &lt;span style='color:blue'&gt;mysql&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Bingo, you've started mysql monitor and have a &lt;span style='color:blue'&gt;mysql&amp;gt;&lt;/span&gt; prompt in your DOS window.&lt;br /&gt;&lt;br /&gt;If your using Linux then it's a bit different but not much.&lt;br /&gt;&lt;br /&gt;Then onto trying out some commands:&lt;br /&gt;&lt;br /&gt;&lt;span style='color:blue'&gt;use test;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Being about the extent of it for mysql monitor.&lt;br /&gt;&lt;br /&gt;Before you move on though, and the book doesn't tell you this, you need to end your mysql monitor session and get back to the &lt;b style='color:blue'&gt;c:\mysql\bin&amp;gt;&lt;/b&gt; prompt or mysqladmin won't work.&lt;br /&gt;&lt;br /&gt;Here's how: type &lt;b style='color:blue'&gt;exit&lt;/b&gt; at the &lt;b style='color:blue'&gt;mysql&amp;gt;&lt;/b&gt; prompt.&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;Handy DOS window tip&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Okay, you can probably figure this yourselves but let me save you the bother.&lt;br /&gt;&lt;br /&gt;You can't cut and paste windows-styley in the DOS window, it just doesn't do that! Instead right-click your mouse, select &lt;b style='color:blue;'&gt;Select All&lt;/b&gt; and then hit &lt;b style='color:black;'&gt;Enter / Return&lt;/b&gt;. Strangely enough the contents of the DOS window are copied to your clipboard and you can then paste them using &lt;b style='color:blue;'&gt;Ctrl + V&lt;/b&gt; into your favourite, Notepad.&lt;br /&gt;&lt;br /&gt;Means you can print out the scree from &lt;b style='color:blue;'&gt;mysqladmin --help&lt;/b&gt; (see below) and read it at you leisure.&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;Escaping characters&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Veterans of TT281 (aka Javascript) will remember that sometimes you need to "escape characters". You need to do it in SQL too! Luckily the escape character is the good old backslash : "\". So no excuses!&lt;br /&gt;&lt;br /&gt;En passant we are told to use either single or double quotes consistently. It doesn't matter, except that single quotes (like this: ') are the wider SQL standard. I'll be using single quotes then.&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;mySQL administration&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Start up DOS, change directories and then start using mySQL administration.&lt;br /&gt;&lt;br /&gt;It's not hard, you know when you're using mySQL admin because you type:&lt;br /&gt;&lt;br /&gt;&lt;span style='color:blue'&gt;mysqladmin&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;in front of everything you do.&lt;br /&gt;&lt;br /&gt;You can:&lt;br /&gt;&lt;br /&gt;&lt;span style='color:blue'&gt;mysqladmin create test_DB&lt;/span&gt;&lt;br /&gt;&lt;span style='color:blue'&gt;mysqladmin drop test_DB&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and even&lt;br /&gt;&lt;br /&gt;&lt;span style='color:blue'&gt;mysqladmin status&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Go on, you can do it! And it's fun!&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;mysqldump&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;While you're there at the &lt;span style='color:blue;'&gt;c:\mysql\bin&gt; &lt;/span&gt;prompt you can mysqldump too!&lt;br /&gt;&lt;br /&gt;You can&lt;br /&gt;&lt;br /&gt;&lt;span style='color:blue'&gt;mysqldump test_DB&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;if you haven't just "dropped" it (keep up!).&lt;br /&gt;&lt;br /&gt;You can&lt;br /&gt;&lt;br /&gt;&lt;span style='color:blue'&gt;mysqldump test_DB &gt; mydump.sql&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;which dumps your dbase into an sql file - handy.&lt;br /&gt;&lt;br /&gt;When you get stuck you can&lt;br /&gt;&lt;br /&gt;&lt;span style='color:blue'&gt;mysqldump --help&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and it helps you. Complicated isn't it?&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;What about the ;'s?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Every so often something pops up about commands ending in ;s but they aren't doing it in the book. Why not I wonder? Is it because these are application commands we are issuing here and not propa SQL?????&lt;br /&gt;&lt;br /&gt;I think I'll ask....&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:purple'&gt;EDIT: I asked in the Teach forum and this is what Barbara said in reply:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style='color:purple'&gt;"Just SQL commands must have semi-colons.  The command prompts are different - no colons semi or otherwise required!"&lt;br /&gt;&lt;br /&gt;Thanks Barbara!&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;phpMyAdmin&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Is a browser based php tool for playing with mySQL. You need to have php installed (see TT381 for further details).&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;MySQL-Front&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;IS FREE for Windows users; Linux users, you can't have it, get over it. It's a bit like MSAccess, apparently...&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;MySQLManager&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Is included in the distribution, alledgedly. I'll check later.&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;Summary&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;That didn't take an hour did it?&lt;br /&gt;&lt;br /&gt;Still haven't found all the bits I think I need about setting up a database and a user so I can verify my myODBC / mySQL install is working okay. &lt;br /&gt;&lt;br /&gt;&lt;b style='color:black'&gt;Maybe &lt;a href='http://tt380.blogspot.com/2005/02/mysql-hour-5.html'&gt;mySQL Hour 5&lt;/a&gt; will hold the answers?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;;0)&lt;br /&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110845840010137436?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110845840010137436/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110845840010137436' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110845840010137436'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110845840010137436'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/mysql-hour-4.html' title='mySQL Hour 4'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110839199057691517</id><published>2005-02-14T14:20:00.000Z</published><updated>2005-02-15T09:11:33.683Z</updated><title type='text'>STAGE 2: Install mySQL and myODBC</title><content type='html'>The plan of attack for Stage 2 is this:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Install MySQL and MyODBC from course CD.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Add a database and user to MySQL as per MySQL in 24hrs.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Configure a system DSN for MyODBC.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Test with a file index.cfm&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;INSTALLING mySQL (Cert in Web Apps CD)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Okay, I charged right in and tried to install it from the zip archive on the CD. Don't, it doesn't work!!!&lt;br /&gt;&lt;br /&gt;Extract the zip to a temp directory on your hard drive, then double click "setup.exe".&lt;br /&gt;&lt;br /&gt;I jjust followed the wizard through (paying no attention to the EULA etc.... as usual) and it got to the end.&lt;br /&gt;&lt;br /&gt;Appendix A in mySQL in 24 hours has more detail if you need it.&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;STARTING UP mySQL&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Great, I thought, I'lll find the icon in the Programs menu and fire it up. Trouble is the mySQL install doesn't set up a Programs group for mySQL or drop a short-cut on the desktop.&lt;br /&gt;&lt;br /&gt;So, you have to find the .exe on the hard disk all by yourself (still with me?).&lt;br /&gt;&lt;br /&gt;You find the .exe you need here:&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue;'&gt;c:\mySQL\bin\winmysqladmin.exe&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;When you first start mySQL admin it asks you to set up a username and password. So I gave it a user name and password without really understanding what I was doing.&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;INSTALLING myODBC (Cert in Web Apps CD)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The next bit is installing myODBC. Straightforward install. Just selected all the default options. Seemed happy.&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;ADD A DATABASE AND USER TO mySQL&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I haven't done this yet but I'm only at the start of Hour 4 (14/02/2005). Maybe all will be revealed as I push forward through the book!!!&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;USING myODBC - CONFIGURE A SYSTEM DSN&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;You won't find a Prgoram Group for myODBC in your Programs folder either. You need to go into it via:&lt;br /&gt;&lt;br /&gt;&lt;b style='color:blue;'&gt;Control Panel&gt;AdminstrationTools&gt;myODBC-3-test&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I got as far as "Test Data Source" - clicked it, it was happy that it could talk to "mysql-4.0.17-nt".&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;TEST WITH .CFM FILE&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Okay, when I used this test page (drop the code below into an HTML document and save it as a .cfm file), my installation didn't work (see below). As of 14/02/2005, I am still trying to sort it out, but reckon reading mySQL in 24hrs could be the way forward!&lt;br /&gt;&lt;a name='page2'&gt;&lt;/a&gt;&lt;span style='color:purple;'&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;TT380 ColdFusion Test Page&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;cfquery name=&amp;quot;databases&amp;quot; datasource=&amp;quot;the data source name you used&amp;quot; &lt;br /&gt;debug=&amp;quot;yes&amp;quot;&amp;gt;&lt;br /&gt;show databases;&lt;br /&gt;&amp;lt;/cfquery&amp;gt;&lt;br /&gt;&amp;lt;!-- Note: No output will be generated on the page from this query if the &lt;br /&gt;connection is good, if not good an error is displayed on the page. --&amp;gt;&lt;br /&gt;&amp;lt;cfoutput&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;Today is #DateFormat(now())#&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/cfoutput&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;WHAT I HAVEN'T DONE&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Is add a database and user in mySQL becuase I haven't read that bit in mySQL in 24 hours yet. Maybe when I do all that follows will magically drop into place. Still think this is complicated but I guess running a web server is or else we'd all be doing it!!!!&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;WHERE I GOT STUCK&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Everything is okay right up to the point where I test it all using Alistair's 2nd test page (&lt;a href='#page2'&gt;see above&lt;/a&gt;). I get the following error message displayed in Firefox:&lt;br /&gt;&lt;br /&gt;&lt;span style='color:orange;'&gt;Error Occurred While Processing Request&lt;br /&gt;&lt;br /&gt;Error Diagnostic Information&lt;br /&gt;&lt;br /&gt;ODBC Error Code = ()&lt;br /&gt;&lt;br /&gt;Unsupported ODBC data source the data source name you used for ColdFusion Express. The data source may not exist or no driver is specified for the data source.&lt;br /&gt;&lt;br /&gt;The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (6:1) to (6:81).&lt;br /&gt;&lt;br /&gt;Date/Time: 02/13/05 21:35:10&lt;br /&gt;Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0&lt;br /&gt;Remote Address: 127.0.0.1&lt;br /&gt;Template: c:\opensa\apache\htdocs\index2.cfm&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;HELP YOU CAN GIVE ME:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;1. If anybody can interpret the above output from Firefox for me I would be v. grateful.&lt;br /&gt;&lt;br /&gt;I'll read around mySQL in 24 hours a bit more a see where I get to. I'm out of my comfort zone using anything that doesn't have drop-down menus, maybe I'lll cure that phobia during the next 12 weeks!!!!&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;Maybe my questions are answered in &lt;a href='http://tt380.blogspot.com/2005/02/mysql-hour-4.html'&gt;mySQL Hour 4?&lt;/a&gt;&lt;/b&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110839199057691517?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110839199057691517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110839199057691517' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110839199057691517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110839199057691517'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/stage-2-install-mysql-and-myodbc.html' title='STAGE 2: Install mySQL and myODBC'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110838432730888499</id><published>2005-02-14T13:30:00.000Z</published><updated>2005-02-15T09:13:27.526Z</updated><title type='text'>STAGE 1: Install Apache and ColdFusion Express</title><content type='html'>Our plan of attack for Stage 1 is this:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Install Apache and ColdFusion Express from the supplied course CDs&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Configure and then test using an example file index.cfm&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="color:black;"&gt;INSTALLING APACHE (from the Cert in Web Apps CD)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;The &lt;span style="color: rgb(255, 102, 0);"&gt;&lt;b&gt;Apache web server&lt;/b&gt;&lt;/span&gt; is on the Cert in Web Apps Development CD. It &lt;span style="color: rgb(255, 102, 0);"&gt;&lt;b&gt;is called OpenSA&lt;/b&gt;&lt;/span&gt;, but it is an Apache based server.&lt;br /&gt;&lt;br /&gt;Once installed you will have a new directory on your hard drive called&lt;span style="color: rgb(0, 0, 221);"&gt;&lt;b&gt; c:\openSA&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;Apache has to be started before you can serve up web pages locally from your hard disk. Luckily this is easy.&lt;br /&gt;&lt;br /&gt;&lt;b style="color:black;"&gt;TO START APACHE&lt;/b&gt;&lt;br /&gt;From the Start menu:&lt;span style="color: rgb(255, 102, 0);"&gt;&lt;b&gt;&lt;br /&gt;&lt;br /&gt;Programs&gt;OpenSA Web Server&gt;Management&gt;Start Apache&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;You will get a little feather icon on your task bar with "Start Apache" next to it. You can tell it is there!&lt;br /&gt;&lt;br /&gt;&lt;b style="color:black;"&gt;SERVING UP PAGES&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Apache uses the domain "localhost" for locally served pages. Therefore your web address will be of the form:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 221);"&gt;&lt;b&gt;http://localhost/index.htm&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b style="color:black;"&gt;WHERE TO PUT PAGES ON YOUR HARD DISK&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;You need to save web pages to your hard disk in the folder:&lt;span style="color: rgb(0, 0, 221);"&gt;&lt;b&gt;c:\openSA\apache\htdocs&lt;br /&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;For the example shown immediately above a file called&lt;span style="color: rgb(0, 0, 221);"&gt;&lt;b&gt; index.htm &lt;/b&gt;&lt;/span&gt;saved in&lt;span style="color: rgb(0, 0, 221);"&gt;&lt;b&gt; c:\openSA\apache\htdocs&lt;/b&gt;&lt;/span&gt; would be displayed in your browser if you called up&lt;span style="color: rgb(0, 0, 221);"&gt;&lt;b&gt; http://localhost/index.htm.&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;As long as you've got your little feather showing!!!!&lt;br /&gt;&lt;br /&gt;&lt;b style="color:black;"&gt;INSTALLING COLDFUSION EXPRESS (from CD ROM in the back of the ColdFusion book)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;BEFORE you start to install ColdFusion you might want to create a new directory in your &lt;span style="color: rgb(0, 0, 221);"&gt;&lt;b&gt;c:\openSA\apache\htdocs &lt;/b&gt;&lt;/span&gt;folder. I did and called it&lt;span style="color: rgb(0, 0, 221);"&gt;&lt;b&gt; "coldfusion".&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Installing ColdFusion Express is relatively straightforward. On my install it told me it couldn't find a web server (tried to install with and wothout Apache running in the background). Then it asks where you want to save the files. They need to go in the root directory of you web server (&lt;span style="color: rgb(0, 0, 221);"&gt;&lt;b&gt;c:\openSA\apache\htdocs&lt;/b&gt;&lt;/span&gt;). I put mine in&lt;span style="color: rgb(0, 0, 221);"&gt;&lt;b&gt; c:\openSA\apache\htdocs\coldfusion&lt;/b&gt;&lt;/span&gt;, that seemed okay.&lt;br /&gt;&lt;br /&gt;I can't see that ColdFusion requires any services to be started before it works.&lt;br /&gt;&lt;br /&gt;Using Alistair's test page (&lt;a href='#page1'&gt;see below&lt;/a&gt;), I verified that ColdFusion Express and Apache (check for the feather) were both working okay.&lt;br /&gt;&lt;br /&gt;Phew!&lt;br /&gt;&lt;br /&gt;&lt;b style="color:black;"&gt;TO TEST IT'S WORKING&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Chuck this code in any HTML editor (Notepad for example) and save it as index.cfm.&lt;br /&gt;&lt;br /&gt;Then try and call it up from your local drive using http://localhost/index.cfm.&lt;br /&gt;&lt;a name='page1'&gt;&lt;/a&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;title&amp;gt;TT380 ColdFusion Test Page&amp;lt;/title&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;cfoutput&amp;gt;&lt;br /&gt;&amp;lt;p&amp;gt;Today is #DateFormat(now())#&amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/cfoutput&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&lt;br /&gt;If all is working today's date should be shown on the web page.&lt;br /&gt;&lt;br /&gt;&lt;b style="color:black;"&gt;That's all I've got time to post just now, &lt;a href='http://tt380.blogspot.com/2005/02/stage-2-install-mysql-and-myodbc.html'&gt;Stage 2&lt;/a&gt; to follow soon.&lt;/b&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110838432730888499?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110838432730888499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110838432730888499' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110838432730888499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110838432730888499'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/stage-1-install-apache-and-coldfusion.html' title='STAGE 1: Install Apache and ColdFusion Express'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-10827377.post-110839492537843151</id><published>2005-02-14T12:30:00.000Z</published><updated>2005-02-15T09:11:56.910Z</updated><title type='text'>Setting up local services for TT380</title><content type='html'>Thanks to Alistair Thomas for his contribution in ordering our approach to the set up of local services for TT380.&lt;br /&gt;&lt;br /&gt;This post will be editted / refined as I see fit / can be bothered!&lt;br /&gt;&lt;br /&gt;The approach has 2 basic stages:&lt;br /&gt;&lt;br /&gt;&lt;a href='stage-1-install-apache-and-coldfusion.html'&gt;Stage 1: Install Apache (OpenSA) and ColdFusion (ColdFusion Express)&lt;/a&gt;&lt;br /&gt;&lt;a href='stage-2-install-mysql-and-myodbc.html'&gt;Stage 2: Install mySQL and myODBC&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;At the end of each stage you can use a ColdFusion file (.cfm) to verify that things are working as they should. Thanks to Alistair for the code.&lt;br /&gt;&lt;br /&gt;&lt;b style='color:black;'&gt;So let's crack onto &lt;a href='http://tt380.blogspot.com/2005/02/stage-1-install-apache-and-coldfusion.html'&gt;Stage One&lt;/a&gt;&lt;/b&gt;&lt;br&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/10827377-110839492537843151?l=tt380.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tt380.blogspot.com/feeds/110839492537843151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=10827377&amp;postID=110839492537843151' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110839492537843151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/10827377/posts/default/110839492537843151'/><link rel='alternate' type='text/html' href='http://tt380.blogspot.com/2005/02/setting-up-local-services-for-tt380.html' title='Setting up local services for TT380'/><author><name>rapidweb</name><uri>http://www.blogger.com/profile/15862659310655456192</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
