LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-09-2004, 04:05 PM   #1
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Various
Posts: 1,736

Rep: Reputation: 146Reputation: 146
screwed up mysql settings


Greetings.

I am trying to get my head round mysql. I found a grat tuorial on the internet but accidentally messed up one of the commands and now cannot get into mysql as root.

I need to scrub the settings I have entered thus far and start from scratch again.

Can anyone tell me where the file is with the passwords/user settings in please?
 
Old 05-09-2004, 05:43 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Re: screwed up mysql settings

Quote:
Originally posted by salparadise
Greetings.

I am trying to get my head round mysql. I found a grat tuorial on the internet but accidentally messed up one of the commands and now cannot get into mysql as root.

I need to scrub the settings I have entered thus far and start from scratch again.

Can anyone tell me where the file is with the passwords/user settings in please?
The username and password are stored within the db or tables, etc.

Have you simply tried to su to root on your machine and just running mysql, without specifying the password?

su -
<password>
mysql

mysql>

Should throw you right into the tables where you can update the password there.
 
Old 05-10-2004, 02:44 AM   #3
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Various
Posts: 1,736

Original Poster
Rep: Reputation: 146Reputation: 146
here's what I'm experiencing;

su
<password>
mysql
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)

mysqladmin -u root password xxxxx
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)'

(as root)
mysql -p
xxxx

mysql>
however, I cannot enter the "mysqladmin blah" command from within mysql

hence wanting to know where the appropriate settings are kept so I can start from the beginning again with ALL settings

apologies if I haven't understood something fundamental here
like I said, trying to get the old head round mysql, started yesterday afternoon, screwed it up within 5 minutes
doh!
 
Old 05-10-2004, 06:47 AM   #4
esben
Member
 
Registered: Jun 2003
Location: Copenhagen, Denmark
Distribution: Gentoo
Posts: 48

Rep: Reputation: 15
I don't really know, but I would guess that removing the user.* and maybe db.* from
Code:
/var/lib/mysql/mysql
or wherever your mysql datadir is (look in the configuration file).
(Move the files instead of deleting them. Just in case).
 
Old 05-11-2004, 10:17 AM   #5
j33px0r
LQ Newbie
 
Registered: Apr 2004
Posts: 10

Rep: Reputation: 0
Logging into mysql

logging in is a pain to mysql. Heres what i always have to include (it only works for me as root)

mysql -u root -h 192.168.1.1 -p

<asks for password>

if i specify -h localhost or -h actual.host.name or -h my.ip or exclude the -h it will not work. not sure as to why.


hope that helps a little.
 
Old 05-11-2004, 10:35 AM   #6
salparadise
Senior Member
 
Registered: Nov 2002
Location: Birmingham UK
Distribution: Various
Posts: 1,736

Original Poster
Rep: Reputation: 146Reputation: 146
will have a play

have just managed to get knoda working, this allows for creation and manipulation of databases
and also managed to get a database created using openoffice

seriously steep learning curve!
(bearing in mind I've used access about three times and that is my total exeperience with databases)

thanks for the advice/help
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
screwed up my monitor settings, won't boot undeaf Linux - Newbie 17 05-16-2005 09:23 AM
Mandrake 10.0 Gnome/KDE Taskbar icon settings...are there settings? LiquidRezin Linux - Newbie 2 03-22-2004 09:27 AM
Changing US keyboard settings to Spain (SP) settings or Mexico. zLinuxz Linux - General 4 12-01-2002 12:49 AM
screwed up mysql by changing password, help! JustinHoMi Linux - General 0 01-28-2002 04:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration