首页 > 代码库 > linux 允许mysql用户远程访问
linux 允许mysql用户远程访问
搭建服务器。。怎么导入数据库? 直接来个用户吧
数据库名字(已存在): table
创建mysql新用户,并指定数据库,允许远程访问
mysql用户: test
mysql用户密码: test666
CREATE USER ‘test‘@‘%‘ IDENTIFIED BY ‘test666‘; GRANT GRANT OPTION ON *.* TO ‘test‘@‘%‘; GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, RELOAD, SHUTDOWN, PROCESS, FILE, REFERENCES, INDEX, ALTER, SHOW DATABASES, SUPER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, REPLICATION SLAVE, REPLICATION CLIENT, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, CREATE USER, EVENT, TRIGGER ON *.* TO ‘test‘@‘%‘; GRANT SELECT, INSERT, UPDATE, REFERENCES, DELETE, CREATE, DROP, ALTER, INDEX, TRIGGER, CREATE VIEW, SHOW VIEW, EXECUTE, ALTER ROUTINE, CREATE ROUTINE, CREATE TEMPORARY TABLES, LOCK TABLES, EVENT ON `table`.* TO ‘test‘@‘%‘; GRANT GRANT OPTION ON `table`.* TO ‘test‘@‘%‘;
简单粗暴(基础知识我就不啰嗦了,自己网上查)
linux 允许mysql用户远程访问
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。