mysql新版本和以前的版本有些区别:
mysql 8
CREATE USER 'seafile' IDENTIFIED BY 'Passw0rd';
GRANT ALL ON *.* TO 'seafile'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
ALTER USER 'seafile'@'%' IDENTIFIED WITH mysql_native_password BY 'Passw0rd';
mysql 8
如果使用以前的赋予权限命令会报下面的错误:
mysql> grant all privileges on *.* to seafile@'localhost' identified by 'Passw0rd';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'identified by 'Passw0rd'' at line 1
mysql 8以前的版本
CREATE USER 'seafile' IDENTIFIED BY 'Passw0rd';
grant all privileges on *.* to seafile@'localhost' IDENTIFIED BY 'Passw0rd';
grant all privileges on *.* to seafile@'127.0.0.1' IDENTIFIED BY "Passw0rd";
grant all privileges on *.* to seafile@'%' IDENTIFIED BY "Passw0rd";
FLUSH PRIVILEGES;
grant all privileges on *.* to seafile@'10.47.0.238' IDENTIFIED BY "Passw0rd";
grant all privileges on *.* to seafile@'10.47.0.238' IDENTIFIED BY "Passw0rd";
grant all privileges on *.* to seafile@'%' IDENTIFIED BY "Passw0rd";
FLUSH PRIVILEGES;
最新评论
网飞没问题, 迪士尼+有解决方案么?
pp助手是安卓手机用的,根本下载用不来苹果
已解决
这样的话数据库里的结构为{"attachment":{"content":"xxx"}}, 要怎么才能变成{"content":"xxx"},从而使结构保持一致?
赞! make test不过的坑都写到的,谢谢楼主~
谢谢你
用了root用户还是一直502是怎么回事呢
student id 是空的