Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
phpmyadmin error log-in after upgrade
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2716
Location: Edmonton, AB

PostPosted: Fri Jul 23, 2004 9:25 pm    Post subject: phpmyadmin error log-in after upgrade Reply with quote

After upgrading to phpmyadmin-2.5.7_p1 I get an error when I try to log-in:
#1045 - Access denied for user: 'pma@localhost' (Using password: YES)

When I try to run ebuild I get another error:
ebuild /var/db/pkg/dev-db/phpmyadmin-2.5.7_p1/phpmyadmin-2.5.7_p1.ebuild config
/usr/sbin/ebuild.sh: line 1337: pkg_config: command not found

The ebuild worked on previous version but not this time.
Back to top
View user's profile Send private message
wol
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jun 2002
Posts: 107

PostPosted: Sat Jul 24, 2004 8:02 am    Post subject: My Solution Reply with quote

emerge unmerge phpmysqladmin

emerge phpmysqladmin

mysql -u root -p[your mysql password here] < /usr/share/webapps/phpmyadmin/2.5.7_p1/sqlscripts/mysql/2.5.7_p1_create.sql
root@scruppy etc # init.d/mysql restart

/etc/init.d/mysql restart
_________________
Intellectual dishonesty is a mortal sin.
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2716
Location: Edmonton, AB

PostPosted: Sat Jul 24, 2004 4:27 pm    Post subject: Reply with quote

Yes, this was the solution. However,
"From the messages printed during installation:"
...
...
I did not see that message as the package show up for an update with all other packages during overnight update and the message scroll by. So the correct solution is either store these messages in some kind UPDADTE_README.TXT and point me to it after all is finished or pause the installation to let me complete the steps.

How to ensure that I'll not see all these messages during batch update.?
Back to top
View user's profile Send private message
b52_
n00b
n00b


Joined: 14 Nov 2003
Posts: 51
Location: Germany

PostPosted: Sun Jul 25, 2004 9:54 am    Post subject: Reply with quote

Hi,

i had the same problem with my pma login after update, but there is more.
It seems that phpmyadmin don't read my configfile /etc/phpmyadmin/config.inc.php any longer 8O
Normaly i take a password for my pma-user, but when changing pmas password in the mysql/user table to the password in my configfile i cannot log in with phpmyadmin anymore.
Moreover all the variables set in the configfile are ignored by phpmyadmin and i get these red hints on my phpadminsite.
Could anybody help me?

Thanks, bye, b52
Back to top
View user's profile Send private message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2716
Location: Edmonton, AB

PostPosted: Sun Jul 25, 2004 4:03 pm    Post subject: Reply with quote

b52_ wrote:

It seems that phpmyadmin don't read my configfile /etc/phpmyadmin/config.inc.php any longer 8O


That is correct the new version stores the configuration file direclty in:
/var/www/localhost/htdocs/phpmyadmin/config.inc.php
so you might as well add to your make.conf file:
CONFIG_PROTECT="/var/www/localhost/htdocs/phpmyadmin"
to protect that directory from automatic update

Collins Richey give me a very good hint and some might take advantage of it as well if you doing any batch updates overnight, here it is:

Quote:
There is no truly automated way at present (a design flaw in portage,
IMO). What you can do is:

1. as root, create directory /var/log/portage

2. as root, add the following line to /etc/make.conf

PORT_LOGDIR="/var/log/portage"

3. After running your batch update, review any new files in
/var/log/portage. You will find the post-install instructions there. For
example, my file /var/log/2411-mysql-4.0.18.log contains the following:

postinst
*
* You might want to run:
* "ebuild /var/db/pkg/dev-db/mysql-4.0.18/mysql-4.0.18.ebuild config"
* if this is a new install.
*
*
* If you're upgrading from MySQL-3.x, you must recompile the other
* packages on your system that link with libmysqlclient after the
* upgrade completes. To obtain such a list of packages for your
* system, you may use 'revdep-rebuild' from app-portage/gentoolkit.
*

4. you could automate the search for such information with a fairly
simple script that greps for 'postinst' in newly created
/var/log/portage files.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum