Tech


22
Feb 10

HOWTO reset a MySQL root password

If your a terrible DBA like me here are the six steps to reset a forgotten MySQL root user password:

1. stop mysql

# /etc/init.d/mysql stop

The output should look like this:

* Stopping MySQL database server mysqld

   …done.

2. restart mysql without a password

# mysqld_safe –skip-grant-tables &

The output should look like this:

[1] 28808

100222 18:32:27 mysqld_safe Logging to syslog.

100222 18:32:27 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql

3. connect to mysql using the mysql client

# mysql -u root

The output should look like this:

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 1

Server version: 5.1.37-1ubuntu5.1 (Ubuntu)

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

4. set a new mysql root user password

mysql> use mysql;

Reading table information for completion of table and column names

You can turn off this feature to get a quicker startup with -A

Database changed

mysql> update user set password=PASSWORD(“NEWROOTPASSWORDHERE“) where User=’root’;

Query OK, 0 rows affected (0.02 sec)

Rows matched: 3 Changed: 0 Warnings: 0

mysql> flush privileges;

Query OK, 0 rows affected (0.09 sec)

mysql> quit

Bye

5. stop mysql

# /etc/init.d/mysql stop

The output should look like this:

* Stopping MySQL database server mysqld

100222 18:35:29 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

   …done.

[1]+ Done mysqld_safe –skip-grant-tables

6. restart mysql

# /etc/init.d/mysql start

Who needs to remember passwords? :)


29
Jan 10

the iPad

I don’t grok all the aversion in the techie/gadget press in regards to the iPad.

Do I want one (yet)? No; however, it seems like a pretty ideal device for someone like my wife or father-in-law. They both have pretty typical computing needs – a browser, email, iTunes for media consumption, the occasional word processing. The iPad nails all of these functions out of the box plus has the added bonus of the App Store ecosystem so there are plenty of niche specific apps and casual games to enjoy as well. It seems like a step closer to that task-centric “toaster” computing model which I think aligns well to the expectations of a large part of the population. Panic’s Steven Frank describes this personal computing evolution much more eloquently.

Right now I just want to finally ditch my current Moto dumbphone and get an iPhone. I’m not ready to make the leap to AT&T yet so I was disappointed that the end of their exclusivity for it in the US wasn’t announced this week. Oh well maybe in time for my birthday :)


11
Sep 09

FlipShare and Snow Leopard

Pure Digital has an updated release of their FlipShare application that is Snow Leopard (OS X 10.6) compatible. The Mac download link at the Pure Digital site still offers the old version; however, support was nice enough to provide me a download link for version 4.5.1 when I asked for it.

You can grab a copy of the .dmg here.


9
Sep 09

Dreamcast

“It’s been 10 years since 9/9/1999, when the Dreamcast launched on American shores. The hardware was ahead of its time

[From Slashdot Games Story | Sega Dreamcast Turns 10]

Wow its hard to believe 10 years ago today I first purchased a Dreamcast. I still have fond memories of playing Virtua Tennis with JonahPhilippoussis FTW! Its too bad I parted with mine a few years ago for credit towards purchasing my Wii.


16
Jun 09

Happy Birthday Linode

Congrats to Chris & the Linode team!

I also forgot to say thanks back in April for all the additional disk :)


14
May 09

Rural?

Apparently Verizon thinks Beaverton, OR is rural.

As one of the 110,000 effected FiOS Internet/TV customers I’m curious (and afraid) to how Frontier will handle the transition. Sadly it will probably be another ankle grab similar to how DirecTV handled me after Telocity self-destructed. The shame is that I’m really happy with both my current video & data services – the eventual rate hikes and decrease in features/service will surely chase me away. I guess the bright side is that it looks like I won’t need to start shopping for a new ISP until the end of the year at the earliest.


13
Mar 08

iSync 3 and the Moto RIZR Z3

I just came across this post over at the Apple forums and now have my RIZR Z3 working correctly with iSync! It now will sync wirelessly via Bluetooth fixing my biggest gripe with using the Z3 with my Mac.

The Z3 plugin can be downloaded here.


28
Dec 07

thanks again Linode

I just noticed that Linode bumped up the RAM in my VPS by another 20%.

Thanks Linode! :)


24
Dec 07

All your base are belong to Google

Last week I finally gave in and moved all my email infrastructure over to be hosted by Google Apps. Dominic and I were discussing email over lunch last week and he convinced me this was the way to go. It simply isn’t worth the time and hassle of self-hosting. Google has better uptime, a much nicer web-UI, and is considerably more effective in fighting spam.

Setup was easy and importing my current email was as easy as a drag and drop between mailboxes. So far the only drawback I see is that I need to rework my moblogging script since I can’t trigger it via procmail anymore.

5ThirtyOne has a nice guide to setting up Mail.app optimally to work with Gmail via IMAP.


10
May 07

iSync and the RIZR

The earlier iSync problems I was having seem to be related specifically to syncing via Bluetooth. I was able to get my RIZR and Mac to sync just fine using the USB data cable T-Mobile was kind enough to throw in when I purchased my RIZR.

For anyone else looking to get this working all you need is this plugin. Adding this tiff will make your RIZR look correct in iSync as well.

The Bluetooth problem I’m having has me stumped. The phone pairs fine via Bluetooth and I can wirelessly send/receive files and use it as a DUN modem. iSync will recognize it correctly via a Bluetooth connection but blows chunks when actually trying to sync. I get the following error:

[iSync:772] ERROR (.serial-at.operation): Time out talking AT with channel… channel is now in a bad state

Google hasn’t turned up anything helpful. Since everything else works fine via Bluetooth I’m thinking that the problem has to be specific to iSync or something dumb T-Mobile has done to the seem on my RIZR. My postings at the Apple Discussions and the Macintosh forum at DSLR didn’t turn up any answers.

If anyone has any suggestions please leave a comment or shoot me an email. Thanks!