How To Repair Your Database Using phpMyAdmin

When I first began to host my own blogs, learning about FTP and phpMyAdmin, I was extremely intimidated. But I am more comfortable tinkering in the database files, and have discovered how powerful the phpMyAdmin software truly is.

It is important, if you are going to be a blog owner hosting your websites on your own domains, that you learn how to manage your databases. A database is, simply, is a structured collection of data that is stored in a computer system. Your blog uses something called an “SQL database.” It is important to know how your databases are organized and how they work. This will greatly reduce the agonies and sufferings (and they are SURE to come) of database problems and other issues. In this post, I’m going to show you how to repair and optimize your databases using phpMyAdmin.

Older blogs with numerous posts and comments tend to show their age after time. Coding and other information gets scrambled or confused, or sometimes the server has to work very hard to locate specific files and such. It helps greatly to repair and optimize databases. This is especially helpful when your blog “goes down” (aka, crashes faster than compact flash) frequently for no good reason. Try repairing the database. It’s not hard; here’s how to go about it:

Log in to your web host’s cPanel using the username and password you made when starting the account. Once you are on the home page of your cPanel, scroll down to “Databases.” Look for “phpMyAdmin.” The screenshots are from my own account with Hostgator. Hostgator’s cPanel is much like Bluehost.

cPanelSCrnSht

So, once you choose phpMyAdmin, a new window (or tab) should appear. phpMyAdmin is an extremely powerful and useful software program that manages databases. Once you have accessed phpMyAdmin, you’ll see to the left a column listing your databases. I have six databases on this web host, so there are six in the column. (I scratched out the names to keep hackers at bay).

phpMyAdmin 1

Choose the database you want to work with by clicking on the name. When you do, a table will appear in the left-hand side and right-hand side of the software. The left-hand side shows the tables in your database in a list. The right-hand side shows them but also gives you a platform with which to work with the tables. We’re going to move our attention to the right-hand, wider side of the screen. Here’s a snippet of what you will see.

phpMyAdmin 2

These are the tables for your database to your blog. Some things may look familiar, like active plugins, comments on your blog, links, etc. We aren’t going to deal with individual files here– we are just going to repair all these files at once, and then optimize them. phpMyAdmin makes this easy.

You want to find the “Check All” feature, to select every table in the database. This feature is usually at the very bottom of the table. Click “Check All” and all the check boxes should show checkmarks in them.

phpMyAdmin 2

Now, go to the drop down menu at the bottom of the databse table. Choose “REPAIR.” (Note: in the screenshot below, there are no checkmarks in my boxes because I forgot to “Check All” when I was making the screenshot for this blog post. Your own checkboxes should all have checkmarks in them when you chose “REPAIR.”)

Repair

When you let go of the mouse, the repair process will commence immediately and the page will reload. Don’t worry if everything disappears for a moment. It will come back with this message:

phpMyAdmin 3

You can see the “repair” in the table above, and that everything went “OK.”

Now, go to the top of the database and look for “Structure.” This will take you back to the database table you saw right before you chose “REPAIR” from that drop-down menu. If you look in the above photo again, you’ll see “Structure” in the top left-hand area.

Once you are at the database table again, you want to “Check All” again. This time you are going to “OPTIMIZE” the database. This will organize the tables and information.

phpMyAdmin 2

(Note: in the screenshot below, there are no checkmarks in my boxes because I forgot to “Check All” when I was making the screenshot for this blog post. Your own checkboxes should all have checkmarks in them when you chose “OPTIMIZE.”)

Optimize

As with the “REPAIR” process, the page will reload and give you confirmation that the database has been optimized.

phpMyAdmin 4

That’s it! You can use the column in the left-hand side to go to your other databases and repair/optimize them as well. When you are done, you can log off of phpMyAdmin by choosing the green square that says “EXIT.” This will log you out and you can close this window (or tab).

phpMyAdmin 5

When you close out phpMyAdmin, you will notice that you are still in your cPanel. When you have finished things there (if you have anything else to do there), you can log off that, too.

