SearchSearch   

skip-grant-tables + phpmyadmin

 
   Webmaster Forums (Home) -> PHP MySQL RSS
Next:  Drawing anti-aliased lines using the GD library  
Author Message
cappa

External


Since: Nov 28, 2008
Posts: 2



(Msg. 1) Posted: Fri Nov 28, 2008 9:17 am
Post subject: skip-grant-tables + phpmyadmin
Archived from groups: alt>php>sql (more info?)

Hi,
i've a very huge problem :S
so i've changed the root passwor in phpMyAdmin, after clicking
"execute" i receive an error in phpMyadmin:

#1045 - Access denied for user'root'@'localhost

i've read a lot of thread and at the end i'd followed this steps:
1. stop mysqld : /etc/init.d/mysqld stop
2. start mysqld_Safe : mysqld_safe --skip-grant-tables &

at this point i'm able to view all my db through phpMyAdmin, but i
can't at all change privilege or create user, i can work on the
database see them and see all the user that i'd created before.

3.mysql
3.1 show databases; -> i can see all my databases (20 databases)
4. use mysql
5. update root password
6. flush privileges;
7.exit;
8.mysql restart

and now i can only see ONLY 2 databases: information_Schema; test and
it seems that exists only one user "root"

do you know some tips to restore mysql? have i to reinstall
everything?

Thanks in advance

Cap
Back to top
J.O. Aho

External


Since: May 31, 2006
Posts: 2034



(Msg. 2) Posted: Sat Nov 29, 2008 12:10 am
Post subject: Re: skip-grant-tables + phpmyadmin
Archived from groups: per prev. post (more info?)

cappa wrote:

> do you know some tips to restore mysql? have i to reinstall
> everything?

http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html

scroll down to the unix section.


--

//Aho
Back to top
cappa

External


Since: Nov 28, 2008
Posts: 2



(Msg. 3) Posted: Sun Nov 30, 2008 5:57 am
Post subject: Re: skip-grant-tables + phpmyadmin
Archived from groups: per prev. post (more info?)

Hi,
thanks for the tip Smile in the meanwhile i've solved it just updating
manually the permission in the table mysql.user, in some way all the
permission are setted to 0 (create db,manage user etc etc) i'd put in
all the fields "1" and everything gone well.

thanks again
cap

On 29 Nov, 00:10, "J.O. Aho" <u....DeleteThis@example.net> wrote:
> cappa wrote:
> > do you know some tips to restore mysql? have i to reinstall
> > everything?
>
> http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html
>
> scroll down to the unix section.
>
> --
>
>   //Aho
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> PHP MySQL
Page 1 of 1

 
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