Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
is there any way to delete the mysql password list
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
evilic0n
n00b
n00b


Joined: 24 Jun 2004
Posts: 53
Location: Newark, NJ, USA

PostPosted: Thu Sep 23, 2004 9:23 am    Post subject: is there any way to delete the mysql password list Reply with quote

I just installed myth tv and i'm trying to set it up. i have tried to install it before to no avail. now i'm up to the part where i'm trying to set up the myth tv database and users and it keeps telling me that my access is denied.

Code:
 #  mysql --user=root mysql       
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO


sometimes it even tells me that i am "Using password"

Code:
#  mysql --user=root -p randompassword
Enter password:
ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)


so what i want to know is if there is a way to bypass this password or is there a password file that can be modified /deleted ....

i just want to record some smallville :( .. help[/code]
_________________
And in the end the Red Death held dominion over all.
Back to top
View user's profile Send private message
orb9
Tux's lil' helper
Tux's lil' helper


Joined: 02 Sep 2002
Posts: 82
Location: Germany

PostPosted: Thu Sep 23, 2004 9:53 am    Post subject: Reply with quote

There is an option for the mysqld to not use the privilege system, which i used to fix some problems with my DB users:

--skip-grant-tables
This option causes the server not to use the privilege system at all. This gives everyone full access to all databases! (You can tell a running server to start using the grant tables again by executing a mysqladmin flush-privileges or mysqladmin reload command, or by issuing a FLUSH PRIVILEGES statement.)

This is from:
http://dev.mysql.com/doc/mysql/en/Server_options.html

Hope this helps!
_________________
"Without music, life would be a mistake - I would only believe in a god who knew how to dance." (Nietzsche)
Back to top
View user's profile Send private message
evilic0n
n00b
n00b


Joined: 24 Jun 2004
Posts: 53
Location: Newark, NJ, USA

PostPosted: Thu Sep 23, 2004 10:09 am    Post subject: :( Reply with quote

Code:
# mysqladmin reload
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)'
# mysqladmin flush-privileges
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)'


:(
_________________
And in the end the Red Death held dominion over all.
Back to top
View user's profile Send private message
orb9
Tux's lil' helper
Tux's lil' helper


Joined: 02 Sep 2002
Posts: 82
Location: Germany

PostPosted: Thu Sep 23, 2004 11:05 am    Post subject: Reply with quote

Assuming you have root access to your box, do:
Code:
$> /etc/init.d/mysql stop

Then start the mysql daemon manually
Code:
$> mysqld --skip-grant-tables

You should now be able to use mysqladmin (or other tools) without authentication. This means everybody has full access to ALL databases.
If you're working locally you can additionally prohibit network connections during the unprivileged period:
Code:
$> mysqld --skip-grant-tables --skip-networking


When you're finished you should do
Code:
$> mysqladmin reload

again to reactivate the privileges. Alternatively you can kill the demon by hand and restart it using the init scripts.
Code:
$> /etc/init.d/mysql start

_________________
"Without music, life would be a mistake - I would only believe in a god who knew how to dance." (Nietzsche)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia 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