# yum install mysql mysql-server mysql-devel
# service mysqld start
# chkconfig
--levels 235 mysqld on
|
1
2
3
4
5
6
7
8
|
登陆MySQL删除空用户,修改root密码
mysql>
select
user
,host,
password
from
mysql.
user
;
mysql>
drop
user
''
@localhost;
mysql>
update
mysql.
user
set
password
=
PASSWORD
(
'*********'
)
where
user
=
'root'
;
mysql>flush
privileges
;
|