A while ago I ported Subtext to MySQL. I've gotten a bit of feedback that suggested that the port and specially MySQL integration could be much improved. So, I addressed a couple of issues (see below), most of them having to do with variations of MySQL installations at various web hosting companies . As before, this is not an official version of Subtext, but simply my port from Microsoft SQL Server to MySQL. Here is the good stuff:
Installation (2.84 MB)
Source (22.7 MB)
Removed the extra unneeded files
Fixed the location of the MySQL provider
Subtext now accounts for whether MySQL is case sensitive
Subtext now comes with a MySQL provider that supports medium trust
Added more debugging information during installation
Anything else that regular Subtext requires.
Seeing how almost every issue that was reported to me revolved around GoDaddy, here are easy 20 steps to blogging with Subtext for MySQL:
- Login to GoDaddy
- Go to Hosting & Servers menu, then pick My Hosting Account.
- Click on the Open link.
- From the Content menu, pick IIS Settings and create a folder.
- Give the folder Set Application Root and Anonymous Access permissions.
- From the Content menu, select File Manager, check the newly created folder, then click on the Permissions button. Uncheck Inherit, then give the folder read/write permissions.
- Go to Databases menu and select MySQL, then click Create Database button
- For version, pick 5.0. Give the database a name. Note that the User ID for the database and the Database name will be the same.
- Go into Edit/View Details of the database and you'll see various information. Stay on this page, while doing the next set of steps.
- Unzip the Installation file you just downloaded from this page and upload the contents into the folder you just created in your hosting account.
- Open the web.config (that resides in the folder you've created) in your editor of choice.
- Search for the following line: <add name="subtextData" connectionString="Server=YOUR_SERVER;Database=YOUR_DB;User ID=YOUR_USER_ID;Password=YOUR_PASSWORD" />
- Ok, remember all the way back in the step 9, I told you stay on that page. Great.
- Replace YOUR_SERVER with Host Name (from the web page).
- Replace YOUR_DB with Database Name.
- Replace YOUR_USER_ID with User Name.
- Replace YOUR_PASSWORD with whatever password you assigned yourself for the database. Great, the part for identifying the database is done. Let's move on.
- Search for the following line: <trust level="Full" originUrl=".*" />
- Comment this line out. That means place <!-- in front of the line and --> at the end of the line. So it should look like this: <!-- <trust level="Full" originUrl=".*" /> --> Why? Because for whatever reason, GoDaddy no likey when someone tells it under what trust level to run. So even if you set it to Medium or Low or whatever else, the site will still barf.
- That's it. You are ready to start blogging.
If the site still does not work, you can try these steps to get to the real error. If you are still having issues, shoot me a message via the Contact link at the top.