If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > after installed mysql, only test database show

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-30-04, 08:22
alvincks alvincks is offline
Registered User
 
Join Date: Mar 2004
Posts: 74
after installed mysql, only test database show

hi, good day, i have install mysql with 4.0.2a version, when i start mysql and using "show databases" command , it only contain test database , why is it so ? i couln't found "mysql" database inside ..anyone can guide to solve this problem ? thank you !!
Reply With Quote
  #2 (permalink)  
Old 10-30-04, 19:39
guelphdad guelphdad is offline
Registered User
 
Join Date: Mar 2004
Posts: 440
did you log into mysql as the root user?
Reply With Quote
  #3 (permalink)  
Old 10-31-04, 01:04
alvincks alvincks is offline
Registered User
 
Join Date: Mar 2004
Posts: 74
yes, i'm under computer administrator account in winxp
Reply With Quote
  #4 (permalink)  
Old 11-01-04, 07:44
guelphdad guelphdad is offline
Registered User
 
Join Date: Mar 2004
Posts: 440
no, not who you are logged into in XP. When you log into mysql do you do it as the root user for mysql or do you do it as a user where you might not have set up privileges properly?
Reply With Quote
  #5 (permalink)  
Old 11-01-04, 11:16
martongergo martongergo is offline
Registered User
 
Join Date: Oct 2004
Location: Romania
Posts: 5
you need to run from command line the following

mysql -uroot -p (if your root account for mysql has a password)


have a nice day.
Reply With Quote
  #6 (permalink)  
Old 11-01-04, 23:51
alvincks alvincks is offline
Registered User
 
Join Date: Mar 2004
Posts: 74
yes, ok ...i still log in as root ,

what i have did

1) after installed, i use "mysqladmin -u root password 'password' " command to set first time password, then restart pc

2) enter mysql using command "mysql -u root -p" , enter password 'password' which i already defined ..but cannot access

3) then i just type "mysql" ..it allow me to go in ..however, i use "show databases;" , it only show me test database, but no mysql db reside

anyone know what problem is it
Reply With Quote
  #7 (permalink)  
Old 11-02-04, 07:46
guelphdad guelphdad is offline
Registered User
 
Join Date: Mar 2004
Posts: 440
If you just type mysql and it allows you in then you haven't changed your mysql table which by default allows connections by any user from localhost without a password. But then as an anonymous user you have no permissions to see any databases you may have set up.

when you say you can't get in as root, please post the error message you get.
Reply With Quote
  #8 (permalink)  
Old 11-04-04, 10:32
alvincks alvincks is offline
Registered User
 
Join Date: Mar 2004
Posts: 74
when i use command "mysql -u root -p", it show error 1045 : accessed denies for user, 'root@localhost' <using pasword : yes>

then if i use command "mysql", it let me go in, then i try to use "update user set password=PASSWORD('password') where user='root'" command to update password but it show me error 1046 : no database selected
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On