Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 18th Aug 2008, 06:39 AM   #1
VIP Warrior
War Room Member
 
Alan Petersen's Avatar
 
Join Date: 2006
Location: San Francisco, CA
Posts: 2,081
Thanks: 691
Thanked 791 Times in 492 Posts
Blog Entries: 12
Default
MySQL DB Upload Problem
Share on: 
fb share twitter share gplus share more share

Hello there,

I'm waiting to hear back from the programmer but I thought I would check for an answer here as well.

Here is what he told me to do with the SQL db they created for a site:

When you login to cpanel then simply click to myphpadmin link and you will be redirected to database server, there you will see various links, just click to your created database link (db_name) at left. Then you will have a new page where you will see top links, click to "import" link and browse you SQL(database) file and then click to "Go" button at bottom right, all data is up now.
I do all that but when I upload the SQL db I get an error message about the db not existing. I created a mysql db from cpanel for the site but I just can't get the tables of the db created by uploading the SQL db. Any suggestions on how I can get this to work from the phpmyadmin import area?

Thanks.

Alan Petersen is offline  
Unread 18th Aug 2008, 12:45 PM   #2
Active Warrior
War Room Member
 
tomm's Avatar
 
Join Date: 2005
Posts: 96
Thanks: 11
Thanked 16 Times in 13 Posts
Default
Re: MySQL DB Upload Problem
Share on: 
fb share twitter share gplus share more share

I think if you open the SQL db using a text editor, you will see, near the top, something like:

USE dbname;

where dbname is the name of your database; try deleting that line and importing again

if it doesn't work, paste here the error msg you receive
tomm is offline  
Unread 18th Aug 2008, 05:15 PM   #3
Advanced Warrior
War Room Member
 
Janet Sawyer's Avatar
 
Join Date: 2003
Location: United Kingdom.
Posts: 737
Thanks: 107
Thanked 208 Times in 159 Posts
Default
Re: MySQL DB Upload Problem
Share on: 
fb share twitter share gplus share more share

Originally Posted by Alan Petersen View Post

Hello there,

I'm waiting to hear back from the programmer but I thought I would check for an answer here as well.

Here is what he told me to do with the SQL db they created for a site:



I do all that but when I upload the SQL db I get an error message about the db not existing. I created a mysql db from cpanel for the site but I just can't get the tables of the db created by uploading the SQL db. Any suggestions on how I can get this to work from the phpmyadmin import area?

Thanks.
Alan,

Have you created a database and a "USER" to go with that database and "Granted" Permissions for them to use that Database?

Is there a "config.php" file that needs that information inputting into it? and it's permissions changing to "777" "rwx-rwx-rwx"?

As Thomm says, are there any error messages being given out?

Import and export are usually easy with phpmyadmin -

If you want to pm the database file and the hosting details I'll see if I can take a look see for you.

Kindest regards,

Janet Sawyer

Janet Sawyer is offline  
Unread 19th Aug 2008, 08:28 PM   #4
VIP Warrior
War Room Member
 
Alan Petersen's Avatar
 
Join Date: 2006
Location: San Francisco, CA
Posts: 2,081
Thanks: 691
Thanked 791 Times in 492 Posts
Blog Entries: 12
Default
Re: MySQL DB Upload Problem
Share on: 
fb share twitter share gplus share more share

Originally Posted by tomm View Post

I think if you open the SQL db using a text editor, you will see, near the top, something like:

USE dbname;

where dbname is the name of your database; try deleting that line and importing again

if it doesn't work, paste here the error msg you receive
That was it. He had a dummy db name in .sql file. Once I replaced it with the db I created it worked. Thanks for your help Janet and Tomm.

Alan Petersen is offline  
Closed Thread


Bookmarks

Tags
mysql, problem, upload


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 03:45 AM.