mysql – ChemiCloud Knowledge Base & Self-Support Center https://chemicloud.com/kb Thu, 26 Mar 2020 01:30:14 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 https://chemicloud.com/kb/wp-content/uploads/2019/06/favicon_rk1_icon.ico mysql – ChemiCloud Knowledge Base & Self-Support Center https://chemicloud.com/kb 32 32 How to Download and Restore a MySQL Database Backup https://chemicloud.com/kb/article/download-restore-mysql-database-backup/ https://chemicloud.com/kb/article/download-restore-mysql-database-backup/#respond Sun, 19 Feb 2017 14:48:42 +0000 https://chemicloud.com/kb/?post_type=article&p=467 How to download a MySQL Database Backup

The cPanel backup interface allows you to generate and download a backup of your MySQL databases. Backing up your website’s database periodically is always recommended, as it can save you from a lot of pain in case anything happens with your data. It is often necessary to take a backup (or “dump”) of an entire database management system along with all databases and tables, including the system databases which hold the users, permissions, and passwords.

1) Log into cPanel.

2) Look for the “Files” section and click on the “Backup” icon.

mysql backup cpanel

3) In the “Partial Backup” section under “Download a MySQL Database Backup “ click on your database name you want to backup, in this case, it’s chemiclo_demo and the download will start automatically.

cpanel mysql backup

A copy of the database will now to saved on your PC, and you should now see the compressed .sql.gz file in the folder your web-browser downloaded it.

How to restore a MySQL Database Backup

If your database is corrupted or you have removed some useful data,  restoring the database from a previous working backup might be a great option to save the day. Luckily this can easily be done by following the next steps:

1) Log into cPanel.

2) Look for the “Files” section and click on the “Backup” icon.

3) In the “Partial Backup” section click the “Choose File” button located under “Restore a MySQL Database Backup “  and select the backup file you want to use from your PC and click “Open“.

 

cpanel restore mysql backup

4) Now the name of the backup file you selected should be displayed, please double check that this is the right backup and click “Upload“.

restore mysql backup cpanel

5) A new tab will open showing you information about the restore process.

restore mysql backup

]]>
https://chemicloud.com/kb/article/download-restore-mysql-database-backup/feed/ 0
Exporting Databases and Tables With phpMyAdmin https://chemicloud.com/kb/article/exporting-databases-tables-phpmyadmin/ https://chemicloud.com/kb/article/exporting-databases-tables-phpmyadmin/#respond Sun, 19 Feb 2017 14:38:30 +0000 https://chemicloud.com/kb/?post_type=article&p=453 This tutorial assumes you’ve already logged into phpMyAdmin. If you are not logged in just follow the steps in this tutorial to login.

1) Click the database you wish to export, in this example we’ll use the chemiclo_demo database.

2) Next, click on the “Export” tab and select the format in which you want to export the database.

3) Click on the “Go” button to start the export/backup process of the entire database.

4) You can also export only certain tables from your database, from the export tab go to the “Export Method” section click on the “Custom – display all possible options“. This will show you a list of all the tables created in the database.

5) Select the tables you want to export, leave the other options unchanged and click on the “Go” button to proceed.

]]>
https://chemicloud.com/kb/article/exporting-databases-tables-phpmyadmin/feed/ 0
How to Delete a Database Table With phpMyAdmin https://chemicloud.com/kb/article/deleting-database-tables-phpmyadmin/ https://chemicloud.com/kb/article/deleting-database-tables-phpmyadmin/#respond Sun, 19 Feb 2017 14:36:00 +0000 https://chemicloud.com/kb/?post_type=article&p=449 In this tutorial, we’ll show you how to delete a database table with phpMyAdmin, we’ll assume that you’ve already logged into phpMyAdmin. If you are not logged in just follow the steps in this tutorial to login.

1) First, we’ll need to select the database, in this example, we’ll use the chemiclo_demo database.

2) We’ll see here all the tables within this database listed, click on the “Drop” link next to the table you wish to delete (drop).

3) A confirmation pop-up message will appear, make sure you are deleting the right table and click “OK“. A message will appear indicating that your table has been dropped and the table is no longer listed in the database’s list of tables.

4) We can also delete (drop) specific fields from this table by clicking the delete icon. In this example, we selected the test3 table and dropped the junk field.

5) A confirmation pop-up message will appear, make sure you are deleting the right field and click “OK”.

]]>
https://chemicloud.com/kb/article/deleting-database-tables-phpmyadmin/feed/ 0
How to Use phpMyAdmin https://chemicloud.com/kb/article/how-to-use-phpmyadmin/ https://chemicloud.com/kb/article/how-to-use-phpmyadmin/#respond Sun, 19 Feb 2017 14:30:09 +0000 https://chemicloud.com/kb/?post_type=article&p=443 phpMyAdmin is a popular and free open source application written in PHP for MySQL databases management. It’s one of the most popular applications and MySQL administration tools, with a large community of users and contributors.

