LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-26-2012, 10:26 PM   #1
vineeth.vvv
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-26-2012, 11:43 PM   #2
rhklinux
Member
 
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
Quote:
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, 05:53 AM   #3
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

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

Open a terminal window, and use the following command:
Code:
# 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:
Code:
# sudo netstat -tap | grep mysql
When you run this command, you should see the following line or something similar:

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


Reply



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 12:47 PM
Installation problem in MySQL mchithu Linux - Software 0 01-07-2005 08:25 AM
mysql installation problem. sixth_sense Linux - General 1 04-12-2004 07:57 AM
MySQL Installation Problem userini Linux - Software 2 07-12-2003 01:13 PM
MySQL 4.0.12 installation problem. Swift&Smart Linux - Software 10 04-07-2003 10:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:43 PM.

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