安装mysql步骤
1.tar xvf MySQL-5.6.35-1.linux_glibc2.5.x86_64.rpm-bundle.tar 解压
2.rpm -ivh MySQL-server-5.6.35-1.linux_glibc2.5.x86_64.rpm 安装service
3.rpm -ivh MySQL-client-5.6.35-1.linux_glibc2.5.x86_64.rpm 安装client
4.service mysql start 测试是否安装成功
5.service mysql stop 暂停服务配置文件
6./usr/bin/mysqld_safe --skip-grant-tables --skip-networking & 修改用户权限,敲回车忽略提示
7.mysql -u root mysql 进入msql
8.update user set Password=password('123456') where user='root' and host='root' or host='localhost'; 更新root用户密码
9.flush privileges; 刷新权限
10.quit 退出mysql
11./etc/init.d/mysql start 启动mysql
12.ps -ef| grep mysql 之后kill所有的mysql
13./etc/init.d/mysql start 启动mysql
14.mysql -u root -p 输入密码
15.use mysql; 提示重新输入密码
16.set password=password('123456'); 设置新的密码
17.use mysql; 之后 flush privileges; 即可完成
1.tar xvf MySQL-5.6.35-1.linux_glibc2.5.x86_64.rpm-bundle.tar 解压
2.rpm -ivh MySQL-server-5.6.35-1.linux_glibc2.5.x86_64.rpm 安装service
3.rpm -ivh MySQL-client-5.6.35-1.linux_glibc2.5.x86_64.rpm 安装client
4.service mysql start 测试是否安装成功
5.service mysql stop 暂停服务配置文件
6./usr/bin/mysqld_safe --skip-grant-tables --skip-networking & 修改用户权限,敲回车忽略提示
7.mysql -u root mysql 进入msql
8.update user set Password=password('123456') where user='root' and host='root' or host='localhost'; 更新root用户密码
9.flush privileges; 刷新权限
10.quit 退出mysql
11./etc/init.d/mysql start 启动mysql
12.ps -ef| grep mysql 之后kill所有的mysql
13./etc/init.d/mysql start 启动mysql
14.mysql -u root -p 输入密码
15.use mysql; 提示重新输入密码
16.set password=password('123456'); 设置新的密码
17.use mysql; 之后 flush privileges; 即可完成