Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

skip-grant-tables + phpmyadmin

 
   Database Forums (Home) -> PHP SQL RSS
Next:  Ashley Furniture Cosco Tianjin-eta 11/30, Hanjin ..  
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

 >> Stay informed about: skip-grant-tables + phpmyadmin 
Back to top
Login to vote
J.O. Aho

External


Since: Dec 01, 2003
Posts: 397



(Msg. 2) Posted: Fri Nov 28, 2008 6:25 pm
Post subject: Re: skip-grant-tables + phpmyadmin [Login to view extended thread Info.]
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

 >> Stay informed about: skip-grant-tables + phpmyadmin 
Back to top
Login to vote
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 [Login to view extended thread Info.]
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" 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
 >> Stay informed about: skip-grant-tables + phpmyadmin 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
PHP & MySQL skip problem - Hello, I have the following script to move forward or backward to one record. Every thing work well. Only with the forward button and when the field NOM have one apostrophe ' inside, the skip process stop. Regards Otto Part of the Script..

phpmyadmin -

phpMyAdmin : convcharset, utf8 and iso-8859-15 - Hy, My website is hosted by Free.fr which offers MySQL control via phpMyAdmin 2.6.3-pl1. That's great, but i have a little problem. To follow the current stream and because my website is intended to be in several languages, i decided to use utf8..

PHPmyadmin, creating user details for a database.... - Hello I have a problem with a database for a simple login page, where a user needs a username and password. I've created the database and the table using CREATE TABLE users ( username varchar(20) NOT NULL default '', password varchar(20) NOT NULL..

Phpmyadmin instalation - Cannot modify header information - Hello! I was instaling a small web service for a friend (on his computer, only remote ssh access). I managed to set up apache2 with php support and mysql running as well (we had few problems with that, since slackware instalator did not changed..
   Database Forums (Home) -> PHP SQL All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can 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



[ Contact us | Terms of Service/Privacy Policy ]