View Single Post
  #10  
Old 06-11-2005, 10:13 AM
vRandom
Sarnak
 
Join Date: Jun 2005
Posts: 91
Default

yep, use the username and pass you made when starting the winmsqladmin

GRANT ALL PRIVILEGES ON *.* TO Username@localhost IDENTIFIED BY 'Password' WITH GRANT OPTION;

change the username to the username your using, likely root, then set the password to what ever you want the pass to be

this changes the permissions to allow the user to use any database, if you wanted to just do one database for example, change the *.* to dbname.* (database name . and * for all tables etc in that database)

execute this command using the mysql -u [username] -p[passsword]
just with the -p and it will prompt for the password if one is set

forexample:
c:\mysql\bin\mysql -u root -ppassword
(notice no space between the -p and the password)

dont forget to change databases before sourcing, example:
use eq;

hope that helps some

Last edited by vRandom; 06-11-2005 at 06:20 PM..
Reply With Quote