<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel>
	  <title>Ask MetaFilter questions tagged with mysql</title>
      <link>http://ask.metafilter.com/tags/mysql</link>
      <description>Questions tagged with 'mysql' at Ask MetaFilter.</description>
	  <pubDate>Mon, 07 Dec 2009 06:42:13 -0800</pubDate> <lastBuildDate>Mon, 07 Dec 2009 06:42:13 -0800</lastBuildDate>

      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>	  
	<item>
	<title>Best practices for benchmarking and profiling!</title>
	<link>http://ask.metafilter.com/139995/Best%2Dpractices%2Dfor%2Dbenchmarking%2Dand%2Dprofiling</link>	
	<description>Help me develop a performance and concurrency testing and improvement plan for an ecommerce site. IANA DBA, but &quot;Trial by fire is one of the best career paths.&quot; My company is developing an ecommerce site that may have up to 50,000 visitors/day when W-2 forms are released in mid-February, but significantly less traffic for the rest of the year-perhaps a few thousand per day when their client companies have payday. My experience (read: the companies experience) is limited to mom and pop sites that are lucky to receive that much traffic in a month. It&apos;s a Magento site (php/mysql, fairly resource intensive).&lt;br&gt;
&lt;br&gt;
We currently host a few sites on the Rackspace cloud (including some Magento sites), which we are comfortable with after trying a couple of other Magento hosting options, but the cloud limits our configuration control to a .htaccess file, limits our log access, etc. To get more control, I have a virtual dedicated server set up on Rackspace, running a fresh CentOS image (chosen because the documentation for setting up magento on it is better than the other options); I&apos;m going to install php and mysql and move the development site over to it today. (The dev site is waiting for a front end redesign, but is otherwise finished). This server has 256 MB RAM and a 10GB hard drive; it can be resized (with some down time) all the way up to 15872 MB and 620 GB, at additional cost/hour. My rough plan:&lt;br&gt;
&lt;br&gt;
1) In a planned, organized, unbiased way, benchmark and profile the performance of the site at the current server size. I need the most help with this. I&apos;ve read the O&apos;Reilly &quot;High Performance MySQL&quot; book, which was somewhat helpful; I&apos;ve toyed with ab, and poked at some of the other possible benchmark/profiling mentioned in there, but it seemed like the time required to get up to speed on the more sophisticated options might be too much for this project. I&apos;m aware of the optimization chapter in the MySQL manual, but I haven&apos;t looked at it yet. I run OS X 10.5 and Windows 7. Budget is limited: cheap options are good, free is better. I also don&apos;t want this to consume my life: we have many other projects in the hopper. I want to think it through in a confident, measured way, and not be having panic attacks on February 10th.&lt;br&gt;
2) Modify server settings and configuration. I DON&apos;T want to be in the business of modifying Magento&apos;s core code, potentially putting us out of sync with future upgrades, so things like optimizing individual SQL queries are out.&lt;br&gt;
3) If performance remains unacceptable, resize the server and repeat.&lt;br&gt;
&lt;br&gt;
So I guess the main questions are as follows: Is this rough sketch of a plan reasonable? Which tools should I use to benchmark and profile? I could use some guidelines about what constitutes &quot;acceptable performance&quot; as well (I know this is in some sense a ridiculous, hopelessly idiosyncratic question). What am I not thinking of? Our target launch date for this site is January 2nd, but as stated above, the big performance requirements don&apos;t arrive for six weeks or so after that. Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.139995</guid>
	<pubDate>Mon, 07 Dec 2009 06:42:13 -0800</pubDate>
	<category>concurrency</category>
	<category>magento</category>
	<category>mysql</category>
	<category>performance</category>
	<category>php</category>
	<dc:creator>Kwine</dc:creator>
	</item>
	<item>
	<title>How to automate backups on my ftp server?</title>
	<link>http://ask.metafilter.com/139885/How%2Dto%2Dautomate%2Dbackups%2Don%2Dmy%2Dftp%2Dserver</link>	
	<description>I have some wordpress sites hosted at bluehost that I want to keep backed up. Can you help me automate this? Detailed needs inside. What I&apos;ve been doing is going to the bluehost control panel every few weeks and manually downloading, first, all the files on the ftp server. Then I&apos;m separately downloading all the dbs. Then I&apos;m throwing them all in a folder on my local machine and have Carbonite back them up remotely. I keep five backup sets, and delete the oldest when I add a new one.&lt;br&gt;
&lt;br&gt;
I would like to automate this 100% if possible -- maybe have some kind of script that every week zips up the backups into a one big file on the ftp server, which I can then use SynchBack Pro to mirror to my local HD on a regular basis? &lt;br&gt;
&lt;br&gt;
The solution would have to compress all the dbs and a defined portion of the ftp file structure into one file named 120509.* (itself inside a folder called /backups). The following week, same exact thing, except the files are compressed into 121209.*, etc. Each week it should look in /backups for a file named with a date older than 5 weeks and delete it. &lt;br&gt;
&lt;br&gt;
Then I would use Synchback every week to pull down the contents of /backups on the ftp server to my local drive, which I will tell Carbonite to pull up remotely.&lt;br&gt;
&lt;br&gt;
What do I do to automate the compressing and saving and sequential naming and date-based deleting on the ftp server? &lt;br&gt;
&lt;br&gt;
I&apos;ve never used cron or SSH and only done super basic stuff using phpmysql. I&apos;ve read through &lt;a href=&quot;http://ask.metafilter.com/116450/How-do-I-automatically-backup-a-website-files-and-database-to-a-Mac&quot;&gt;these &lt;/a&gt;&lt;a href=&quot;http://ask.metafilter.com/18690/Automatic-mySQL-backup&quot;&gt;two &lt;/a&gt;askmes and while they did include code snippets that seemed like what I needed, I don&apos;t know what to do with them or how to modify them to do what I specifically need. So speak very slowly. Thanks!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.139885</guid>
	<pubDate>Sat, 05 Dec 2009 12:29:34 -0800</pubDate>
	<category>backup</category>
	<category>bluehost</category>
	<category>cron</category>
	<category>ftp</category>
	<category>mysql</category>
	<category>ssh</category>
	<dc:creator>stupidsexyFlanders</dc:creator>
	</item>
	<item>
	<title>Help me recover a deleted MySQL database on osx</title>
	<link>http://ask.metafilter.com/139797/Help%2Dme%2Drecover%2Da%2Ddeleted%2DMySQL%2Ddatabase%2Don%2Dosx</link>	
	<description>Where does MySQL store actual data in Snow Leopard? How would I retrieve a deleted database from a Time Machine backup? MySQL was crashing repeatedly on my Snow Leopard. On the advice of an Apple genius, I nuked the existing install and all its associated directories. I didn&apos;t worry much because I do database stuff on my work computer and only keep copies on my laptop. &lt;br&gt;
