Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just set up a fresh install of Ubuntu 12.04 on my VPS, and I cant for the life of me install or even locate MySQL server..

apt-cache search mysql 

gives no results on mysql-server/mysqld-server

apt-get install mysqld-server 

as well as many variations just gives the output in the title:

unable to locate package mysqld-server

I have added the universe repo, in which it should be located, but nothing. Google yields absolutely nothing on this, the only relevant info is just to run those commands, and to run another that is supposed to work:

apt-get install Lamp-server^ 

(may be misspelled a bit, but its close and I ran the correct one earlier) which also didn't work at all, it said the same thing, unable to locate package "etc"

Am I missing something here? should I have a specific repository I don't? should I be running a different command? or did ubuntu 12.04 drop mysql support or something?

Thanks for your time guys, hope I can get this to work, its driving me crazy.

share|improve this question
up vote 7 down vote accepted

You want to install mysql-server, which does exist in 12.04.

If you can't find it maybe you've done a clean install and haven't done an update yet, so do the following:

sudo apt-get update
sudo apt-get install mysql-server

If that doesn't work update your question with what happens.

share|improve this answer
Wow. Thanks. I dont know why that didnt work the first time around..? I ran "apt-get update" right after I updated my sources.list, so thats quite strange that it didnt even show up in the apt-cache... hmm. That makes me feel quite dumb.. but still it really is weird to me that it didnt show up in the cache even thought I already updated, I wonder what changed from me logging out and logging back in, without doing anything else besides the commands I listed. Thanks alot Jorge, I appreciate it. – insomnia Jul 26 '12 at 22:35

protected by Community Aug 5 '13 at 13:32

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.