View previous topic :: View next topic |
Author |
Message |
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2716 Location: Edmonton, AB
|
Posted: Fri Jul 23, 2004 9:25 pm Post subject: phpmyadmin error log-in after upgrade |
|
|
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 |
|
|
wol Tux's lil' helper
Joined: 02 Jun 2002 Posts: 107
|
Posted: Sat Jul 24, 2004 8:02 am Post subject: My Solution |
|
|
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 |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2716 Location: Edmonton, AB
|
Posted: Sat Jul 24, 2004 4:27 pm Post subject: |
|
|
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 |
|
|
b52_ n00b
Joined: 14 Nov 2003 Posts: 51 Location: Germany
|
Posted: Sun Jul 25, 2004 9:54 am Post subject: |
|
|
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
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 |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2716 Location: Edmonton, AB
|
Posted: Sun Jul 25, 2004 4:03 pm Post subject: |
|
|
b52_ wrote: |
It seems that phpmyadmin don't read my configfile /etc/phpmyadmin/config.inc.php any longer
|
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 |
|
|
|