&lt;br&gt;
Turns out that there was one particular database [now nuked] that I spent a whole week cleaning up on my laptop. The desktop only has a really old version of this particular database.&lt;br&gt;
&lt;br&gt;
I have regular time machine backups. How do I pluck this database out and restore it?&lt;br&gt;
I cannot for the life of me figure out how to get to the data without going through mysql. Someone suggested looking in  /usr/local/mysql/data&lt;br&gt;
&lt;br&gt;
I can get to the mysql directory but have no permission to enter the data directory. I could recreate much of this work but it will take forever and I&apos;d rather not. Can someone help?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.139797</guid>
	<pubDate>Fri, 04 Dec 2009 10:19:16 -0800</pubDate>
	<category>backup</category>
	<category>database</category>
	<category>deleted</category>
	<category>mac</category>
	<category>mysql</category>
	<category>osx</category>
	<category>retrieve</category>
	<category>snowleopard</category>
	<category>timemachine</category>
	<dc:creator>special-k</dc:creator>
	</item>
	<item>
	<title>Please hope me generate a custom report from a Wordpress database</title>
	<link>http://ask.metafilter.com/138906/Please%2Dhope%2Dme%2Dgenerate%2Da%2Dcustom%2Dreport%2Dfrom%2Da%2DWordpress%2Ddatabase</link>	
	<description>PHP/MySQL gurus: Please help me get data out of Wordpress in a really specific fashion. So I need to get a custom report out of our Wordpress database, from a very specific range of dates/times, and in a specific format. I need to be able to specify start and end date/times, and get back a comma-delimited file with this data for all posts in the range:&lt;br&gt;
&lt;br&gt;
Date, time, post title&lt;br&gt;
&lt;br&gt;
That&apos;s it. It would be nice if this were somehow made into a plugin with drop-down menus for the date range, but this is a &quot;we need it right now&quot; situation with zero budget for coders.&lt;br&gt;
&lt;br&gt;
So, what&apos;s the easiest way to do it? I&apos;m thinking a PHP page that fetches and retrieves the data and outputs it to the browser. But I might be missing some solution that is much easier and more elegant. Also, I have no idea how to code such a page, and have zero confidence with the MySQL command line. Can you help, por favor?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.138906</guid>
	<pubDate>Mon, 23 Nov 2009 16:39:27 -0800</pubDate>
	<category>mysql</category>
	<category>wordpress</category>
	<dc:creator>jbickers</dc:creator>
	</item>
	<item>
	<title>What interesting statistical information can I dig out of this medical billing data?</title>
	<link>http://ask.metafilter.com/138564/What%2Dinteresting%2Dstatistical%2Dinformation%2Dcan%2DI%2Ddig%2Dout%2Dof%2Dthis%2Dmedical%2Dbilling%2Ddata</link>	
	<description>What interesting statistical information can I dig out of this medical billing data? I have 2000 rows of medical billing information (mysql) with the following attributes.  I&apos;ve normalized the data and here is a very simple description:&lt;br&gt;
&lt;br&gt;
patient:&lt;br&gt;
id&lt;br&gt;
dob&lt;br&gt;
city/state/zip&lt;br&gt;
primary insurance provider&lt;br&gt;
secondary insurance provider&lt;br&gt;
&lt;br&gt;
provider:&lt;br&gt;
id&lt;br&gt;
&lt;br&gt;
procedure:&lt;br&gt;
procedure id/code&lt;br&gt;
&lt;br&gt;
patient_procedure:(fk to patient &amp;amp; provider &amp;amp; procedure)&lt;br&gt;
procedure date&lt;br&gt;
billed amount&lt;br&gt;
&lt;br&gt;
Unfortunately, the data only spans one month so I can&apos;t provide anything interesting across a date dimension beyond aggregating certain measures by weekday. &lt;br&gt;
&lt;br&gt;
I&apos;ve already produced a lot of information such as&lt;br&gt;
% of patients with no secondary insurance&lt;br&gt;
avg age for procedure&lt;br&gt;
top-5 most frequently occurring procedures with large avg cost&lt;br&gt;
billing  and frequency by zipcode&lt;br&gt;
so on and so forth-measure X across dimension Y&lt;br&gt;
&lt;br&gt;
I&apos;m looking for suggestions for some deeper analysis than the many SQL aggregates that I&apos;ve performed.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.138564</guid>
	<pubDate>Thu, 19 Nov 2009 11:37:28 -0800</pubDate>
	<category>analysis</category>
	<category>data</category>
	<category>mysql</category>
	<category>sql</category>
	<category>statistics</category>
	<dc:creator>neilkod</dc:creator>
	</item>
	<item>
	<title>Does php fork standalone mysql queries or wait for them?</title>
	<link>http://ask.metafilter.com/135632/Does%2Dphp%2Dfork%2Dstandalone%2Dmysql%2Dqueries%2Dor%2Dwait%2Dfor%2Dthem</link>	
	<description>How does PHP handle mysql requests (in regard to time and &apos;forking&apos;) A piece of PHP code does a mysql INSERT. Assuming that there are no further mysql commands (ie, another SQL query or a request for the insert id), does PHP wait for the mysql to be completed before it continues with the rest of the PHP? Or does it wander on ahead?&lt;br&gt;
