Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Installing Mysql
PostPosted: Wed May 27, 2009 9:06 pm 
Offline
Senior Member

Joined: Wed May 27, 2009 9:04 pm
Posts: 60
Hello,
I am really new to this so im hoping this is the place to get some help! I need to install mysql on my server. Previous servers I had already had everything set up for me...


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 12:01 am 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
You'll do this through the package manager for your distribution. If you tell us what your distribution is (Debian, CentOS, etc) then we can help.

Also I'd recommend Googling for a general guide on how to manage that distribution; that will answer this and many other questions.


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 12:19 am 
Offline
Senior Member

Joined: Wed May 27, 2009 9:04 pm
Posts: 60
Hey ! I have Ubuntu 9.04 please let me know any other info that you need Thank you!


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 12:26 am 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Take a look at this:
http://doc.ubuntu.com/ubuntu/serverguide/C/

Specifically, chapter 3:
http://doc.ubuntu.com/ubuntu/serverguid ... ement.html

To answer your question, you probably want to run:
Code:
aptitude install mysql-server


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 1:12 am 
Offline
Senior Member

Joined: Wed May 27, 2009 9:04 pm
Posts: 60
this may sound like dumb question but how do i execute that code? Do i need to install something? I watched the getting started movie and at the end i saw him logging on with something that looked like terminal... Im really sorry im probably making you giggle right now... Im just clueless but i want to learn!


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 1:20 am 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Quick Start Guide

1. If you're on Windows, download PuTTY or something like that.
2. Run PuTTY.
3. Type in your linode's IP address (which you can find in the "Network" tab of Linode Manager) and hit Enter.
4. That'll drop you into your linode's shell (terminal).
5. Log in as "root" using the password you set up when you deployed your Linux distribution.
6. Now you can start typing away other commands.

Or alternatively, you can find a web-based shell in the "Console" tab of Linode Manager. It's called LISH. The web-based shell tends to break some screen layouts, though.

Quick Apache + PHP + MySQL setup:
Code:
apt-get update
apt-get upgrade
apt-get install apache2 php5 php5-mysql mysql-server mysql-client

(You can replace apt-get with aptitude)


Last edited by hybinet on Thu May 28, 2009 1:22 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Thu May 28, 2009 1:22 am 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
Edit: What he said. ↑

In your management console (on the Linode site), click the Networking tab. You'll then see the external IP address of your node. To get a terminal prompt, use a program like Putty (assuming you're on Windows) to connect to that address.

Unfortunately I'm not sure what the correct username and password are for a default Ubuntu install on Linode.


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 1:24 am 
Offline
Senior Member

Joined: Wed May 27, 2009 9:04 pm
Posts: 60
if im on a mac can i just run terminal ?


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 1:34 am 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
You get to a terminal, and then run:
Code:
ssh [ip address]


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 1:45 am 
Offline
Senior Member

Joined: Wed May 27, 2009 9:04 pm
Posts: 60
WOW I think I DID IT! this is sooo awesome!!! so how do i tell if it installed correctly? is there an interface?


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 2:32 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
You can check the status of a running MySQL daemon with the command mysqladmin status. If MySQL is not running, you can start it with /etc/init.d/mysql start.

As far as interface, you can use the basic client programs, or a nice web-based interface is phpMyAdmin. Search around for tutorials, as there's not enough space in this little textbox to walk you through the details of setting up a database.


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 2:38 am 
Offline
Senior Member

Joined: Wed May 27, 2009 9:04 pm
Posts: 60
Thanks for all ur help I intend on reading alot more about this.. my problem right now is time I need to get all this information that is on one server to here before tomorrow night... or ill lose everything... wen i type in that command it says
"mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
"


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 2:47 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
That means MySQL is not running. If it were, you'd see something like
Code:
Uptime: 2179002  Threads: 1  Questions: 6096795  Slow queries: 214
Opens: 4611  Flush tables: 1  Open tables: 64  Queries per second avg: 2.798


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 3:19 am 
Offline
Senior Member

Joined: Wed May 27, 2009 9:04 pm
Posts: 60
is there anyone who would be willing to move things over to this new server from my old one? I need it done by tomorrow I am willing to pay.. Im just afraid I wont be able to figure all this out in time.


Top
   
 Post subject:
PostPosted: Thu May 28, 2009 8:30 am 
Offline
Senior Member

Joined: Thu Apr 08, 2004 3:24 pm
Posts: 92
ICQ: 3765104
Website: http://www.unixfool.com
Yahoo Messenger: wigglit2001@yahoo.com
Location: VA
Actually, I think its running, otherwise there'd be no response from MySQL...that's a response from the MySQL server.

The way I'm reading that is that the root account has a password but it wasn't supplied by the user, which is why the error says, "(Using password: NO)"

Christina, try using the -p option and it should ask you for a password. If it doesn't post your command and options, please.


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