Create, Remove and Repair a MySQL or PostgreSQL Database in cPanel

This article will explain you on “How to manage MySQL or PostgreSQL database in cPanel”. After logging into cPanel you will find the MySQL or PostgreSQL icons. CPanel screen lets you to create or work with those types of databases. CPanel uses a similar interface for both types of databases, that’s why most of the web host offers MySQL.

On the MySQL/PostgreSQL cpanel screen you will see four main sections as shown in the figure below. The very first section lets you to create and work with the database. Below that there is another section which allows you to create database users that will be able to access the databases. Next section is to setup remote access to your databases only if your web host allows. At last there is a hyperlink given to phpMyAdmin or phpPgAdmin, the web interfaces for advanced work with your databases.

MySQL PostgreSQL Database cPanel

How to create a database?

Its not so hard to create database, but there are few things you will need to know. The first thing you are gonna need to create database is the last item in database section. Just write the name of the database into the Db: field and simply click on Add Db button. The database of the name will be created. There will be slightly difference in actual database name you have chosen. It will be created with your cPanel username and with an underscore added before the name you chosen. For example: domain_database1.

How to create a database user?

To use a created database you need atleast one user into the database. For creating a new user simply type a username and password in the “users:” section and click on Add User. A new user will be created immediately. The database username will look like this “domain_robin“.

Now, how to add a user to the database?

Now you have to associate the above created user with the database. Now, if you check out the above Add Db field it has a set of drop-down lists. The first field allows you to select a user that you have created and in second field you have to select the database that you want to associate with that user. Now just click on Add User to Db and its done. Also, you can add a single user to multiple databases if you wish to.

Once you have associated a user with the database you will notice that the listing for that database get more detailed. It will show you the database name followed by some links to delete or repair the database and then you will be able to see all the users in the database. Also, it will show you some sample code that shows you how to connect to the database in PHP, Perl or JDBC script.

How to remove or repair a database?

Just next to the username there is a button called Delete, but this can be confusing as deleting a user from a database will only remove the user and all the records the user had in that database. It will not affect the actual user you created, it will still work in other databases. As well as there is Check button given to check database for problems, and if it has any errors just click on Repair. And still if that doesn’t work then you must contact your web host.

Posted under Webhosting

This post was written by admin on September 6, 2009

Tags: , , , , , , , , ,

What is the Importance of Uptime and Downtime in Web Hosting?

Uptime and Downtime is one of the key issues that many website owners face. If you’re thinking to setup a mission critical website or an e-commerce site then uptime and downtime is the thing you should consider while looking for a web host. You may have heard about it lot of time, but those who haven’t, this article will explain you the exact meaning and importance of uptime and downtime in web hosting.

Definition of Uptime and Downtime

What is Uptime?

Uptime, put simply in the context of web hosting, is the time during which your site is fully operational (viewable and usable).

What is Downtime?

Downtime, conversely, is used to refer to the duration of time when a system is unavailable. These figures are usually given in percentages.

For e-commerce sites uptime and downtime is highly relevant because downtime could translate to lost revenues, and in this highly competitive world, it could very well mean your business’ survival.

Hence, it is important that you choose a web host that has a high uptime guarantee (the higher, the better). An uptime guarantee of 99.5 – 99.99% is realistic and considered to be very good in most cases.

Tips to make sure that the host you choose offers the finest deal:

  • Research your (potential) host’s uptime record and READ the fine print of their uptime guarantee (if they have, which you find in their Service Level Agreements).
  • Ask about your host (-to-be)’s disaster plans, redundancy and backups.
  • Re-check and make sure you get an uptime guarantee before signing and how reliable they are when it comes to refunding for and crediting downtimes.

Once you’ve found your host, it is necessary that you also monitor your site’s uptimes and downtimes to ensure you get what you pay for and also to see if they’re living up to their promise (so you can change hosts if they aren’t).

Quick Tips:

  • Finding 100% (or 99.99%) uptime is not easy nor is it cheap
  • Focus on quality of service and not on quantity. Don’t just look for hosts that offer you a refund for downtimes, instead, look for ones that actually live up to their ‘uptime guarantee’
  • Look for providers with good hardware (as it goes to redundancy)
  • SLA’s and ‘uptime guarantees’ could just be marketing trick
  • Third party uptime measures are valuable resources
  • Forums, although good sources of information, may not necessarily be ‘accurate,’ particularly when it comes to host recommendations
  • To prevent downtimes, find providers that offer hosting on two separate machines and whose servers have automatic switchable mechanisms

Posted under Webhosting

This post was written by admin on June 17, 2009

Tags: , , , , , , ,