&lt;br&gt;
The reason I ask, is that I have a server that is (occasionally) stacking a load of slow queries.&lt;br&gt;
&lt;br&gt;
I&apos;ve also got a system that does inserts a record, then redirects the browser to a different page which looks for a modified records.&lt;br&gt;
&lt;br&gt;
I&apos;m getting reports of a bug that could be a race condition, but I&apos;d assumed that PHP was waiting for a response from mysql...</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.135632</guid>
	<pubDate>Fri, 16 Oct 2009 07:21:04 -0800</pubDate>
	<category>mysql</category>
	<category>php</category>
	<category>racecondition</category>
	<dc:creator>twine42</dc:creator>
	</item>
	<item>
	<title>Mis-encoded Mayhem!</title>
	<link>http://ask.metafilter.com/135039/Misencoded%2DMayhem</link>	
	<description>Need help converting a mySQL database with Latin characters to UTF-8 I have an install of SMF that has its database set to UTF-8, and works for *most* posts.  I recently migrated the tables out of one database, and into another, to separate it out from a Joomla install (They had both been in the same DB due to the limitations of the bridging component, but a newer bridge (JFusion) allows me to separate them, so I did for safety and security).&lt;br&gt;
&lt;br&gt;
It appears that during the copy from one DB to the other, some of the characters in the posts became corrupt, or simply aren&apos;t showing up properly.  After working with some developers, we&apos;ve come to the conclusion that a handful of characters in the body of messages are actually NOT in UTF-8 format, but most likely in ISO-8859-1.  You can see a sample post here:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.knightrealms.com/forums/index.php?topic=50.0&quot;&gt;http://www.knightrealms.com/forums/index.php?topic=50.0&lt;br&gt;
&lt;/a&gt;&lt;br&gt;
Originally, the body of the post wasn&apos;t showing at all, but we were able to get it to show with an error (the [?] ) instead. I can confirm other posts, and other fields (such as signatures) are having the same issue, and when I look in the DB at them, they have characters such as curved quotes, Spanish characters, etc.&lt;br&gt;
&lt;br&gt;
Is there a way to &quot;clean&quot; my DB to convert the wayward characters into UTF-8?  I did a search on &lt;a href=&quot;http://ask.metafilter.com/62450/Id-like-my-DB-to-be-full-utf8&quot;&gt;Metafilter and found this&lt;/a&gt;, but the links are all long gone.  I did some &lt;a href=&quot;http://snippetdb.com/php/convert-string-to-utf-8-for-mysql&quot;&gt;googling and found this&lt;/a&gt;, but my PHP and mySQL-fu is not good enough to actually implement it - I can set up SMF and Joomla, but I&apos;m not a developer / coder yet.&lt;br&gt;
&lt;br&gt;
I tired running SMF&apos;s &quot;Convert to UTF-8&quot; function, and while this fixes the existing issues, it then introduces additional issues in the posts that were once fine.  The issue appears to be record-specific.&lt;br&gt;
&lt;br&gt;
Any help that can point me to a step-by-step process to clean / convert the problem characters would be appreciated!</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.135039</guid>
	<pubDate>Fri, 09 Oct 2009 09:25:02 -0800</pubDate>
	<category>encoding</category>
	<category>mysql</category>
	<category>utf8</category>
	<dc:creator>GJSchaller</dc:creator>
	</item>
	<item>
	<title>How not to store plaintext passwords?</title>
	<link>http://ask.metafilter.com/134955/How%2Dnot%2Dto%2Dstore%2Dplaintext%2Dpasswords</link>	
	<description>Best practices for storing OracleDB/mysql/ldap/smtp/etc... system passwords for enterprise application integration use? I&apos;m working with a vendor who currently is storing passwords in plain text in configuration files. &lt;br&gt;
&lt;br&gt;
If you&apos;ve ever configured Wordpress you are familiar with how your mysql password gets placed in plain text in the wp-config.php file.&lt;br&gt;
This vendor is doing a similar thing for mysql, ldap, smtp, etc...&lt;br&gt;
&lt;br&gt;
This has made some people uncomfortable.&lt;br&gt;
&lt;br&gt;
I&apos;d like some suggestions for best practices to minimize the use of passwords in plaintext (or trivially encoded text) in text configuration files.&lt;br&gt;
&lt;br&gt;
These passwords are being used to drive external databases, ldap auth, smtp sending, etc...&lt;br&gt;
&lt;br&gt;
Their Java / Tomcat application is expected to be running 24/7 as a Server. This particular  instance will be on Windows Server 2003 though Linux is also supported.&lt;br&gt;
&lt;br&gt;
It would be nice if it would be possible to have unattended restarting of the application without a user having to enter in a master password, but if that is the only solution we may be comfortable with it.&lt;br&gt;
&lt;br&gt;
Some background:&lt;br&gt;
&lt;br&gt;
The application uses LDAP to authenticate users (and hence has the LDAP system password in a configuration file)&lt;br&gt;
&lt;br&gt;
The application stores its data in a SQL database (Oracle in this case, though they also support mysql. We have to stay on Oracle)&lt;br&gt;
&lt;br&gt;
The application sends mail using SMTP&lt;br&gt;
&lt;br&gt;
Thanks.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.134955</guid>
	<pubDate>Thu, 08 Oct 2009 09:56:51 -0800</pubDate>
	<category>cleartext</category>
	<category>ldap</category>
	<category>mysql</category>
	<category>oracle</category>
	<category>passwords</category>
	<category>plaintext</category>
	<category>security</category>
	<category>smtp</category>
	<dc:creator>bottlebrushtree</dc:creator>
	</item>
	<item>
	<title>Serious help needed with Excel</title>
	<link>http://ask.metafilter.com/129862/Serious%2Dhelp%2Dneeded%2Dwith%2DExcel</link>	
	<description>Crazy excel help needed... again. Every month I have a monotonous series of tasks to perform in excel and I have exhausted all of the possibilities I know of to make things easier- more details inside. I have 2 reports (report A and report B for my example) I pull every month, sometimes 2 or 3 times a month that I have to reconcile which takes a couple of hours a day for 1 excel file- I have about 10 to 20 a month and it keeps me from doing my real job.&lt;br&gt;
