Web Hosting Knowledge Base Web Hosting Knowledge Base
  • Home
Get Started
Web Hosting Knowledge Base Web Hosting Knowledge Base
Get Started
Web Hosting Knowledge Base Web Hosting Knowledge Base
  • Home
loading
  1. Home
  2. Developer Corner
  3. Developer Corner Resources
  4. MySQL development
Updated on June 14, 2024

Developer Corner

  • Folder icon closed Folder open iconDeveloper Corner Resources
    • MySQL development
      • How to connect to MySQL using Node.js
      • How to connect to MySQL using Microsoft .NET
      • How to manage MySQL databases, users, and tables from the command line
      • How to back up MySQL databases using AutoMySQLBackup
      • How to reset the MySQL root password
      • MySQL server runs out of memory or does not start
      • MySQL user privileges on shared servers
      • How to create and execute MySQL stored functions and procedures
      • Using MySQL views
      • Using MySQL triggers
      • Working with MySQL database engines
      • How to check MySQL database and table sizes
      • How to repair MySQL databases and tables
      • How to enable the slow query log in MySQL
      • How to rename a MySQL database
      • How to use indexes to improve MySQL query performance
      • How to restrict MySQL port access
      • How to install phpMyAdmin on managed hosting accounts
      • How to create a MySQL installation for local testing
      • How to troubleshoot MySQL definer issues
      • Using SELECT INTO OUTFILE in MySQL
      • How to determine the MySQL version
      • How to Fix the MySQL Error 1064
    • Ruby developer information
      • How to install Ruby Gems
      • How to use the Interactive Ruby Shell to troubleshoot gems
      • How to set up multiple versions of Ruby with the cPanel Ruby Selector
      • How to configure a Ruby on Rails application on a shared hosting account
    • Linux for the developer
      • How to manage the inode count
      • How to determine high disk usage locations
      • How to use screen
      • How to monitor resource usage
      • How to use rsync
      • How to use cURL
      • How to disable e-mail notifications from cron jobs
      • How to use ImageMagick
      • How to change the time zone in the Linux shell
      • Cron jobs reset to 15-minute intervals
      • How to install and configure Advanced Policy Firewall
      • How to configure a firewall using iptables
      • How to set the default text editor in Linux
      • How to determine a server's memory usage
      • How to generate and verify file checksums on Linux
      • How to install the EPEL repository on CentOS
      • How to run a cron job automatically after a server reboot
      • Conntrack sessions
      • How to install and configure UFW (Uncomplicated Firewall)
    • Version control systems
      • How to use Git
      • How to configure a Git client
      • How to configure Subversion (SVN)
      • How to set up Subversion (SVN) access for multiple users
      • How to use the Mercurial version control system
      • How to configure Concurrent Versions System (CVS)
      • How to configure and use a newer version of Git
      • '403 Forbidden' error message when you try to push to a GitHub repository
    • Client-side technologies
      • How to use the jQuery JavaScript library on your hosting account
      • How to install Ember.js on managed hosting accounts
      • How to use the markItUp JavaScript plugin
      • How to Use Flash on Your Website
      • Does Hostvento Hosting Support MP3 Hosting Files?
      • Hostvento Hosting MIDI (Musical Instrument Digital Interface) Support
      • How to use React on your hosting account
    • Application deployment information
      • How to install the Docker application deployment environment
      • How to install a LAMP stack on an Ubuntu server
    • How to add CAPTCHA protection to your web site
    • How to control search engines and web crawlers using the robots.txt file
    • How to set up URL frame forwarding
    • SQLite information
      • How to connect to SQLite from the command line
      • How to connect to SQLite using PHP
      • How to connect to SQLite using Python
    • Using Lua on Hostvento Hosting servers
    • How to determine if your account uses CageFS
    • How to set up a virtual machine with VirtualBox for local testing
    • Web testing and development
      • How to create a PostgreSQL installation for local testing
      • How to create an Apache installation for local testing
      • How to install development tools on an unmanaged server
    • How to create persistent Node.js applications on shared and reseller hosting accounts
    • How to enable Cross-Origin Resource Sharing (CORS)
    • How to configure frames with X-Frame-Options header
    • Developing ADA-compliant web sites
    • Nginx web server configuration
      • How to install the Nginx web server
    • How to install and configure the AWS Command Line Interface (CLI)
    • How to edit hosts file on Mac
    • How to disable automatic creation of the robots.txt file
    • How to use an SSL certificate in a Node.js app
  • Folder icon closed Folder open iconHow to enable and disable PHP error messages
  • Folder icon closed Folder open iconHow to enable PHP error logging
  • Folder icon closed Folder open iconHow to enable and disable the PHP register_globals directive
  • Folder icon closed Folder open iconHow to use the PHP magic quotes directive
  • Folder icon closed Folder open iconHow to change the PHP time zone setting
  • Folder icon closed Folder open iconHow to enable and disable the PHP allow_url_fopen directive
  • Folder icon closed Folder open iconPHP max_execution_time Guide
  • Folder icon closed Folder open iconHow to change the maximum upload file size for PHP scripts
  • Folder icon closed Folder open iconHow to connect to MySQL from the command line
  • Folder icon closed Folder open iconHow to connect to MySQL using PHP
  • Folder icon closed Folder open iconHow to connect to MySQL using Perl
  • Folder icon closed Folder open iconHow to import and export a MySQL database
  • Folder icon closed Folder open iconHow to set up a remote MySQL connection
  • Folder icon closed Folder open iconUsing MySQL client applications
  • Folder icon closed Folder open iconHow to convert a MySQL database to UTF-8 encoding
  • Folder icon closed Folder open iconHow to convert the time zone in MySQL
  • Folder icon closed Folder open iconHow to back up MySQL databases using cron jobs
  • Folder icon closed Folder open iconInformation schema database in MySQL
  • Folder icon closed Folder open iconHow to connect to PostgreSQL using psql
  • Folder icon closed Folder open iconHow to connect to PostgreSQL using PHP
  • Folder icon closed Folder open iconHow to connect to PostgreSQL using Perl
  • Folder icon closed Folder open iconHow to import and export a PostgreSQL database
  • Folder icon closed Folder open iconHow to set up a remote PostgreSQL connection
  • Folder icon closed Folder open iconHow to use .htaccess files
  • Folder icon closed Folder open iconHow to change the default directory index page using an .htaccess file
  • Folder icon closed Folder open iconHow to enable and disable directory index listings using an .htaccess file
  • Folder icon closed Folder open iconHow to enable data compression using the mod_deflate module
  • Folder icon closed Folder open icon'403 Forbidden' error message
  • Folder icon closed Folder open iconHow to enable pathname information in URLs using the AcceptPathInfo directive
  • Folder icon closed Folder open iconHow to troubleshoot CGI scripts
  • Folder icon closed Folder open iconWhat is PHP?
  • Folder icon closed Folder open iconPHP script basics
  • Folder icon closed Folder open iconHow to view PHP settings with the phpinfo() function
  • Folder icon closed Folder open iconControlling PHP settings with a custom php.ini file
  • Folder icon closed Folder open iconUsing php.ini directives
  • Folder icon closed Folder open iconHow to run PHP scripts from cron jobs
  • Folder icon closed Folder open iconSetting the PHP include path
  • Folder icon closed Folder open iconHow to determine if a PHP function is available
  • Folder icon closed Folder open iconHow to fix '500 Internal Server Error' while running PHP
  • Folder icon closed Folder open iconPython script basics
  • Folder icon closed Folder open iconPerl script basics
  • Folder icon closed Folder open iconHow to troubleshoot Perl scripts
  • Folder icon closed Folder open iconHow to use the shebang
  • Folder icon closed Folder open iconPostgreSQL development
    • How to connect to PostgreSQL using Python
    • How to use PostgreSQL client applications
    • How to back up PostgreSQL databases using cron jobs
    • How to manage PostgreSQL databases and users from the command line
    • How to determine the PostgreSQL and PostGIS versions
    • How to determine the size of PostgreSQL databases and tables
    • How to rename a PostgreSQL database
    • ECCN and HTS numbers for PostgreSQL
  • Folder icon closed Folder open iconApache web server configuration
    • How to change the document root directory
    • How to add or remove the www prefix in domain URLs
    • How To Use Apache Access Log & Apache Error Log
    • How to rewrite URLs in Apache with the mod_rewrite module
    • How to use Server-Side Includes (SSI)
    • How to use the mod_speling Apache module
    • How to modify HTTP headers using .htaccess files
    • How to configure caching with the mod_expires module
    • How to disable entity tags (ETags)
    • How to use keep-alive connections to improve performance
    • How to control site access based on a visitor's country
    • How to turn off caching using .htaccess
    • How to install Apache Tomcat
    • How to protect a website folders using .htaccess
  • Folder icon closed Folder open iconPHP development resources
    • How to change PHP settings and versions on managed hosting accounts
    • How to set up custom .htaccess files for PHP settings
    • Using PHP directives in custom .htaccess files
    • Using PHP to send e-mail messages
    • How to install and configure PEAR packages
    • How to troubleshoot 'String could not be parsed as XML' error message in PHP
    • How to use the Exif extension in PHP
    • How to resolve some common issues after a PHP upgrade
    • How to use a custom php.ini file for cPanel cron jobs
    • How To Use PHP Sessions
    • ionCube PHP Loader support
    • How to specify the MySQL character set in PHP
    • How to fix the 'Unable to allocate memory for pool' PHP error
    • How to optimize Symfony using APC
    • How to use the internationalization (intl) extension in PHP
    • How to install PHP composer
    • How to determine if APC is installed on a server
    • How to use the MailChimp API with PHP
    • 'Allowed memory size exhausted' error message in PHP
    • How to use ionCube Loader with different PHP versions
    • How to enable PHP opcode caching
    • How to send e-mail using PHPMailer
    • How to harden PHP 7 and earlier versions using cPanel
    • Custom PHP settings per directory with .user.ini files
    • ionCube PHP Loader unavailable on PHP 8.0
    • How to change the PHP version for a specific directory
  • Folder icon closed Folder open iconPython
    • How to use virtualenv and pip
    • How to activate a Python virtual environment from a script file
    • How to send e-mail messages using Python
    • How to configure and use a newer version of Python
    • How to install and configure Django on unmanaged servers
    • How to install and configure Django on a Linux shared hosting account
    • How to install and configure Flask on a Linux shared hosting account
    • How to install FastAPI on unmanaged servers
  • Folder icon closed Folder open iconPerl Information Overview