PhpMyAdmin allows you to perform a wide range of operations with MySQL. In this tutorial, we’ll familiarize ourselves with databases and phpMyAdmin.

1) Log into cPanel

2) Look for the “DATABASES” section and click on “phpMyAdmin “, you’ll be redirected to the phpMyAdmin interface.

3) From this new screen, we have direct access to all the databases created under this cPanel account, they are all listed on the left side. In this example, we have the databases “chemiclo_demo” and “information_schema“. A database consists of one or more tables, the information is recorded in the tables.

4) You can also view all the databases created under this account if you click the “Databases” tab:

Let’s have look at the options available in the top menu from phpMyAdmin

  • From the SQL tab, we can open an SQL Query window, here we can enter an entire SQL query code and execute it by pressing “Go“.
  • In the Status tab, we’ll find information regarding the MySQL server since the last restart, like the MySQL uptime, number of active connections and traffic volume.
  • We can export databases to our local computer if we click on the Export tab and hit “Go”.
  • We can import databases from our local computer if we click on the Import tab and hit “Go”.
  • In the Variables tab, you’ll see will see a list of the MySQL server system variables.
  • In the Charsets tab, you’ll find all the charsets and collations supported by the MySQL server.
  • In the Charsets tab, you’ll see a list with all the engines supported by the MySQL server

Let’s move back to the current databases installed on this cPanel account

If we click on the chemiclo_demo database all the tables created under this database will be listed. As we can see in this screen, this database has only 3 tables created.

From here we can see more information about the tables contained in the database, as well as perform several actions:

  • Browse a table to see the individual records.
  • See the Structure of a table and perform certain actions.
  • Search through a table for specific keywords.
  • Insert new rows (or fields) into a table.
  • Empty or delete the contents of a table.
  • Delete or drop an entire table altogether.
]]>
https://chemicloud.com/kb/article/how-to-use-phpmyadmin/feed/ 0
How to Modify Rename/Remove a MySQL Database https://chemicloud.com/kb/article/modify-rename-remove-mysql-database/ https://chemicloud.com/kb/article/modify-rename-remove-mysql-database/#respond Sun, 19 Feb 2017 14:27:27 +0000 https://chemicloud.com/kb/?post_type=article&p=438 In this guide, we will show you how to rename/remove a MySQL database in cPanel. This can easily be done by following these steps:

1) Log into cPanel.

2) Look for the “DATABASES” section and click on “MySQL® Databases”.

3) Look for the “Current Databases  section, here you can either change the rename or delete a MySQL database. Click on any of these links and follow the on-screen instructions to complete your action.

 

 

 

]]>
https://chemicloud.com/kb/article/modify-rename-remove-mysql-database/feed/ 0
How to Modify a Database User https://chemicloud.com/kb/article/modify-mysql-database-user/ https://chemicloud.com/kb/article/modify-mysql-database-user/#respond Sun, 19 Feb 2017 14:25:34 +0000 https://chemicloud.com/kb/?post_type=article&p=436 In this guide, we will show you how to update/delete a MySQL username in cPanel. This can easily be done by following these steps:

1) Log into cPanel.

2) Look for the “DATABASES” section and click on “MySQL® Databases”.

3) Look for the “Current Users “ section, here you can either change the password, rename or delete a MySQL username. Click on any of these links and follow the on-screen instructions to complete your action.

 

 

]]>
https://chemicloud.com/kb/article/modify-mysql-database-user/feed/ 0
How to Create a MySQL Database in cPanel https://chemicloud.com/kb/article/create-mysql-database/ https://chemicloud.com/kb/article/create-mysql-database/#respond Sun, 19 Feb 2017 14:22:09 +0000 https://chemicloud.com/kb/?post_type=article&p=432 You can easily create a MySQL database thanks to the MySQL Database Wizard included in cPanel which walks you through each of these steps. Just follow these steps to create the database:

1) Log into cPanel.

2) Look for the “DATABASES” section and click on “MySQL® Database Wizard “.

3) In the next window enter the name of your database and hit “Next Step”.

4) Here you’ll need to choose the username and enter the password you want to be associated with the user in both fields. You can also click the “Password Generator” and cPanel generates a random, strong password for your username.

5) On the next page, you’ll assign privileges for the user to the database. If you want to assign full privileges for the user just check the box next to “All Privileges” and then click Next Step.

6) You’ll see a confirmation message that the database and username have been created.

 

]]>
https://chemicloud.com/kb/article/create-mysql-database/feed/ 0