1.service mariadb status/start/stop/restart
一系列的mariadb的常用命令
2.新增一个yangsf的用户,密码是yangsf,可以从本机或者任何一台机器上连接
GRANT ALL PRIVILEGES ON *.* TO ‘yangsf‘@‘localhost‘ IDENTIFIED BY ‘yangsf‘ WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO ‘yangsf‘@‘%‘ IDENTIFIED BY ‘yangsf‘ WITH GRANT OPTION;
时间: 2024-11-04 23:07:40