What are MySQL triggers and how to use them?

What are MySQL triggers and how to use them?

The MySQL trigger is a database object that is associated with a table. It will be activated when a defined action is executed for the table. The trigger can be executed when you run one of the following MySQL statements … Continued
MySQL optimization using indexes

MySQL optimization using indexes

A database index is a data structure that improves the speed of operations in a table. Every time your web application runs a database query, the database will look through all the rows in your table to find those that … Continued
How to reduce the size of a MySQL database

How to reduce the size of a MySQL database

MySQL database size limitations are applied for all shared hosting plans, in order to ensure fair resource usage. The limitations are as follows: StartUp – 500 MB GrowBig – 750 MB GoGeek – 1000 MB If a database on your … Continued
What is my MySQL Server Hostname?

What is my MySQL Server Hostname?

If you want to connect to your database from an application or a script on your XonHost hosting account, you can simply use localhost as MySQL hostname. If you’re accessing your database from a remote server, you need to grant it access … Continued
How to Export MySQL Database

How to Export MySQL Database

There are two ways of exporting a MySQL database from your account: You can export it via the cPanel -> phpMyAdmin tool. You can find information how to do that in our tutorial here. You can perform the export by accessing your account via SSH. Our article explains … Continued
How to change the password of a MySQL user in cPanel?

How to change the password of a MySQL user in cPanel?

The easiest way to change the password for your MySQL user is to: Log in your cPanel -> MySQL Databases. Find the corresponding database and see which is the user attached to it. For example we will consider that your database is called yourusername_database and … Continued
Can I use phpMyAdmin outside cPanel?

Can I use phpMyAdmin outside cPanel?

The phpMyAdmin tool available in cPanel is bundled with it and can be used only if you are already logged into cPanel. To use phpMyAdmin outside of cPanel, you can install it on a Addon domain, a Subdomain, or in … Continued
I cannot create views in MySQL

I cannot create views in MySQL

Regular MySQL users do not have privileges to create views in MySQL. If you try to execute CREATE VIEW with a regular user, you will receive the following error message: #1142 – CREATE VIEW command denied to user ‘user’@’localhost’ for … Continued
How to use MySQL stored procedures and routines?

How to use MySQL stored procedures and routines?

MySQL stored procedures and stored routines are supported after MySQL 5. All XonHost clients can use MySQL stored procedures and routines on their web hosting accounts. To use stored procedures, you should first create a database and add a database user to it. Make sure that … Continued
How to change the MySQL timezone

How to change the MySQL timezone

When you develop your website, you may have to compare a certain date/time with the current date/time on the server. The timezone on XonHost’s servers is CST, CEST or SGT, depending on the location you have chosen for your account … Continued