Remember, it is helpful to repair and optimize your database  from time to time, as it gets older. I have seen some geeks recommend transferring very old blog data into a totally new database and archiving it. Maybe we’ll get to that some other time. :)

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Posted in blogs, how to, web hosting, Wordpress. Tags: , , , . Comments Off »

Fixing the Updated Content Gallery Plugin

The illustrious Content Gallery Plugin for WordPress blogs has recently issued an update. The plugin is now named Featured Content Gallery Plugin. That’s a very nice name, but with the name change comes a little scare if you are unprepared– updating to the new name knocks out the plugin’s effectiveness on your blog. In other words, after you update, the plugin won’t work right away. There’s something else you have to do after you update this plugin, before it can get going again: you have to go into your Theme Editor and rename the code– you must tell the theme to point to the Featured Content Gallery plugin, not the Content Gallery plugin. Here’s the quick and easy way to do this:

>> Update plugin.
>> Go to your Theme Editor.
>> Find the code for the Content Gallery plugin (it’s usually in the “home.php” file but your location may vary depending upon where you have the plugin inserted).
>> Find the code that says:

<?php include (ABSPATH . ‘/wp-content/plugins/content-gallery/gallery.php’); ?>

>> Replace it with this:

<?php include (ABSPATH . ‘/wp-content/plugins/featured-content-gallery/gallery.php’); ?>

>> Save.
>> Check your website and refresh. You may need to clear your cache to see the change.

I don’t know why these instructions were not clear on the WordPress plugin gallery site, nor the plugin homepage. I had no idea you had to change the code– I merely updated the plugin, only. So I freaked out after updating the plugin, because when people viewed my home page, all they saw was a bunch of scrambled code nonsense where the Gallery should be.

Hopefully, this will spare plugin users the agony of an ugly home page and the scrambling for a fix. Hope this helps.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Posted in how to, html coding, Wordpress. Tags: . Comments Off »

Google Using Sponsored Posts

I haven’t seen too much of this circulating the Internet, despite it being pretty big news: Google is using sponsored posts to promote it’s search engine website in Asia. Story at TechCrunch.

Google is undoubtedly the dominant search engine globally, but in a few countries such as Korea (Naver), Russia (Yandex) or Japan, local competitors are winning. Especially Japan, the country with the world’s third biggest Internet population (about 100 million people are online), still seems to be a tough nut to crack for Google.

…the Japanese blogosphere… is filled with reports about Google hiring Cyberbuzz, a Tokyo-based Internet marketing company to promote the keyword feature (its widget version) with a pay-per-post campaign. And in fact, the search string “Google Hot Keywords Ranking+Blog Widget+CyberBuzz” in Japanese in Google’s own Blog Search leads to a few dozen results, indicating the reports aren’t made up of thin air. This blogger, for example, integrated the keyword widget and praises the list as being very useful to be kept up-to-date on what is going on in the world. This one says the keywords change every 20 minutes and that the new Google feature once quickly helped in obtaining information on a Japanese TV star. All postings end with a disclosure that says: “I am taking part in the Cyberbuzz campaign”.

You see, the big news is that in the United States, Google slashed the PageRank of websites and blogs that did sponsored posts, going on a rampage against the sponsored post industry– in particular, against PayPerPost, the most publicized sponsored post company. Google targeted “Posties” by slashing their PageRank, rendering their blogs nearly worthless to a certain demographic of advertisers, which of course affected the bloggers’ blogs and their paychecks. Google took a higher “moral” stance on websites with sponsored posts.

And now, here’s Google, creating and paying bloggers to write sponsored posts for THEM. $100 a post for some of them! Unbelievable. No, really– believable. I don’t for one moment believe that Google slashed PageRank because they were concerned about the purity of the blogosphere. Googles was doing it for DA MONEY. Sponsored posts and other TLAs interfere with Google’s bottom line, which is, of course, their top priority.

JERKS!!

And they do it in Asia, where more users are using Yahoo’s search engine for finding stuff like Bamboo shades, than using Google. So when the rubber meets the road, Google takes their self-proclaimed “low” road.

