sudo /etc/init.d/mysql start启动mysql netstat -lntup|grep 3306查看端口3306 grant all privileges on *.* to system@'localhost' identified by 'xxx' with grant option;创建新的用户并赋予所有权限xxx密码 flush privileges;刷新权限 mysql -u root -pxxx登录mysql 查看mysql数据库里操作命令历史 cat /ro…