Creating a web application usually need a database to hold data in order to get the application work smoothly. However, poor database design may lead to many problems such as performance and security issues.

Thus, there are do’s and don’ts in designing your databases.
10 Common database design mistakes by Louis Davidson.
- Poor design/planning
- Ignoring normalization
- Poor naming standards
- Lack of documentation
- One table to hold all domain values
- Using identity/guid columns as your only key
- Not using SQL facilities to protect data integrity
- Not using stored procedures to access data
- Trying to build generic objects
- Lack of testing
20+ MySQL best practices on NetTuts+
- Optimize Your Queries For the Query Cache
- EXPLAIN Your SELECT Queries
- LIMIT 1 When Getting a Unique Row
- Index the Search Fields
- Index and Use Same Column Types for Joins
- Do Not ORDER BY RAND()
- Avoid SELECT *
- Almost Always Have an id Field
- Use ENUM over VARCHAR
- Get Suggestions with PROCEDURE ANALYSE()
- se NOT NULL If You Can
- Prepared Statements
- Unbuffered Queries
- Store IP Addresses as UNSIGNED INT
- Fixed-length (Static) Tables are Faster
- Vertical Partitioning
- Split the Big DELETE or INSERT Queries
- Smaller Columns Are Faster
- Choose the Right Storage Engine
- Use an Object Relational Mapper
- Be Careful with Persistent Connections
MySQL security best practices by GreenSQL
- Secure your server
- Disable or restrict remote access
- Disable the use of LOCAL INFILE
- Change root username and password
- Remove the “test” database
- Remove Anonymous and obsolete accounts
- Lower system privileges
- Lower database privileges
- Enable Logging
- Change the root directory
- Remove History
- Patch your system
To make your live easier in designing your database, i would like to suggest MySQL Workbench. It is a visual database design tool that integrates SQL development, administration, database design, creation and maintenance into a single integrated development environment for the MySQL database system.
Happy coding!

thankz dude for the info
very informative article and thanks a lot!!!