MySQL development

Estimated reading: 7 minutes 131 views

Get solutions and answers to your MySQL development questions here.

Connecting to MySQL from the command line

Learn how to connect to MySQL from the command line using the MySQL program with this guide including detailed instructions, code snippets, and links to related articles.

Connecting to MySQL using PHP

There are several ways you can connect to a MySQL database using PHP. This article covers how to connect to a MySQL database using MySQL Improved, PHP Data Objects (PDO,) legacy PHP functions, and how to connect to a remote MySQL database using PHP.

Connecting to MySQL using Python

There are several ways you can connect to a MySQL database using Python. This article includes sample code that shows how to use the mysqlclient, mysql-connector-python, and PyMySQL packages to access MySQL databases.

Connecting to MySQL using Node.js

This article demonstrates how to connect to a MySQL database using Node.js and the node-mysql package. It includes a code sample you can use in your own projects.

Connecting to MySQL using Perl

Learn how to connect to a MySQL database using either the DBI (Database Interface) module or the legacy MySQL module using Perl.

Connecting to MySQL using Microsoft .NET

Learn how to add MySQL support to Visual Studio, and develop .NET applications that can access MySQL databases on Hostvento Hosting servers. This article provides detailed instructions and code samples you can use in your own projects.

Importing and exporting a MySQL database

