Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Tutorial - Database tips -

02-24-2012, 02:05 AM
Post: #1
Tutorial - Database tips -
Few tips how to make your database stable for use:

Optimize your Database:

To perform the optimization, log in to your phpMyAdmin and select the database whose tables you wish to optimize.

A list with all the database's tables will appear. Tick the tables you wish to optimize, or simply click [Check All] to select all tables.

From the [With selected:] drop-down menu choose Optimize table. This will execute the OPTIMIZE TABLE SQL query on the selected tables and they will be updated and optimized.


Table prefixes:

Sometimes when you are moving your database on another host etc, it happens database generate new tables example:

Your table prefix: mybb3_
New tables: mybb5_

It's hard to see it, and also that can make forum slower so check for that.

Security Guidelines:

-Do not ever give anyone (except MySQL root accounts) access to the user table in the mysql database!

-Do not store any plaintext passwords in your database

-Use complex password for your Cpanel do not use something like "mybbjohn", use more numbers etc. More about complex passwords.

-Carefully watch from where are you downloading plugin, maybe some of them have are vulnerable to SQL injection so hacker can get access to your database.

Also read more threads about MyBB Security such as:

http://community.mybb.com/thread-44977.html
http://community.mybb.com/thread-9991.html

Hosting related:

Watch out which host you choose. On my own experience i changed 6 hosts, and 90% had server security problems.
Don't save your money on cheap hosting's, better pay more but to have good and much secured hosting. If you want to start the proiject don't even try free hosting.

Database Backups:

Do your database backups every day (my recommend). You will never know what will happend, losing some table, host shutdown, some kidy hacker screwed it all.
It's free to make database backups nothing costs you.

I'll keep this updated, JovanJ.
quote



03-12-2012, 04:15 AM
Post: #2
RE: Tutorial - Database tips -
This can be done with in mybb (ACP, Tools & Maintenance, Optimize Database) or is it just preferred to use phpmyadmin or does it matter ?
quote
03-12-2012, 04:39 AM
Post: #3
RE: Tutorial - Database tips -
It makes no difference; they both use the same PHP functions.
quote
03-17-2012, 01:26 PM
Post: #4
RE: Tutorial - Database tips -
I use HOSTGATOR as my hosting provider. Based on review/comments i gathered they say hostgator is the best and also their livechat support.
quote
03-19-2012, 11:16 PM
Post: #5
RE: Tutorial - Database tips -
No difference as Nathan sayed.
harlenjoy i never used it, so i can't say anything about them.
quote
08-11-2012, 08:48 AM
Post: #6
RE: Tutorial - Database tips -
is it possible to optimize the mybb database using a cron job and a php script?

does a script exist?
quote



08-11-2012, 08:54 AM
Post: #7
RE: Tutorial - Database tips -
(08-11-2012 08:48 AM)shemo Wrote:  is it possible to optimize the mybb database using a cron job and a php script?

does a script exist?

See: http://docs.mybb.com/Help-Task_System.html
quote


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Tutorial - How to get just one table from whole database? JovanJ. 1 464 06-13-2012 08:09 PM
Last Post: Nathan Malcolm





Who's Online 9 users active in the past 30 minutes (0 members, 0 of whom are invisible, and 9 guests).

Forum Board By MyBB. MyBB Security is not affiliated with nor endorsed by the MyBB Group. MyBB Security theme designed and coded by Codicious.