Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

EDIT:: installed mysql-server but no phpmyadmin (since phpmyadmin was installed before mysql, that resulted an error). How to reinstall phpmyadmin with database (there is no phpmyadmin datbase)? unstalling it and reinstalling it didn't help.

i was trying to install phpmyadmin (and zend framework) through synaptic manager but in the middle i was prompted for password

i thought it was phpmyadmin password and i proceeded but i got error and i aborted. and then again i tried to reinstall, it reinstalled but i am not getting phpmyadmin.

EDIT::The following is invalid so please don't bother

apache is running but mysql is not

some of it's characteristics are:

santosh@explorer:~$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2)

santosh@explorer:~$ sudo apt-get install mysql-server
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily  
unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/),
is another process using it?

Should i be asking this question here or stackoverflow?

UPDATES::

after restarting my computer

 santosh@explorer:~$ sudo service mysql start
 [sudo] password for santosh: 
 mysql: unrecognized service

UPDATES::

santosh@explorer:~$ sudo apt-get install mysql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package mysql
share|improve this question
add comment

3 Answers

up vote 1 down vote accepted

other process is lock your update manager. restart your computer.

to start mysql server, you can use this command :

sudo service mysql start
share|improve this answer
    
santosh@explorer:~$ sudo service mysql start mysql: unrecognized service –  Santosh Linkha Jan 6 '11 at 7:07
    
in that case you don't have mysql installed, do: sudo apt-get install mysql –  danizmax Jan 6 '11 at 7:20
    
did not work see update above –  Santosh Linkha Jan 6 '11 at 7:24
add comment

to install mysql server :

sudo apt-get install mysql-server-5.1

share|improve this answer
add comment

Consider removing phpMyAdmin completely and then re-installing it. It should work fine.

Still if 'apache is running and not mySQL' ,then try re-installing mySQL too

sudo apt-get install mysql-server-5.1 --reinstall

If this doesn't allow you to reconfigure the package you can use

sudo dpkg-reconfigure mysql-server-5.1

This shall make your LAMP installation look fresh!!!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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