標籤:MySQ常用操作一、更改MySQL的root使用者密碼1、首次進入資料庫[[email protected] ~]# /usr/local/mysql/bin/mysql -urootWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 2Server version: 5.6.36 MySQL Community Server (GPL)Copyright (c)
標籤:MySQLMySQL使用者管理1.建立使用者:grant命令mysql> grant all on *.* to ‘user1‘@‘127.0.0.1‘ identified by ‘123456a‘;Query OK, 0 rows affected (0.00 sec)測試[[email protected] mysql]# mysql -uuser1 -p123456a -h127.0.0.1Warning: Using a password on the
標籤:zabbix監控多執行個體mysql系統營運工程師 李超1、定義每個執行個體的連接埠cat mysql_port 33063307330833093310 331133123313 2、給所有執行個體建立一個zabbix使用者只允許本地訪問,生產環境具體許可權各位看官自己看著給吧O(∩_∩)OGRANT ALL PRIVILEGES ON *.* TO [email&
標籤:MySQL13.4 mysql使用者管理·建立使用者:grant all on *.* to 'user1' identified by 'passwd';或指定來源ip:grant all on *.* to 'user1'@'ip' identified by 'passwd';mysql> grant all on *.* to '