Hi all,
I've just installed MySQL 5.0 on my sun box (runing Solaris 10, install
from blastwave). This is my first time with MySQL so I don't have any
exp with it.
I have some troubles as:
- I set password for root account via this command:
# mysql -h atlantis -u root mysql
mysql> update user set password=PASSWO RD('123456') where user = 'root';
mysql> exit
However, I can login again with root account without pass check ????
- Next, I create new user name admin
# mysql -h atlantis -u root
mysql> create user admin identified by 'admin' ;
mysql> create database newdb ;
mysql> GRAND ALL ON newdb.* TO 'admin' IDENTIFIED BY 'admin' ;
Once again, i can't use admin account to login to newdb database??
Please help me to study them.
Thanks in advance.
I've just installed MySQL 5.0 on my sun box (runing Solaris 10, install
from blastwave). This is my first time with MySQL so I don't have any
exp with it.
I have some troubles as:
- I set password for root account via this command:
# mysql -h atlantis -u root mysql
mysql> update user set password=PASSWO RD('123456') where user = 'root';
mysql> exit
However, I can login again with root account without pass check ????
- Next, I create new user name admin
# mysql -h atlantis -u root
mysql> create user admin identified by 'admin' ;
mysql> create database newdb ;
mysql> GRAND ALL ON newdb.* TO 'admin' IDENTIFIED BY 'admin' ;
Once again, i can't use admin account to login to newdb database??
Please help me to study them.
Thanks in advance.
Comment