header.inc.php
  Welcome to Real Web Host ! | REALWEBHOST.NET | AFFORDABLE HOSTING SOLUTIONS     
  Home Sitemap Contact Us
Domain Registration From $12.50 Per Year
Home Shared Hosting Dedicated Hosting Resellers VPS Support
 The Best Web Hosting Deal Special
  
Upgrade Your Hosting Account Existing Hosting Clients Upgrade Your Hosting Today!
 
MySql
 

You must have Access Enable. Read More Here.

If you can't find your question, please let us know and we'll answer it in email.



Also see our Resource Area

How do I access My database?

Your Account Database is already initialized by default and ready for your use.

From telnet, type: mysql -p
It will prompt you for the database password.

You can also access it with the following commands:

 

    mysql -u my_user_name --password=my_password
    mysql -u my_user_name -p

Your User Name and Database Name are both the same as your RWH account name.

How do I change my mySQL password?

First, log in to your mySQL database from a shell prompt. Then issue the following command:

 

    set password=password('new_password');

where new_password is the new password you have selected.

Example

 

    set password=password('charlie1');

What is the mysql port number?

The port is the default standard port: 3306. Most programs like PHP and Perl DBI will take this port if it is not specified.

How do I backup or transfer my database?

mySQL databases are not backed up like ordinary files. Even if it were possible, it would not be a good solution, as it could corrupt the database by doing so.

To back up your database, telnet to your account, then use the mysqldump command:

 

    mysqldump --opt -uUSERNAME -p databasename > /path/to/dump.sql

('db.sql' is the name of your backup dump file, which you can change to whatever name you choose)

That backs up the whole database in standard SQL text format. Both the structure (like CREATE table command) and data (like INSERT command) statements, can be backed up separately, which is usefull in many cases. Check:

mysqldump --help

for all the command line options.

To restore the dump, just type:

    mysql -uUSERNAME -p newdbname < /path/to/dump.sql

Note that the structure dump won't work if tables already exist. The backup will not change or replace the structure.

For the data dump (the INSERT commands) it will append any new data if it does not yet exist.

If you have a database that is in frequent use, such as one linked to a dynamic web interface being updated by your web site visitors, it is a good idea to make a daily backup of the data.

To transfer a database, create the dump as described above, use ftp to upload it on the second server, and then restore it as above.

Backing up the database is not done through an ftp database directly. You first need to generate an sql dump, and then download this dump.

Use the following mysqldump command:

 

    mysqldump -ppassword username > somefile.sql

Then use the following command to view the dump:

 

    view somefile.sql

(exit with: q!)

To put the file back:

 

  • upload the file
  • edit it with a text editor, adding the below line to the top:
      use databasename (which is the same as your username)
  • save the file and issue the command:
      mysql -ppasswd < somefile.sql

All of the database will be generated, including structure. For more details, use

 

    mysqldump --help

How is 'mySQL' pronounced?

 

    my-es-queue-el

 
Untitled Document
Login to your hosting cpanel to view the latest server status, billing information, site and domain status, and much more. You will also have the option of using our support ticket system, or use our hosting community forums.
 
Untitled Document
 
Data Center Cpanel Website Transfers Hosting Knowledgebase
Web Hosting Privacy Policy Web Hosting Option Add On's
Hosting Merchant Accounts
Customer Hosting Websites Web Hosting Site Map Pre-Sales Hosting Questions
Web Hosting Web Site Builder Web Hosting Forums
Hosting Affiliate Program
Web Hosting Specials Web Hosting Features    
Web Hosting Packages    
Web Hosting Reviews
 
HOME | SHARED HOSTING | DEDICATED HOSTING | RESELLERS | SUPPORT | CONTACT

About | Partners | Reviews | Rules | Sitemap | Beginners
Developed by Vtrio Solutions Pvt Ltd   © Copyright 1997-2007, REAL WEB HOST. All Rights Reserved. http://www.webhosting-rated.com/index.php