&lt;br&gt;
We are talking around 68 columns with anywhere from 2000 rows+ of data.&lt;br&gt;
&lt;br&gt;
Currently, my workflow is such:&lt;br&gt;
&lt;br&gt;
Pull reports A and B and add them to the same workbook as different worksheets.&lt;br&gt;
&lt;br&gt;
Create a new worksheet, which I use to create a working copy of the combined data.&lt;br&gt;
&lt;br&gt;
Delete full rows of data in the working copy based on the values of one column of cells:&lt;br&gt;
This is based on dates, so anything after say 01/01/2006 gets moved into a separate worksheet named &quot;deleted data.&quot;&lt;br&gt;
&lt;br&gt;
Use vlookup to pull a column of data from worksheet B into the working copy worksheet and then with the data pulled in, concatanate it with another column of data that is already existing in the working copy.&lt;br&gt;
&lt;br&gt;
Use vlookup to pull in another column of data from worksheet B to the working worksheet.&lt;br&gt;
&lt;br&gt;
There is alot of repetitive work done with find and replace and vlookup with different values.&lt;br&gt;
&lt;br&gt;
My questions are as follows:&lt;br&gt;
&lt;br&gt;
Can I create macros for these repetitive tasks so that I can say all text A in column c gets changed to new text, and all text b in column c gets changed to new text without doing a find and replace for all variables. There are about 12 columns with 4 different types of data that need to be changed in each column to something new.&lt;br&gt;
&lt;br&gt;
Can macros even handle what I am asking of excel, or are they too rigid to effectively manipulate all the data I need changed.&lt;br&gt;
&lt;br&gt;
Am I using the right program, or should I be looking at a local copy of a mysql database with a GUI (as I&apos;m not that good of a programmer). &lt;br&gt;
&lt;br&gt;
Should I use some other database, such as bento, filemaker pro or even access?&lt;br&gt;
&lt;br&gt;
Or, am I just destined to use excel in the same workflows over and over again, pushing that boulder up the hill to have it roll back down again. &lt;br&gt;
&lt;br&gt;
Please point me in the right direction (websites with tutorials that monkeys could follow) as I&apos;m not very good with VBA and don&apos;t know very much about databases besides the fact that they can hold data and import cvs files- my knowledge base is sad, I know.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.129862</guid>
	<pubDate>Tue, 11 Aug 2009 11:41:00 -0800</pubDate>
	<category>access</category>
	<category>database</category>
	<category>excel</category>
	<category>mysql</category>
	<dc:creator>TheBones</dc:creator>
	</item>
	<item>
	<title>Turn on, tune in, log out?</title>
	<link>http://ask.metafilter.com/129677/Turn%2Don%2Dtune%2Din%2Dlog%2Dout</link>	
	<description>Webdev filter: What tools can I use to avoid developing a registration/log-in feature from scratch? I&apos;m an amateur web developer -- I took a few programming classes in college (Java), know HTML and CSS pretty well, and can get by in PHP and SQL, albeit while checking references constantly. I&apos;m trying to build what I think should be a pretty simple web application: the nuts and bolts of it are that it should allow member registration and login/out, and while the user is logged in, s/he can input numerical data, as well as view some statistical juggling of that data.&lt;br&gt;
&lt;br&gt;
The data entry bit I feel fairly confident that I can do using PHP/MySQL. I&apos;ve written a rudimentary registration and login system (with an email confirmation message, etc), but I can tell that it needs a lot more features and even though I am mostly n00b I can think of ways it could be compromised -- if at all possible I&apos;d prefer to just use code that is already written and known to be fairly stable.&lt;br&gt;
&lt;br&gt;
Is there a pre-built, standard kind of thing (I don&apos;t even know what the proper word to call it is) I can use for this? I think that Ruby on Rails could be used here, but my attempts at teaching myself how to use it have been kind of futile, and I don&apos;t really need all of the version control and other features like that. I&apos;d like to keep this really really simple, at least for now.&lt;br&gt;
&lt;br&gt;
As you can see I&apos;m not very experienced and don&apos;t really know the proper terms are, so let me know if I need to clarify anything. While I&apos;d like to learn other languages in the future, my goal is to get this thing up and running so I&apos;d prefer advice that presupposes PHP use as opposed to telling me to go learn Python (though I guess I understand if that&apos;s the only option). Thanks.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.129677</guid>
	<pubDate>Sun, 09 Aug 2009 12:27:55 -0800</pubDate>
	<category>development</category>
	<category>html</category>
	<category>login</category>
	<category>mysql</category>
	<category>php</category>
	<category>registration</category>
	<category>resolved</category>
	<category>web</category>
	<dc:creator>telegraph</dc:creator>
	</item>
	<item>
	<title>Automatic MySQL migration</title>
	<link>http://ask.metafilter.com/129445/Automatic%2DMySQL%2Dmigration</link>	
	<description>How can I automate the migration of an existing MySQL database to a newer schema? I have two MySQL databases which started out with a common schema, but while one has evolved the other has remained frozen. The changes are all either modifications to a column&apos;s datatypes, or the adding or dropping of tables and columns -- no columns are renamed, and it&apos;s purely one-way so no merging is required.&lt;br&gt;
