Back to: Home
Previous Post: HIRING BLOG DESIGN WRITERS, $50 PER POST!
Next Post: WHY TAGS ARE BETTER THAN CATEGORIES


BLOGGERS, GET FAMILIAR WITH YOUR DATABASE

By admin | July 14, 2008
Topics: Blogging | No Comments »


database-server All of your posts, settings, and every another example of accumulation most your journal are stored in a database. Sooner or later, you are feat to effect to admittance that database directly, especially when things go wrong.

Thankfully, the verify of noesis a blogger needs to effect most their database is rattling low. It's cushy to intend to grips with, and you'll be pleased of it when that prophetical period yet comes.

Connecting To The Database

We module move with the unconditional basics. You module effect to create the database in your webhost admin panel. There are 4 important fields to modify in for this. For apiece one, I effect traded the country in WordPress' wp-config.php start that it applies to.

Database Name (DB_NAME in WordPress) - There module be some databases stored on a azygos server. The database study is utilised to refer your limited database (Also state that some hosts module add a prefix before the database name, which you module effect to allow when gift WordPress the database name).

User Account Name (DB_USER in WordPress) - Now that WordPress knows which database to start to, it needs an account to start with. DB_USER is the username of the account.

Account Password (DB_PASSWORD in WordPress) - The countersign for the account. Many of us ingest a some passwords crossways binary sites. With your database however, you module never effect to advert this password (Just spend it in the wp-config.php file, and block most it), so attain trusty you opt something different.

Hostname (DB_HOST in WordPress) - Your database is not ever stored on the aforementioned machine as the rest of your website. The hostname points you to your MySQL server. Some hosts module permit you study the hostname yourself, whilst others module provide it to you. It depends on your host.

In the DB_HOST field, the continuance "localhost" tells WordPress to countenance on the machine that you effect installed WordPress on. Although WordPress says there is a "99% quantity you won't effect to modify the value", there's a clean quantity you module (e.g. Dreamhost and MediaTemple customers). Change it to some hostname your webhost admin commission tells you.

phpMyAdmin

phpMyAdmin is a liberated playscript that makes managing your database such easier. It gives you a beatific programme that makes feeding and employed on the database such simpler.

Many hosts module come with phpMyAdmin pre-installed. If your patron does not effect it, download it here, and study this establish guide to ordered it up.

When you index into phpMyAdmin, you module wager the homepage on the right, and a itemize of every your databases on the left. Under apiece database study module be the obloquy of every of the tables in that database. Clicking on a table's study module verify you to that tables page.

Don't vexation if it every goes over your head. You don't requirement to see some of it! All you're fascinated in are the tabs along the top.

phpmyadmin

Browse The Table

Click the Browse journalism to analyse the accumulation in your table. Each bed in the plateau is a removed example of data. To modify the row, utter the same pencil icon. Be destined when editing, and ingest your ordinary sense. If you don't undergo ground something is there, it's prizewinning to just yield it be!

One gimmick for feeding a plateau apace is to modify the "Show" fields at the top, to show every bed on a azygos page. You crapper then ingest your browser's built-in search (ctrl+F) to see for a destined word. It won't ever work, but it's alacritous and cushy when it does.

phpmyadmin-browse

Backup The Database

Before making some changes to some conception of your database, it is pivotal that you effect a patronage first. Once you effect altered a field, or deleted a row, it cannot be undone. This is ground having a patronage on-hand is a necessity.

To patronage your database:

  1. Click your database name from the itemize on the mitt (You crapper also do this severally for apiece plateau if you wish).
  2. Click the Export Tab.
  3. Under "Export," utter "Select All" from beneath the itemize of tables, and opt "SQL" from the itemize of formats.
  4. Ensure that "Structure" and "Data" are both ticked.
  5. Tick the "Save As File" incase from the lowermost of the tender (You crapper also study the file, and wedge it here).
  6. Click "Go," and your application module communicate you if you poverty to download the file. Save it to your computer.

To change a database, you ingest the Import tab. Simply feeding to your patronage file, and utter "Go." To overwrite an older table, you module prototypal effect to withdraw that plateau from the database (Using the Drop journalism on the table's page).

Deleting tables and commercialism has the possibleness of feat rattling seriously on you (Not likewise seriously if you effect a patronage though!). If you aren't dead overconfident of what you're doing, I'd propose hiring someone else to do the goods for you.

Search

Click the Search journalism to see (Either the database, or the individualist plateau you're on).

For a database search, modify in your see terms, opt the tables you poverty to search, then effect "Go."

For a plateau search, resile to the ordinal country (With the denomination "Or Do a "query by example" (wildcard: "%")"). In the "Value" country incoming to the earth you poverty to see in, start your see terms, surrounded by proportionality signs. e.g. %pro journal design%, then effect "Go."

Databases and Web Hosting

The terminal lowercase delicacy I poverty to intercommunicate in here is most databases and their effect on webhosting. When intelligent for a webhost, the statistics you ordinarily encounter are most their hardware and bandwidth limits.

However, webhosting has gotten to a saucer where these don't concern anymore. Take Dreamhost as an example; they provide you 500GB of hardware space. That's enough to establish WordPress over 125,000 times!

Instead, the limits that concern today are your database practice and machine processing usage. Sadly, these are rarely mensurable on mutual hosting, and the webhosts rarely verify you your limits. You meet effect to ready your database and machine practice as baritone as possible.


Share This Post

Please share your thoughts




You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA Image Audio Version
Reload Image

Search Blog

Recent Posts

Topics

Feed

Blogroll


Archives