Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-26-2012, 11:26 PM   #1
LQ Newbie
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
Mysql installation problem

i started studying mysql and when i am about to install it in my ubuntu os the reply is
" sudo: aptitude: command not found "... anyone can help me... I am getting this problem for the last few days...
Old 02-27-2012, 12:43 AM   #2
Registered: Jan 2010
Location: india/pune
Distribution: Arch Fedora20
Posts: 126

Rep: Reputation: 18
type this in terminal.You will be asked for new root password for mysql
sudo apt-get install mysql-server-5.1
after installation type mysql -uroot -p and enter password you have set during installation.
Welcome to LQ !!
1 members found this post helpful.
Old 02-27-2012, 06:53 AM   #3
Satyaveer Arya
Senior Member
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Try this:

Open a terminal window, and use the following command:
# sudo apt-get install mysql-server
During the installation process you will be prompted to enter a password for the MySQL root user.

Once the installation is complete, the MySQL server should be started automatically. You can run the following command from a terminal prompt to check whether the MySQL server is running:
# sudo netstat -tap | grep mysql
When you run this command, you should see the following line or something similar:

tcp 0 0 localhost:mysql *:* LISTEN 2556/mysqld
If the server is not running correctly, you can type the following command to start it:
# sudo /etc/init.d/mysql restart
If you are running PHP you will also need to install the php module for mysql 5:
# sudo apt-get install php5-mysql
To create a new database, use the mysqladmin command:
# mysqladmin create <databasename>


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql installation problem ddaas Linux - Software 1 03-22-2005 01:47 PM
Installation problem in MySQL mchithu Linux - Software 0 01-07-2005 09:25 AM
mysql installation problem. sixth_sense Linux - General 1 04-12-2004 08:57 AM
MySQL Installation Problem userini Linux - Software 2 07-12-2003 02:13 PM
MySQL 4.0.12 installation problem. Swift&Smart Linux - Software 10 04-07-2003 11:54 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration