1. 之前写了一个 可以使用 ssms 的方式修改密码的情况 2. 还有办法是执行命令 exec sp_password null,'newpassword','sa' # sa 是用户名 newpassword 是新密码 还有一个办法 alter login sa with password='newpassword' 注意有等号 注意有with 注意是 alter login 不是 alter user 3. 其实还有一个办法 不是登录 ssms 是使用sqlcmd的方式来处理. SQLC…
C:\Users\20160216>mysql -h 10.180.6.183 -u root -pEnter password: ******Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 8095Server version: 5.7.17 MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/o…
修改密码: mysql> grant all privileges on *.* to yongfu_b@'192.168.1.%' identified by 'my_password_new'; 新建用户: mysql> grant all privileges on *.* to yongfu_b@'192.168.1.%' identified by 'my_password_2';…