Unix Technical Forum

MySQL Databases lost

This is a discussion on MySQL Databases lost within the MySQL forums, part of the Database Server Software category; --> Hi, I am using MySQL v4.1 on Linux (CentOS v4.2)) I don't how, but when I list the databases ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 07:32 AM
Stephane M
 
Posts: n/a
Default MySQL Databases lost

Hi,

I am using MySQL v4.1 on Linux (CentOS v4.2))

I don't how, but when I list the databases available, "mySQL" databases
doesn't exist anymore !!!
As far as i know, this database stores all the infomation on users and
rights ?

How can I do to restore it ? , instead of reinstalling completely the RPM
package ? :-(

thanks
Steph


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 07:32 AM
Bill Karwin
 
Posts: n/a
Default Re: MySQL Databases lost

Stephane M wrote:
> I don't how, but when I list the databases available, "mySQL" databases
> doesn't exist anymore !!!


Another possibility is that you're connecting without specifying the
correct user/password combination to see the database.

A typical MySQL installation allows any user (including anonymous
connections that specify no user) to see only the "test" database. You
need to specify a user that has privilege to see the "mysql" database in
order to see it.

For instance, this command:

mysqlshow

Shows only the "test" database.

mysqlshow -u root -p

The latter command shows several databases, including your "mysql"
system database.

Note that operating system user and MySQL user are totally separate
identities; one does not imply the other, even if they have the same
names (e.g. there's a root for Linux and a root for MySQL, and they are
not the same). So you can log in to Linux as root, and still have no
privileges in MySQL unless you specify the user/password as options when
you use "mysql" or other tools.

Regards,
Bill K.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 07:33 AM
Stephane M
 
Posts: n/a
Default Re: MySQL Databases lost


"Bill Karwin" <bill@karwin.com> wrote in message
news:e0q1iu016li@enews3.newsguy.com...
> Stephane M wrote:
>> I don't how, but when I list the databases available, "mySQL" databases
>> doesn't exist anymore !!!

>
> Another possibility is that you're connecting without specifying the
> correct user/password combination to see the database.
>
> A typical MySQL installation allows any user (including anonymous
> connections that specify no user) to see only the "test" database. You
> need to specify a user that has privilege to see the "mysql" database in
> order to see it.
>
> For instance, this command:
>
> mysqlshow
>
> Shows only the "test" database.
>
> mysqlshow -u root -p
>
> The latter command shows several databases, including your "mysql" system
> database.
>
> Note that operating system user and MySQL user are totally separate
> identities; one does not imply the other, even if they have the same names
> (e.g. there's a root for Linux and a root for MySQL, and they are not the
> same). So you can log in to Linux as root, and still have no privileges
> in MySQL unless you specify the user/password as options when you use
> "mysql" or other tools.
>
> Regards,
> Bill K.


Unfortunately, I cannot connect to mySQL database even as Root

Do you know how to reset the Root password ?
All there password are stored inot the database calles mySQL ???
Thanks

Stephane


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 07:33 AM
Bill Karwin
 
Posts: n/a
Default Re: MySQL Databases lost

Stephane M wrote:
> Do you know how to reset the Root password ?


http://dev.mysql.com/doc/refman/5.0/...rmissions.html

> All [their] password[s] are stored [into] the database [called] mySQL ???


Correct.

Regards,
Bill K.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-28-2008, 07:33 AM
Michael Vilain
 
Posts: n/a
Default Re: MySQL Databases lost

In article <e102tt$2g6$1$8300dec7@news.demon.co.uk>,
"Stephane M" <Stephane@.com> wrote:

> "Bill Karwin" <bill@karwin.com> wrote in message
> news:e0q1iu016li@enews3.newsguy.com...
> > Stephane M wrote:
> >> I don't how, but when I list the databases available, "mySQL" databases
> >> doesn't exist anymore !!!

> >
> > Another possibility is that you're connecting without specifying the
> > correct user/password combination to see the database.
> >
> > A typical MySQL installation allows any user (including anonymous
> > connections that specify no user) to see only the "test" database. You
> > need to specify a user that has privilege to see the "mysql" database in
> > order to see it.
> >
> > For instance, this command:
> >
> > mysqlshow
> >
> > Shows only the "test" database.
> >
> > mysqlshow -u root -p
> >
> > The latter command shows several databases, including your "mysql" system
> > database.
> >
> > Note that operating system user and MySQL user are totally separate
> > identities; one does not imply the other, even if they have the same names
> > (e.g. there's a root for Linux and a root for MySQL, and they are not the
> > same). So you can log in to Linux as root, and still have no privileges
> > in MySQL unless you specify the user/password as options when you use
> > "mysql" or other tools.
> >
> > Regards,
> > Bill K.

>
> Unfortunately, I cannot connect to mySQL database even as Root
>
> Do you know how to reset the Root password ?
> All there password are stored inot the database calles mySQL ???
> Thanks
>
> Stephane


You should be able to connect using mysqladmin. If you continue to have
problems, you might invest in a MYSQL Reference book. It has most of
what you need to know to manage a MySQL environment. Required reading
if you use MySQL.

--
DeeDee, don't press that button! DeeDee! NO! Dee...



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:12 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com