&lt;br&gt;
I can get the schema for both databases with mysqldump -d, and a diff shows up clearly the changes that need to be made to the first DB. It&apos;s just that there are a lot of them, and writing the script to ALTER all the tables by hand will be a chore and error-prone.&lt;br&gt;
&lt;br&gt;
Is there some of way of automating this? Ideally some tool that allows me to upload both schemas and spits out a script.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.129445</guid>
	<pubDate>Thu, 06 Aug 2009 08:06:41 -0800</pubDate>
	<category>database</category>
	<category>dds</category>
	<category>migration</category>
	<category>mysql</category>
	<category>resolved</category>
	<category>schema</category>
	<dc:creator>fightorflight</dc:creator>
	</item>
	<item>
	<title>MySQL to webpage</title>
	<link>http://ask.metafilter.com/129274/MySQL%2Dto%2Dwebpage</link>	
	<description>What is the easiest way to share data from MySql to a web page on Windows I&apos;m thinking something related to Windows web server IIS with some kind of plugin or asp?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.129274</guid>
	<pubDate>Tue, 04 Aug 2009 15:25:03 -0800</pubDate>
	<category>howto</category>
	<category>mysql</category>
	<category>windows</category>
	<dc:creator>kewlio</dc:creator>
	</item>
	<item>
	<title>3-5 days and good programming skills. I wanna build something cool!</title>
	<link>http://ask.metafilter.com/129263/35%2Ddays%2Dand%2Dgood%2Dprogramming%2Dskills%2DI%2Dwanna%2Dbuild%2Dsomething%2Dcool</link>	
	<description>I have 3-5 days (starting tomorrow!) in which I&apos;m off from work, and have really nothing planned. As a developer geek in a crappy economy, I&apos;m looking at looming unemployment and/or the start of a freelance career in the very near future. I want to this time making &quot;something&quot; that I can use in my portfolio to show potential employers/clients. What on earth can I build? Ideas for sites are a dime a dozen, except for when I need one. I&apos;d like to build something cool that I can show off. Trouble is, I&apos;d like to get it out, at least v0.1,  after only 3-5 days of work. All my ideas involve considerably more effort than that. And I at least want it to be somewhat fun and/or interesting and/or to teach me something new... I can write boring code at work.&lt;br&gt;
&lt;br&gt;
So mefites -- what should I build? I know the LAMP stack pretty well, where the &apos;P&apos; can be either PHP, Python or Perl (although right now PHP is my strongest language). I can thnk in SQL -- databases are not a problem. I have more than enough hosting and a good dev environment. I can learn things (APIs, etc) pretty quickly. Maybe something fun with Google Maps? A Facebook app? An entire site? I&apos;m open to all and any ideas... &lt;br&gt;
&lt;br&gt;
&lt;small&gt;Yes, there are better uses for my time. I should be networking, yadda yadda, but this is my vacation and I don&apos;t wanna. :) I never get to write what I want to write anymore. Assume my resume is up to date and polished. &lt;/small&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.129263</guid>
	<pubDate>Tue, 04 Aug 2009 13:37:11 -0800</pubDate>
	<category>apache</category>
	<category>code</category>
	<category>idea</category>
	<category>LAMP</category>
	<category>mysql</category>
	<category>php</category>
	<category>projects</category>
	<dc:creator>cgg</dc:creator>
	</item>
	<item>
	<title>into a black hole</title>
	<link>http://ask.metafilter.com/129243/into%2Da%2Dblack%2Dhole</link>	
	<description>Any &lt;a href=&quot;http://www.cloudynights.com/ubbthreads/index.php&quot;&gt;Cloudy Nights&lt;/a&gt; folks on MeFi? I am googling around in getting going with backyard astronomy and Cloudy Nights appears to be (or to have been) a decent resource, but it has been nothing but failed MySQL connections and php pathing errors since I started digging. Any info? Is it dead, Bones? I did find this older AskMe which includes a bunch of good info, btw.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://ask.metafilter.com/13386/quality-astronomytelscope-websites&quot;&gt;http://ask.metafilter.com/13386/quality-astronomytelscope-websites&lt;/a&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.129243</guid>
	<pubDate>Tue, 04 Aug 2009 11:17:14 -0800</pubDate>
	<category>astronomy</category>
	<category>mysql</category>
	<category>php</category>
	<category>sites</category>
	<category>telescopes</category>
	<category>web</category>
	<dc:creator>mwhybark</dc:creator>
	</item>
	<item>
	<title>I thought WAMPserver was, like, for idiots. I feel like an idiot so why doesn&apos;t it work?</title>
	<link>http://ask.metafilter.com/127996/I%2Dthought%2DWAMPserver%2Dwas%2Dlike%2Dfor%2Didiots%2DI%2Dfeel%2Dlike%2Dan%2Didiot%2Dso%2Dwhy%2Ddoesnt%2Dit%2Dwork</link>	
	<description>I am following a tutorial on how to install WAMPserver and Wordpress on my Windows machine to kickstart my learning of CM systems and PHP. A crucial component won&apos;t install and I don&apos;t know nuthin&apos; about how to fix the problem. I found &lt;a href=&quot;http://www.ampercent.com/web-design/install-wordpress-computer-wamp-server/1079/&quot;&gt;This tutorial&lt;/a&gt; on installing and configuring WAMPserver, which is ideal for a dunderhead like myself who can barely compute. When I get to the part where they tell you to go to SQLitemanager, I realized that it wasn&apos;t in my WAMPserver menu. I have unistalled and reinstalled twice and it doesn&apos;t show up. I have tried to duplicate their instructions using a SQLite Manager plugin for Firefox but it isn&apos;t working. I have searched for evidence of other people having the same problem but came up empty-handed. I am at a loss to find a solution. Am I looking for the answers in the wrong places? This is being installed on a machine without windows server software.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.127996</guid>
	<pubDate>Tue, 21 Jul 2009 11:49:39 -0800</pubDate>
	<category>apache</category>
	<category>mysql</category>
	<category>php</category>
	<category>sqlitemanager</category>
	<category>wampserver</category>
	<category>webserver</category>
	<dc:creator>Foam Pants</dc:creator>
	</item>
	<item>
	<title>How do I remotely access a mysql database with ssh on windows?</title>
	<link>http://ask.metafilter.com/126757/How%2Ddo%2DI%2Dremotely%2Daccess%2Da%2Dmysql%2Ddatabase%2Dwith%2Dssh%2Don%2Dwindows</link>	
	<description>How do I remotely access a mysql database with ssh on windows? Please assume that I have virtually no idea about the above process. Although I can use various web languages, including mysql, I have so far only used them on my own machine. Now I wish to try and connect to a database hosted remotely.&lt;br&gt;
