作者:花痴-耐你们_304 | 来源:互联网 | 2023-06-18 11:03
mysqlcreateuseradmin@%identifiedby123456;QueryOK,0rowsaffectedmysqlFLUSHPRIVILEGES;Query
mysql> create user 'admin'@'%' identified by '123456';
Query OK, 0 rows affected
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected
mysql> grant all privileges on *.* to 'admin'@'%'identified by '123456';
Query OK, 0 rows affected
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected
mysql>