初学mysql(ubuntu)
自学mysql,记录操作过程
一、ubuntu中安装mysql
1. 直接输入命令 sudo apt-get install mysql-server mysql-client等待安装完成
2. 启动mysql service mysql start
3. 启动完后进入mysql,sudo mysql -uroot -p 直接用超级权限进入,这样不用输入密码
4. update user plugin='caching_sha2_password' where user='root'
5. 把root密码改为空,退出重启mysql service start restart
6. 修改root密码 alter user 'root'@'localhost' identified with caching_sha2_password BY ‘密码’

浙公网安备 33010602011771号