设置mysql服务密码
1.进入mysql服务 :mysql -uroot -p
2.选择mysql数据库: use mysql;
3.设置密码为test:UPADTE user set password=PASSWORD('test') WHERE user='root';
4.退出mysql服务:exit;
5.重启mysql服务:service mysqld restart;
1.查找文件的具体路径
find / -name 文件名
2.重启mysql服务
service mysqld restart
3.停止mysql服务
service mysqld stop
4.启动mysql服务
service mysqld start
5.登录本机mysql数据库
mysql -uroot -p
输入密码
6.查看mysql运行状态
service mysqld status
7.查看mysql的运行使用的进程
ps -e |grep mysql