Quantcast
Channel: PHP Zone - MySQL
Browsing latest articles
Browse All 35 View Live

Select Randomly Row Fast - PHP Mysql

PHP MySQL Select Row Randomly Fast<code><?php //CODE FROM WWW.GREGGDEV.COM function random_row($table, $column) { $max_sql = "SELECT max(" . $column . ") AS max_id FROM " . $table; $max_row =...

View Article



Calling with PHP Variables in MongoDB

So I’ve been doing a lot of work, for work, in MongoDB lately and I’ve learned an awful lot.  Or, depending on your point of view, a lot that’s just awful.See, there’s not what you could even...

View Article

A How-to Guide for Hosting on OpenShift

I’ve recently moved this blog to run on WordPress running on RedHat’s OpenShift Express. If you’ve not heard of OpenShift, it’s: Preview Text:  Including how to install the client tools, create a...

View Article

Defining Dynamic Assets - PHP Project pt. II

I am currently working on a feature of a project that allows users to track assets that exist at a location. The interesting part of the feature is that an asset can be almost anything, and that the...

View Article

Book: PHP and MongoDB Web Development

What makes a beginner’s guide handy is when it speaks to your intuition. It anticipates the burning questions that follow from a newbie trying to grasp new concepts and it quickly answers them. PHP and...

View Article


How Twitter Does MySQL - Get Their Fork

Twitter is a big proponent of knowledge sharing and open source software.  It's also well known that Twitter moved away from Casandra, and turned back towards relational databases, like MySQL.  But...

View Article

Mysql_fetch_all

Absurdly simple but utilitarian function returns a numeric array of associative arrays containing an entire result set.<code>function mysql_fetch_all($result) { $all = array(); while ($all[] =...

View Article

Mysql_fetch_all

Absurdly simple but utilitarian function returns a numeric array of associative arrays containing an entire result set.<code>function mysql_fetch_all($result) { $all = array(); while ($all[] =...

View Article


Managing Cloud from the Command Line and Other Useful Links

Summer is here! Well, it is in most places. Here in the Pacific Northwest, we’re still waiting. Not to fear…we’ve got good reading weather! Here’s how we are keeping busy waiting for summer to arrive…...

View Article


Setting up PHP and MySQL on OS X 10.8 Mountain Lion

With OS X 10.8, Apple continues to ship PHP 5.3 with Xdebug, PEAR, GD and PDO_MYSQL. This is how to set it up from a clean install of 10.8. /usr/local Ensure that the following directories exist:...

View Article

2 Open Source Tools to Manage MySQL Servers Like a Champ

Box has two great open-source tools which will help you manage your MySQL servers like the pros: Anemometer will change the way you look at query performance optimization and Rain Gauge will make sure...

View Article

DZone Links You Don't Want To Miss (1/25/13)

9 Uncomfortable Truths About Open Source  Preview Text:  Not a great day for Open Source, and some more Maven dumping, but cheer up! There's a new version of Jersey out and a new version of MySQL...

View Article

DZone Links You Don't Want To Miss (2/6/13)

Why Do We Have Stack Overflow and a Programming Stack Exchange? Bayes Can Help!  Using the naïve Bayes classification, this blogger is able to coax out some differences in the questions on SO vs....

View Article


Writing Web Services

Ah, look, here’s another excellent tutorial from Messr. Wenderlich: How To Write A Simple PHP/MySQL Web Service for an iOS App As an iPhone/iPad developer, it can be really useful to be able to write...

View Article

MySQL and Ubuntu 12.10

I recently had reason to be shunting large amounts of MySQL data around on my Ubuntu 12.10 powered laptop. The data was exported from MySQL in .sql files, and they had a file size in excess of 50Mb....

View Article


Simple utility for copying data from MongoDB to MySql

<?php $sql = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL"); mysql_select_db($a_db, $sql); $m = new MongoClient($dbName); $db = $m->$a_mongo_db; $cols =...

View Article

Connect to MySQL via SSH

I use the excellent HeidiSQL as a GUI when working with MySQL. I've recently set up a new server and knew that HeidiSQL has support for connecting via an SSH tunnel. As a note to myself, these are the...

View Article


How to shard a cron

Sharding is a database partitioning technique that distributed Aggregates such as rows or documents across multiple servers; this choice for horizontal queries trades in some client complexity (whose...

View Article

DZone Weekly Link Roundup (September 23)

NEWS Fox News Tries to Explain GitHub Reciprocity? Preview Text:  Watch a mainstream news network try to describe GitHub, and learn about JetBrains' next big idea. Plus, see what's coming in WebGL 2.0...

View Article

MongoDB Inc. Worth $1.2 Billion, Are They the Next Oracle?

MongoDB (formerly 10gen) just became the most valuable tech startup in New York, beating out more well-known companies like Gilt, Foursquare, and Etsy.  They're also worth more than the cost of Tumblr,...

View Article

If MongoDB is to NoSQL as MySQL is to SQL, is that Bad?

 This blog post from Markus Winand gives some context for one of his Tweets: MongoDB seems to be as bad for NoSQL as MySQL is for SQL. Preview Text:  One of the main points of this blog post is that...

View Article


Linux Performance Tuning Tips for MySQL

This post was originally written by Alexander Rubin at the MySQL Performance blog. Because most MySQL production systems probably run on Linux, I’ve decided to place the most important Linux tuning...

View Article


Why Cassandra is No Good for ETL

According to this recent blog post from Aras Can Akin, Cassandra is no good for ETL. That's not to say that Cassandra is not good at all - Akin is a current Cassandra user and has good to say about it...

View Article

Analyzing WordPress MySQL Queries with Query Analytics

This article was originally written by Vadim Tkachenko Preview Text:  This blog, MySQLPerformanceBlog.com, is powered by WordPress, but we never really looked into what kind of queries to MySQL are...

View Article

Intro to Puppet, Installing your First MySQL Service in 5 Minutes

This post was originally written by Ron Zavner Puppet, a popular configuration management tool, is used by many IT companies to help facilitate and automate the setup of environments. Preview Text:...

View Article

Browsing latest articles
Browse All 35 View Live




Latest Images