hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Issue importing database
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Issue importing database

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-26-2004, 08:57 AM
JamieN JamieN is offline
Newbie
 
Join Date: Aug 2004
Posts: 5

Issue importing database


I have read various posts about using phpMyAdmin to export and import databases from one host to another. The import seems to run, and I get this message: Your SQL-query has been executed successfully.

However, I still see "No databases" on the left. I click on the Databases link under MySQL, and it says "no databases."

I have exported the database without compression and in a zipped format. I even tried just typing a query to create the database but no luck.

I am probably missing something very basic. Any ideas?

Thanks

Reply With Quote


Sponsored Links
  #2  
Old 08-26-2004, 01:32 PM
Burhan Burhan is offline
Community Guide
 
Join Date: Jul 2003
Location: Kuwait
Posts: 5,100
Perhaps your user doesn't have rights to create a database?

Try creating a database first "manually" (through cpanel or through your shell).

__________________
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my blog
Signal > Noise

Reply With Quote
  #3  
Old 08-26-2004, 04:43 PM
fraudgate fraudgate is offline
WHT Addict
 
Join Date: Jun 2004
Posts: 139
You will need to create a database before you import the data. The data you are trying to import are database tables, not a database. The MySQL database actually holds the tables you are trying to import.

__________________
FraudGate.com - Chargeback Prevention
Automated phone calls and IP tracking to fight fraud.
Sign up and prevent fraudulent chargebacks today!

Reply With Quote
Sponsored Links
  #4  
Old 08-26-2004, 05:15 PM
JamieN JamieN is offline
Newbie
 
Join Date: Aug 2004
Posts: 5
Basic MySQL question on creating a database

I can create a database in cpanel 6 on the mySQL screen, and the message states that "xxx" database was created with the name that I specified. However, when I go back to the MySQL screen, the database name has changed: my cpanel user id is appended to the beginning of the database name, and the underscore in the database name has been removed. Because I am trying to move a database from another server, I would like to use the name that was used, so I don't have to update the entire site with a new database name.

I also tried using phpMyAdmin to create the database, but I get error 1044 stating that I do not have the access to create the database.

I have seen multiple posts about using SSH, but since I have not used it before, I am apprehensive about using it on a live site.

These questions are quite basic, so if you can refer me to some good documentation, that would be great. The cpanel and phpMyAdmin docs do not address my question.

Reply With Quote
  #5  
Old 08-26-2004, 05:20 PM
CreativeLogic CreativeLogic is offline
Web Hosting Guru
 
Join Date: Aug 2002
Posts: 261
you will have to use ssh to create this database. CPanel will always put your username there.

Reply With Quote
  #6  
Old 08-28-2004, 07:06 PM
JamieN JamieN is offline
Newbie
 
Join Date: Aug 2004
Posts: 5
Using SSH to create a database

I have read multiple posts about mySQL commands to create the database, but I don't know anything beyond getting the SSH window to open. So back to seeing if I can get phpMyAdmin to do what I need.

I have been able to create a sample database and import tables/data into that database using cPanel's phpMyAdmin. Since I don't want cPanel to add my cPanel user id to the beginning of the database name, will I be able to control the database name by installing my own copy of phpMyAdmin on the site?

I did try installing phpMyAdmin, but I don't understand the values that I am to change as specified by the documentation: host, user, password and authentication mode. I tried using my cpanel id and password, but it did not work.

Reply With Quote
  #7  
Old 08-28-2004, 08:42 PM
Karthick Karthick is offline
Web Hosting Evangelist
 
Join Date: Aug 2004
Location: Sydney, Australia
Posts: 464
In cPanel, I think only root has power to create untagged databases / usernames, though you can have a go at the following:

host in most cases is just localhost. user and password depends on what you have created through cpanel.

In SSH try:

Code:
mysql -u user.name -p create database.name
I just tried creating untagged database in phpmyadmin and it returns a permission denied error.

If you are restoring a large sql backup through phpmyadmin you will find there is a 2M limit, (it can be changed in php.ini). To get around this you just upload the SQL file to your root folder and then run this in SSH:

Code:
mysql -u user.name -p database.name < backup.sql

__________________
Net Logistics Web Hosting - Solutions Through Innovation


Last edited by Karthick; 08-28-2004 at 08:48 PM.
Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Samsung Ventures Backs Cloudant Database as a Service Web Hosting News 2013-02-08 14:10:26
Cloud Host Savvis Extends Cloud-Based Database Platform to European Customers Web Hosting News 2012-10-12 11:06:37
VMware vFabric Data Director 2.0 Adds Support for Oracle Databases Web Hosting News 2012-07-10 16:30:32
Cloud Firm Amazon Web Services Launches NoSQL Database Service Web Hosting News 2012-01-18 16:00:08
Web Host Rackspace Launches Private Beta for MySQL Cloud Database Web Hosting News 2011-12-01 21:09:51


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?