Learn how to how to import MySQL databases and export MySQL databases. If you already have a database that you want to install on an Hostvento Hosting server, or you want to back up your database, this article shows you how as well as how to troubleshoot any potential issues.

Remote MySQL connections

There are two options for connecting to MySQL databases remotely: setting up an SSH tunnel or setting up a direct connection. This article explores both methods, troubleshooting, and showcases an example of an ODBC connection.

MySQL client applications

You can use MySQL client applications, such as MySQL Workbench, to manage your MySQL databases remotely. These client applications are often faster and easier to use than cPanel or the command line. This article covers two ways to connect to your MySQL databases using MySQL Workbench: using a direct connection, and using an SSH connection.

Managing MySQL databases, users, and tables from the command line

Learn how to do common MySQL administration tasks from the command line. This article covers how to create and delete MySQL users, databases, and tables. Please note that this article only applies to unmanaged products.

Converting a MySQL database to UTF-8

Many MySQL databases use the Latin character set, which can be limiting depending upon the application. Learn how to determine a MySQL database’s character encoding set, and then convert the character encoding set to UTF-8 (Unicode,) that supports many alphabets and characters, with this article.

Converting the MySQL time zone

Learn how to convert the time zone in MySQL by using the CONVERT_TZ function to another time zone in this article.

MySQL database backups using cron jobs

Learn how to set up a cron job that automatically backs up a MySQL database at defined intervals. This article covers two methods, one which includes the MySQL login information in the cron job command and the other uses a configuration file to store MySQL login information.

MySQL database backups using AutoMySQLBackup

The AutoMySQLBackup tool enables you to quickly and easily create MySQL database backups. You can specify backup intervals, rotate backups, and even send backup files to e-mail accounts. This article covers how to download, install, configure, and run AutoMySQLBackup.

The information_schema database

When you view MySQL databases in phpMyAdmin or by using the mysql command-line program, you may also notice an information_schema database. This article explains what this database is and its purpose.

Resetting the MySQL root password

You can reset your MySQL root password if you have forgotten it. This article shows you step-by-step how to change the root password from the command line. Note that you must have root access to your server to accomplish this.

