Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Import mysql
PostPosted: Tue Aug 28, 2012 1:09 pm 
Offline
Senior Newbie

Joined: Sun Aug 26, 2012 3:37 pm
Posts: 9
Ok I now have linode 512 with lam but not the p installed.
I uploaded my databases to ~/public/example.com/public
I then use the command "mysql -u username -ppassword database_name < FILE.sql"
This is a copy and past from docs.
Anyway I get "No such file or directory"
I installed mysqladmin but I guess it has no gui?
And should -ppassword be "-p password" I tried that too.
Where am I going wrong?


Top
   
 Post subject: Re: Import mysql
PostPosted: Tue Aug 28, 2012 1:45 pm 
Offline
Senior Newbie

Joined: Tue Aug 28, 2012 8:59 am
Posts: 8
Hi, if you're getting "No such file or directory" then the database file is not in your current directory. Use pwd to see the current directory, and ls to see the files in it.

You may wish to simply specify the full path to the database file, which (if I understand) would mean that you would use:

mysql -u username -ppassword database_name < ~/public/example.com/public/FILE.sql

Hope this might help...


Top
   
 Post subject: Re: Import mysql
PostPosted: Tue Aug 28, 2012 6:22 pm 
Offline
Senior Newbie

Joined: Sun Aug 26, 2012 3:37 pm
Posts: 9
Thanks John,
You got me out of the rut I was in.
I'm now transferring files. Which will take some time.
I sure miss being able to see the tables in the database like with cpanel.
Is there not a gui for the databases? Bet you can't tell I'm new.

David


Top
   
 Post subject: Re: Import mysql
PostPosted: Tue Aug 28, 2012 7:50 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
'show tables' will show a list of tables in a given database. However, take a look at MySQL Workbench... it's pretty handy.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject: Re: Import mysql
PostPosted: Wed Aug 29, 2012 1:17 am 
Offline
Senior Newbie

Joined: Tue Aug 28, 2012 8:59 am
Posts: 8
mmcsus wrote:
Is there not a gui for the databases? Bet you can't tell I'm new.

David


I usually install phpMyAdmin:

http://www.phpmyadmin.net/home_page/index.php

It's a bit weird the way you configure it but once it's running it's fine. You will want to make sure that no-one else can get into it... I put it in a separate virtual host and only allow access from one IP address.


Top
   
 Post subject: Re: Import mysql
PostPosted: Wed Aug 29, 2012 1:39 am 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
JohnR wrote:
I usually install phpMyAdmin:

I usually laugh at people who install phpMyAdmin :roll:

Just kidding @John R - but phpMyAdmin is for sissies and people who can't type two letters without one of them being backspace.

It's usually setup WRONG, and becomes a HUGE security risk.

Use HeidiSQL or Sqlyog.

Both tons more secure then phpmyadmin, and way better featured (ymmv).

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
 Post subject: Re: Import mysql
PostPosted: Wed Aug 29, 2012 3:52 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
If you're using a mac Sequel pro is pretty good and free

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group