GRR!! I’m amazed that too few people are blogging about this. This is big news. This is more proof that shows what hypocrites and power-mongers sit in Mountain View, CA. :-p

P.S. There’s another good story about the fiasco here. Apparently, after Google was caught red-handed, Google apologized and slashed the PageRank on GoogleJapan for the sponsored posts– from a PR9 to 5!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Cheap UK Web Hosting Service

I have tried a good number of web hosts in my day. Many of them were “cheap” web hosting– not the name-brand, most-popular hosting companies, but the smaller, “mom-and-pop” kind of companies. And I have had great experiences with the smaller companies, even more than some of the Big Box, name-brand companies.

Web hosting is so inexpensive now (shared account web hosting, that is; dedicated hosting is still very pricey), that it’s great to tool around with new companies and find great deals. Here’s a juicy web host for you in the UK: UK-Cheapest.co.uk. The company has been around a long time by Internet standards: 7 years. They’ve been reliable web hosts for thousdands of customers. If you are looking for some very cheap hosting, and a company to buy domain hosting from, you might want to check them out. They include:

  • PHP and MySQL for all hosting accounts
  • 99.9% uptime guarantee
  • no setup charges or hidden charges
  • NO additional charges if you exceed your monthly traffic allowance (very nice!)
  • Unlimited nameserver changes with your domain name
  • IFree domain name hosting for two years of you host domain name with UK-Cheapest
  • and more

See the site for more details. As always, do your homework and look around for reviews and coupon codes, too!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Posted in Uncategorized. Comments Off »

Buying Tech Gear Online

Hands down, one of the best places to get tech gear is Buy.com. I’ve shopped around a lot, and I think Buy.com has the best prices and the most reliable brands. I’ve seen a sharp rise in costs at the other tech stores, but Buy.com has been offering sale upon sale. And their customer service is excellent. Not to mention, they have some really cute viral videos with Howie Mandell these days.

And I finally found a good price on an SD card for my camcorder– the Kingston 8GB 120minute Class 4 SD card, a steal for about $20. If you buy SD cards, make sure they have a high write speed (no cheapos!) because the high speed SD cards write your photos and video faster to the memory card. Class 4 is a good write speed (4 MB/s-26x) for digital cameras and camcorders. If you use a cheapo, you will have a delay and/or a severe diminishing of quality. I only use the higher grade, higher-speed SD cards now. The difference is noticeable. High-speed SD cards tend to be a little pricey (like $40), so finding one of this size (8GB) at under $20 is a real steal, believe me. And Kingston is a reliable brand.

OK, so more deals? Here are more goodies I’ve found at their weekly deals page. (By the way, it is helpful to check out their weekly sale page once a week to keep tabs on prices.) Hot deals that I liked:

  • Acer Aspire netbook with Intel Atom processor, 160GB hard drive, Windows XP (it’s gorgeous)
  • Western Digital 500GB portable hard drive $120
  • Imation Apollo 250GB portable hard drive $60
  • Motorola H695 Bluetooth Headset $24
  • D-Link EBR-2310 Ethernet Broadband Router $22!! (I have got to get a new one, my old Westell is ailing)

And there’s a lot more stuff to be found. Of course, Buy.com has loads of stuff for everyone: jewelry, games, books, apparel, baby items, etc. But I like to shop the electronics stuff (wonder why, huh!) and they have good prices and free shipping on qualifying orders, too. They are a very reliable company with a history of great customer service. I recommend them!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

How To Speed Up Vista

There’s a terrific tutorial on how to speed up your Windows Vista on your computer at the India Times InfoTech. Last year, I splurged and got myself a very beefy computer with triple-core processor and 4GB RAM, so my Vista runs pretty smoothly, anyway. But I’m always looking for tweaks, and these were great. The tutorial is a brief step-by-step process, and is simply written and easy to understand. Even if you have a beefy computer, it is very worthwhile to check out the list of steps and see how your Vista performs. Those micro-seconds can add up and make a noticeable difference!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]
Posted in computers, Windows. Tags: , . Comments Off »