1.1 root用户创建

mysqladmin -u root password xxxxxxx

1.2 普通用户创建

mysql -uroot -pSmySQL01# < createDB.sql

grant all on Syslog.* to rsyslog@localhost identified by ‘rsyslog’;

flush privileges;

1.3 修改root 密码

mysqladmin -u root -p password “newpasswd#”
Enter password: oldpasswd