&lt;br&gt;
I have checked around and found plenty of advice for linux but how do I accomplish this in Windows? What exactly do I type in and where exactly do I type it in to?&lt;br&gt;
&lt;br&gt;
The more steps you give me, the better! Thanks! Also the database has already been set up to allow this connection.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.126757</guid>
	<pubDate>Tue, 07 Jul 2009 08:06:30 -0800</pubDate>
	<category>mysql</category>
	<category>ssh</category>
	<category>windows</category>
	<dc:creator>Fluffy654</dc:creator>
	</item>
	<item>
	<title>Which  forums do the best web programmers hang out at?</title>
	<link>http://ask.metafilter.com/125912/Which%2Dforums%2Ddo%2Dthe%2Dbest%2Dweb%2Dprogrammers%2Dhang%2Dout%2Dat</link>	
	<description>Which  forums do the best web programmers hang out at? Long story short:  I&apos;ve got a web site that already does over 1 million pageviews per month.  I&apos;ve got a great idea to take it to the next level, but I&apos;m looking for someone who can handle the coding and technical aspects in exchange for an equity stake. &lt;br&gt;
&lt;br&gt;
I&apos;m wanting to bring aboard a great programmer who doesn&apos;t necessarily need the work but will be motivated by the equity.  &lt;br&gt;
&lt;br&gt;
Which forums would you recommend I post on to find this person? &lt;br&gt;
&lt;br&gt;
Also, if there&apos;s anyone interested here, let me know.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.125912</guid>
	<pubDate>Fri, 26 Jun 2009 16:15:45 -0800</pubDate>
	<category>ajax</category>
	<category>coding</category>
	<category>development</category>
	<category>mysql</category>
	<category>on</category>
	<category>php</category>
	<category>programming</category>
	<category>rails</category>
	<category>ruby</category>
	<category>scripting</category>
	<category>sites</category>
	<category>software</category>
	<category>web</category>
	<dc:creator>jackson5</dc:creator>
	</item>
	<item>
	<title>MySQL connection error</title>
	<link>http://ask.metafilter.com/124869/MySQL%2Dconnection%2Derror</link>	
	<description>MySQL connection error. This is at my work. IT will create and setup a MySQL db then hand of backups and maintenance to you. They give you the dbname, username, password, and server it is on. &lt;br&gt;
&lt;br&gt;
I went through this 5 years ago. Accessing it from command line is no problem, but a php file will give access denied to apache@localhost in browser. The IT fix back then was to add user apache@localhost, and then web pages could access the db.&lt;br&gt;
&lt;br&gt;
I just had a new db setup, and I&apos;m back to web pages being denied access. I explained this had happened before and how it was handled. The IT folks I dealt with before are no longer here, and the replacement is asking me why the web pages are using apache@localhost instead of what I was given. IT has not dealt with this before. I have asked for apache@localhost to be added as a user, but I do not know how to explain that the user/passw I was given is also being used. &lt;br&gt;
&lt;br&gt;
How do I tell IT what is going on with web page access vs commandline access? Why do web pages show as apache@localhost? Is adding user apache@localhost the correct fix?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.124869</guid>
	<pubDate>Mon, 15 Jun 2009 13:09:26 -0800</pubDate>
	<category>accessdenied</category>
	<category>mysql</category>
	<category>mysqlerror</category>
	<category>resolved</category>
	<dc:creator>sailormouth</dc:creator>
	</item>
	<item>
	<title>What programming language should I use for a Digg-like web site?</title>
	<link>http://ask.metafilter.com/124856/What%2Dprogramming%2Dlanguage%2Dshould%2DI%2Duse%2Dfor%2Da%2DDigglike%2Dweb%2Dsite</link>	
	<description>What programming language should I use for a Digg-like web site? I&apos;m no web developer, but I already have a high traffic picture gallery which I want to turn into a digg-like picture voting site. &lt;br&gt;
