iainjames88
February 9th, 2012, 03:24 PM
Hi guys,
I'm trying to install phpmyadmin on my Ubuntu 11.10 Server but I'm running in to a few difficulties.
During the installation it asks me to install dbconfig-common and configure apache2, but I get an error message saying:
An error occurred while installing the database:
mysql said: ERROR 1049 (42000): Unknown database 'phpmyadmin'
I think the installer tries to write the database 'phpmyadmin' to mysql during the installation but doesn't have the correct write privelages. When I chmod o+w -R /var/lib/mysql and try the installation again it works without problem, but obviously this is not the best idea as now everyone has write access.
Can anyone advise? I think the solution would be to find out what user phpmyadmin tries to install under and add it to my www-data group.
Thanks in advance for any advise! :)
I'm trying to install phpmyadmin on my Ubuntu 11.10 Server but I'm running in to a few difficulties.
During the installation it asks me to install dbconfig-common and configure apache2, but I get an error message saying:
An error occurred while installing the database:
mysql said: ERROR 1049 (42000): Unknown database 'phpmyadmin'
I think the installer tries to write the database 'phpmyadmin' to mysql during the installation but doesn't have the correct write privelages. When I chmod o+w -R /var/lib/mysql and try the installation again it works without problem, but obviously this is not the best idea as now everyone has write access.
Can anyone advise? I think the solution would be to find out what user phpmyadmin tries to install under and add it to my www-data group.
Thanks in advance for any advise! :)