修改密码: 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';
默认目录/var/lib/mysql systemctl stop mysqld cp -pr /var/lib/mysql /data/mysql Create a backup of /etc/my.cnf or /etc/mysql/my.cnf(Debian/Ubuntu) ,然后修改 vi /etc/my.cnf datadir=/data/mysql Modify file /etc/apparmor.d/usr.sbin.mysqld (create it if it doesn'
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