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.

Question : was the below procedure the right things to do ?

On Ubuntu server 12.04, fresh install :

I typed apt-get install phpmyadmin and ran into an error saying it cannot connect to mysql (socket issue). It was normal because I forget to install mysql before, so I selected "abort" above all options given by phpmyadmin.

Then sudo tasksel and installed lamp server.

Once finished, I ran :

apt-get remove --purge phpmyadmin
apt-get install phpmyadmin

Then mysql -u root -p but I got the following error : Access denied for the following user 'root'@'localhost'

So I solved this problem by doing :

mysql
SET PASSWORD FOR root@localhost=PASSWORD('mypassword'); 
GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

Then I succesfully logged in localhost/phpmyadmin, but found this message :

The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. To find out why click here.

I clicked here, and it showed me : enter image description here

Question : Can I go on peacefully with mysql/phpmyadmin ?

Thanks.

share|improve this question
add comment

2 Answers

Yes that is correct. Make sure that all the $cfg['Servers'][$i] directives are uncommented!

share|improve this answer
1  
Could you expand a bit about why they should be uncommented. –  Braiam Sep 21 '13 at 2:46
add comment

OP's answer:

I solved this problem with the following :

cd /usr/share/doc/phpmyadmin/examples
sudo gunzip create_tables.sql.gz 
mysql -u root -p < create_tables.sql
mysql -u root -p -e 'GRANT SELECT, INSERT, DELETE, UPDATE ON phpmyadmin.* TO 'pma'@'localhost' IDENTIFIED BY "pmapassword"'

Then edited /etc/phpmyadmin/config.inc.php on these lines :

/* Optional: User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'pmapassword';

Logged back in phpmyadmin, and then, the warning message had disappeared.

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.