Return to "cPanel"


View the quick start guide for this product

Available subcategories under Database & Programming

CGI & Perl Scripts (2) PHP (1)
MySQL (3) Troubleshooting (2)


Most popular articles under category Database & Programming

Using SSH to Import and Export your Data and Databases
You can export your database by using the "mysqldump" command. From the SSH command line, enter the command: mysqldump your_db_name > your_db_name.dmp This will push all data from the specified database into a dump file for backup. To import data from a dump file you can simply direct it into the MySQL command. mysql...

Connecting to Databases with PHP
PHP and MySQL are extremely easy to use together; most tutorials and books written regarding PHP should have a section explaining the connection between the MySQL database and PHP. A simple MySQL connection can be opened in PHP using the following code: $connection = mysql_pconnect("localhost","username","password") or print "Error connecting to the...

Creating a MySQL Database
To create a database: 1. login to your account control panel 2. click "Database Manager" in the Site Management section. 3. You will see a button that says "add db" type your database name in the text box to the left of that button then click add db. 4. Click back ...

MySQL Username
USERNAME_ will be added to your database name and database username. You will need to use the full USERNAME_dbname and USERNAME_dbusername in your scripts in order to make a database connection. Important Note: Replace USERNAME with your actual account username ...

CGI-BIN
The cgi-bin is the directory where all of your CGI scripts are stored. Scripts are stored in this directory so that the Web server will know to execute these scripts instead of just displaying them in a browser. This directory has executable permissions, while all of your other directories should...