&lt;br&gt;
I&apos;m going to hire a developer and would like your recommendations on which programming language I should target for the site?&lt;br&gt;
&lt;br&gt;
My site currently does about 2 million pageviews per month already, so I expect the traffic to go up.  The programming language should easily handle a lot of traffic on 1 dedicated server.  &lt;br&gt;
&lt;br&gt;
I keep hearing a lot about Ruby on Rails.  I&apos;m familiar with PHP/MySQL, but not sure if that is the best programming language for this project.&lt;br&gt;
&lt;br&gt;
I also keep hearing a lot about cloud hosting.  This sounds like a good option as well.  &lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Basically, to sum up my question:  I want to post a &quot;programmer wanted&quot; ad for this project.  What should I be looking for from a developer?&lt;/strong&gt;</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.124856</guid>
	<pubDate>Mon, 15 Jun 2009 11:37:41 -0800</pubDate>
	<category>computers</category>
	<category>development</category>
	<category>hosting</category>
	<category>mysql</category>
	<category>php</category>
	<category>programming</category>
	<category>ruby</category>
	<category>web</category>
	<dc:creator>jackson5</dc:creator>
	</item>
	<item>
	<title>Help me move four very large Wordpress sites.</title>
	<link>http://ask.metafilter.com/124600/Help%2Dme%2Dmove%2Dfour%2Dvery%2Dlarge%2DWordpress%2Dsites</link>	
	<description>I need to move four large Wordpress sites from one host to another, and I&apos;m scared at all the many ways it could go wrong. We currently have four websites hosted in our building. All are running Wordpress.&lt;br&gt;
&lt;br&gt;
The company has made the decision to switch to an off-site hosting company, an account has been setup, etc., and I&apos;m tasked with moving the sites to the new host.&lt;br&gt;
&lt;br&gt;
Here&apos;s the rub: The people that originally set up our in-house box put all four sites in the same MySQL database, with different table prefixes. Rub #2: These are extremely large sites, several of which have upwards of 50,000 posts.&lt;br&gt;
&lt;br&gt;
So, how do I go about moving/implementing this beast? Setting up WP and moving the themes and all that isn&apos;t a problem. But how do I best move the data? Do I use a backup/restore plugin, or will that not work given the fact that they&apos;re all four in the same DB? Is there a better, safer way of moving MySQL data from one place to another?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.124600</guid>
	<pubDate>Fri, 12 Jun 2009 07:33:39 -0800</pubDate>
	<category>hosting</category>
	<category>mysql</category>
	<category>wordpress</category>
	<dc:creator>jbickers</dc:creator>
	</item>
	<item>
	<title>Database Schema design tool</title>
	<link>http://ask.metafilter.com/122172/Database%2DSchema%2Ddesign%2Dtool</link>	
	<description>Can anyone recommend some software to help me draw database diagrams the way that I want to draw them...? I can find lots of freeware and open source tools that will lets me draw a box for to represent a table with a list of columns underneath it. They let me draw a line between tables, but they don&apos;t let me draw a line between the columns.&lt;br&gt;
&lt;br&gt;
For example, if I have two tables...&lt;br&gt;
&lt;br&gt;
Table1 is called &quot;Company&quot; has columns called cid, name, vatnumber.&lt;br&gt;
Table2 is called &quot;Employee&quot; has columns called eid, cid, name, socialsecuritynumber.&lt;br&gt;
&lt;br&gt;
I can find tools that will draw a diagram with a connection between Company and Employee, but I can&apos;t find one that draws a connection between Company.cid and Employee.cid&lt;br&gt;
&lt;br&gt;
[The MySQL workbox thingie draws a connection between them, but doesn&apos;t actually show the line in the relevant location...]&lt;br&gt;
&lt;br&gt;
Any suggestions...?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.122172</guid>
	<pubDate>Fri, 15 May 2009 04:55:59 -0800</pubDate>
	<category>computer</category>
	<category>database</category>
	<category>diagrams</category>
	<category>mysql</category>
	<category>schema</category>
	<dc:creator>twine42</dc:creator>
	</item>
	<item>
	<title>Help me be awesome in PHP/MySQL and make some user groups</title>
	<link>http://ask.metafilter.com/121029/Help%2Dme%2Dbe%2Dawesome%2Din%2DPHPMySQL%2Dand%2Dmake%2Dsome%2Duser%2Dgroups</link>	
	<description>Building a comment system, and looking for good introduction to managing groups and users with PHP/MySQL, or a prerolled &quot;user management system&quot;. Ultimately, I need to setup a system for people to register as users, join (or be assigned to) groups, make comments (that are linked to their accounts), and filter comments by criteria (e.g., only show comments by other people in the same group). But, presumably, the &quot;user&quot; stuff would be separate from the &quot;comment&quot; stuff? So...broadly speaking, I need to create users and groups, and then track what every user does. &lt;br&gt;
