SQL Server 2008: FIXED “Data has changed since the Results pane was last retrieved”
February 3, 2010 by Josh Highland
Filed under MySQL, Programming, software, tutorials, windows
Today I was trying to edit the value in a table cell through the query browser in Microsoft SQL Server Management Itudio and I kept getting the following error:
Data has changed since the Results pane was last retrieved. Do you want to save your changes now?
(Optimistic Concurrency Control Error)
Click Yes to commit your changes to [...]
phpBB admin password manual reset
March 31, 2009 by Josh Highland
Filed under MySQL, hacks, internet, php, semi-legal, software, tutorials
Today I ran into a situation where I had forgotten the password to my development instance of phpBB 3. I was stuck in a situation were I needed to reset the password. I had full admin access to the database, so changing it there wouldn’t be the problem. The real problem is that phpBB uses [...]
Manually reset your WordPress password
It doesn’t matter what application your working with, losing your password is always a pain in the ass. Luckly if you are working with wordpress (man, I blog a lot about wordpress these days), on your server and you have access to the MySql database, resetting your password manually is a snap.
Login to your PhpMyAdmin
Select [...]
Solution for: MySQL server has gone away at mysqlhotcopy line 528
January 19, 2009 by Josh Highland
Filed under MySQL, linux, software
Recently I was backing up a large MySql database (several hundred megabytes), using the awesome MySqlHotCopy script, when I started getting the following error:
DBD::mysql::db do failed: MySQL server has gone away at mysqlhotcopy line 528.
I have no clue what that error means. mysqlhotcopyworked great on all of my other smaller databases. I did a little [...]
php sprintf + sql like
July 6, 2008 by Josh Highland
Filed under MySQL, php, tutorials
Sometimes I do my best programming when I’m tired. Don’t ask me why, I just do. It’s a skill I picked up in college.
Being tired and producing good code wasn’t the case last night. I was trying to use the sprintf PHP function with a SQL “Like” statement. I made some dumb mistakes that tripped [...]
Select random records in a MySQL database
July 16, 2007 by Josh Highland
Filed under MySQL, tutorials
Say you want to select some random records in a MySQL database. Here is a fast way to do it:
SELECT *
FROM tableName
WHERE conditions
ORDER BY Rand()
Using the Rand() function will randomly select the rows. You can limit the number of rows returned by using the LIMIT command
cpanel broke mysqlhotcopy 1.22 but here is a fix!
July 11, 2007 by Josh Highland
Filed under MySQL, hacks, linux, tutorials
Yesterday I logged into my server to back up my databases. I back up the mysql databases using a tool called “mysqlhotcoy”. It’s a handy perl application that copies the database files for easy restores, and it also works really quick when you run it.
I ran the mysqlhotcopy command as root, and was greeted with [...]
experiments with MySQL FULLTEXT searching
June 9, 2007 by Josh Highland
Filed under MySQL
I just read a great article on FULLTEXT searching in a MySQL database
(http://www.onlamp.com/pub/a/onlamp/2003/06/26/fulltext.html)
I took a few minutes to run some of my own test using two of the largest text fields on the notPopular.com user profile table. I wanted to check out the results of a FULLTEXT search versus a LIKE query using real data [...]