MySQL runs out of memory or does not start

MySQL server may run out of memory or not start at all on an unmanaged server with limited memory. This article covers how to work around this problem by making changes to the my.cnf file.

MySQL user privileges on shared servers

Due to the nature of shared hosting environments, some MySQL privileges are restricted on user accounts. This means some MySQL features, such as the Event Scheduler, are not available on shared hosting accounts. Learn more here.

Creating and executing MySQL stored functions and procedures

Learn how to create and execute MySQL stored functions and procedures on your Hostvento Hosting account.

MySQL views

MySQL views enable you to store predefined queries. Learn how to create and use them on your Hostvento Hosting account in this article.

MySQL triggers

MySQL triggers are a powerful tool that you can use to add advanced database functionality. Learn how to create and use them in this article.

Working with MySQL database engines

This article provides an introduction to MySQL database engines, showing you how to determine and change the default database engine, how to determine and change a table’s current database engine, as well as how to create a new table with a specific database engine.

Checking MySQL database and table sizes

This article demonstrates how to check the size of MySQL databases and tables by using the phpMyAdmin web interface or the command-line “mysql” program.

Repairing MySQL databases and tables

Learn how to repair MySQL tables and databases. This article covers how to run mysqlcheck, and engine-specific diagnostics with myisamchk and the InnoDB recovery process. Please note that this article only applies to accounts that have root access to the server.

Enabling the slow query log in MySQL

The MySQL slow query log can help you to determine which database queries take a long time to run. This article shows how to enable the slow query log from the command line.

Renaming a MySQL database

There are scenarios such as data migration or site development where you may want to rename a MySQL database. Although MySQL itself does not provide a way to rename a database in one operation, you can do this using other methods. Learn how to rename a database from cPanel and the command line in this article.

Using indexes to improve MySQL query performance

Indexes can help improve MySQL database query performance. This article gives an overview of indexes, demonstrates how to analyze database queries (so that you can determine which tables may benefit from using indexes), and how to add, remove, and view indexes in a table.

Restricting MySQL port access

Port 3306 is open on some Linux distributions after you install MySQL on an unmanaged server. This article demonstrates how to restrict access to port 3306, or how to block it altogether, with two methods: disabling MySQL networking and configuring firewall rules.

Installing phpMyAdmin on managed hosting accounts

Learn how to install phpMyAdmin locally on a managed hosting account with Softaculous or with a manual installation. You may want to do this if you need to run a version of phpMyAdmin newer than the version included with cPanel.

Creating a MySQL installation for local testing

Learn how to install MySQL locally for testing and development.

Troubleshooting MySQL definer issues

The MySQL DEFINER attribute is used to control access to stored objects (views, triggers, functions, and stored procedures). This article covers how to troubleshoot issues that can arise when using MySQL definers.

Using SELECT INTO OUTFILE in MySQL

This article discusses where you can use MySQL’s SELECT INTO OUTFILE statement. It also provides an alternative to SELECT INTO OUTFILE in case your hosting package does not allow it.

Determining the MySQL version

Learn how to determine which version of MySQL is installed on a server using cPanel, phpMyAdmin, or the command line.

Handling MySQL Error 1064

MySQL Error 1064 is a syntax error that indicates an issue with SQL syntax in the commands, which is frequently caused by incorrect use of reserved terms, missing data, or mistyped commands. This article will teach you how to read and handle MySQL Error 1064.

Articles

  • How to connect to MySQL using Node.js
  • How to connect to MySQL using Microsoft .NET
  • How to manage MySQL databases, users, and tables from the command line
  • How to back up MySQL databases using AutoMySQLBackup
  • How to reset the MySQL root password
  • MySQL server runs out of memory or does not start
  • MySQL user privileges on shared servers
  • How to create and execute MySQL stored functions and procedures
  • Using MySQL views
  • Using MySQL triggers
  • Working with MySQL database engines
  • How to check MySQL database and table sizes
  • How to repair MySQL databases and tables
  • How to enable the slow query log in MySQL
  • How to rename a MySQL database
  • How to use indexes to improve MySQL query performance
  • How to restrict MySQL port access
  • How to install phpMyAdmin on managed hosting accounts
  • How to create a MySQL installation for local testing
  • How to troubleshoot MySQL definer issues
  • Using SELECT INTO OUTFILE in MySQL
  • How to determine the MySQL version
  • How to Fix the MySQL Error 1064

Still stuck? How can we help?

How can we help?

Was this page helpful? Yes No

Share this Doc

MySQL development

Or copy link

Clipboard Icon
CONTENTS
Leaf Illustration

© 2023 All Rights Reserved by Hostvento