&lt;br&gt;
I found PHP User Class (http://phpuserclass.com/), PHP Users (http://www.majordojo.com/php-users/), and a short Sitepoint article (http://www.sitepoint.com/article/users-php-sessions-mysql/) after some quick Google searching. Anyone have any experience with either of those scripts, or know of any others? Or, know good resources to help me brew my own?&lt;br&gt;
&lt;br&gt;
(As for why I am not just using Wordpress or Drupal or etc.,etc.etc.:)&lt;br&gt;
I am working on a site involving a huge repository of text files and the ability to comment on those files. (1) the text files already exist as individual files (versus existing in a database somewhere), and (2) comments need to be on a per-line basis (versus the file as a whole, which is how CMS&apos;s usually work). Of course, if, with this vague description, you know of something that might be useful, let me know.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.121029</guid>
	<pubDate>Fri, 01 May 2009 14:17:42 -0800</pubDate>
	<category>MySQL</category>
	<category>PHP</category>
	<category>Programming</category>
	<category>Web</category>
	<dc:creator>isnotchicago</dc:creator>
	</item>
	<item>
	<title>Advice On Outsourcing Database Management</title>
	<link>http://ask.metafilter.com/120225/Advice%2DOn%2DOutsourcing%2DDatabase%2DManagement</link>	
	<description>Remote DBA services - has anyone used one of these for their business to outsource database administration?  Could use some advice or references. Currently looking at a service like &lt;a href=&quot;http://www.bluewolf.com/&quot;&gt;BlueWolf&lt;/a&gt; to handle database optimization, performance testing, monitoring and alerts, support, and basic on-going maintenance/tuning.  I do not currently have and cannot afford an on-staff DBA or server admin.  My servers are dedicated but unmanaged by the host so no support there.  I have an urgent need to get some handle on this stuff so I can sleep a little better and concentrate on driving revenue. &lt;br&gt;
&lt;br&gt;
Has anyone used this kind of outsourcing before?  Is it more trouble than it&apos;s worth?  Is it a life-saver?  Is it a money pit?  Looks like my first pass at a quote was 500/month, minimum 12 month contract.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.120225</guid>
	<pubDate>Wed, 22 Apr 2009 12:58:53 -0800</pubDate>
	<category>administration</category>
	<category>database</category>
	<category>dba</category>
	<category>MySQL</category>
	<category>outsourceddba</category>
	<dc:creator>spicy_sockpuppet</dc:creator>
	</item>
	<item>
	<title>SQL Query Question</title>
	<link>http://ask.metafilter.com/119665/SQL%2DQuery%2DQuestion</link>	
	<description>SQL query help. Given the (fictional but equivalent) table disk_status = computer_id:int, disk_id:int, datetime:datetime, temperature:float, rpm:int, I need to provide a table of disk status for a given computer_id, without knowing in advance how many disks there are. So if there were two disks for a particular computer, the result would have the header: datetime, disk_1_temperature, disk_1_rpm, disk_2_temperature, disk_2_rpm, disk_2_rpm Long story short (and continuing with the computer/disk example) in the past we only ever needed to track one disk per computer, and so we did not use a disk_id at all. When faced with multiple disks, I considered adding more columns (disk_2_temp, etc) but there may be many, and that seemed like a hack. Instead I added the disk_id column, but now I need a way to get the data out in the right format. &lt;br&gt;
&lt;br&gt;
Currently I do two queries: one to determine which disks are available, and then I left join the disk_status table to itself once for each disk:&lt;br&gt;
&lt;br&gt;
SELECT disk_1.*, disk2.*&lt;br&gt;
FROM disk_status AS disk_1&lt;br&gt;
LEFT JOIN disk_status AS disk_2 &lt;br&gt;
ON disk_2.computer_id=x &lt;br&gt;
AND disk_2.disk_id=z &lt;br&gt;
AND disk_2.datetime = disk_1.datetime&lt;br&gt;
LEFT JOIN disk_status AS disk_3 &lt;br&gt;
...&lt;br&gt;
WHERE disk_1.computer_id = x&lt;br&gt;
AND disk_1.disk_id = y&lt;br&gt;
&lt;br&gt;
This seems inefficient. It also fails if disk_1 does not report but disk_2 does (disk_2 gets left out too). Is there a better way? Or is there a better way to structure my table?</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.119665</guid>
	<pubDate>Thu, 16 Apr 2009 06:10:00 -0800</pubDate>
	<category>computer</category>
	<category>database</category>
	<category>joins</category>
	<category>mysql</category>
	<category>sql</category>
	<dc:creator>Nothing</dc:creator>
	</item>
	<item>
	<title>Copy-Down in SQL</title>
	<link>http://ask.metafilter.com/119554/CopyDown%2Din%2DSQL</link>	
	<description>Is there a GUI SQL editor that emulates a spreadsheet-style &quot;copy down&quot;? If not, is there a technique I should learn? I seem to spend 10-15 mins a day touching up some mysql data in a huge remote CRM-type database (I don&apos;t have shell access) and I notice that I spend most of that time copy-pasting the same corrections down one column for 50 or 60 rows. (I do a select to find new stuff, eyeball it, and find that one of the records has the right info and the other fifty need to be made the same, or none are right and I need to change them all). &lt;br&gt;
&lt;br&gt;
If I was using a spreadsheet like Excel, that would take 2 seconds (drag down a range, control-d duplicate), but I haven&apos;t found a GUI SQL editor that can do this, so I click-copy-paste-click for 15 mins. This is time-wastey and feels silly. There&apos;s got to be an easier way.&lt;br&gt;
&lt;br&gt;
(I realize that technically the app would have to do 60 individual updates, but that would be behind the scenes while I move on to more fun parts of my day, right?)&lt;br&gt;
&lt;br&gt;
So is there a GUI SQL app that emulates the &quot;copy down&quot; of spreadsheets? Or if I were more clueful, is there a stored statement or &quot;macro&quot; I could make in one of these things that would take the selected field in the current record and dupe it down down down? If so, kick me in the right direction: I&apos;m no database geek but I&apos;m not wholly useless technically, either. I can probably learn from a few examples. (15 mins a day times 200 days a year is enough time to be worth reading a book!)&lt;br&gt;
&lt;br&gt;
I&apos;d prefer OSX but I would use Windows or Linux for a few minutes per day if the right tool is out there. For OSX, I&apos;ve tried out the official mysql client, RazorSQL, Navicat, SequelPro, and SQLgrinder. Some are better than others at the copy-paste and ad hoc correcting I do, but none have &quot;duplicate down&quot;.&lt;br&gt;
&lt;br&gt;
These seems simple enough (to my pretty little head) that I must be missing something.</description>
	<guid isPermaLink="false">tag:ask.metafilter.com,2009:site.119554</guid>
	<pubDate>Tue, 14 Apr 2009 22:36:40 -0800</pubDate>
	<category>controld</category>
	<category>copydown</category>
	<category>duplicate</category>
	<category>mysql</category>
	<category>qui</category>
	<category>sql</category>
	<dc:creator>rokusan</dc:creator>
	</item>
	
	</channel>
</rss>

