首页 / MYSQL / mysql导入、导出 ( 带视图)
mysql导入、导出 ( 带视图)
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了mysql导入、导出 ( 带视图),小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1500字,纯文字阅读大概需要3分钟。
内容图文
1创建账号授权
grant all privileges on jenkinsddbes.* to ‘jenkinsddbes‘@‘%‘ identified by ‘1iN@Da12tA&*ba33gf8‘;
2、导出
mysqldump -u root -p jenkinsddbes > 2018-06-07.jenkinsddbes.sql
3、导入
[root@host-10-1-1-163 ~]# mysql -h 10.1.1.174 -u root -pzihoa@5tgb
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2593
Server version: 5.6.39-log MySQL Community Server (GPL)
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.
mysql> create database jenkinsddbes;
[root@host-10-1-1-204 ~]# mysql -u root -p jenkinsddbes < jenkinsddbes.sql
注意:导入数据库默然是把视图也给到进来了,
4、给视图授权
grant create view on jenkins.* to ‘jenkinsddbes‘@‘%‘;
grant show view on jenkins.* to jenkinsddbes@‘%‘;
GRANT ALL PRIVILEGES ON 用户名.* TO 数据库名@‘%‘ IDENTIFIED BY ‘数据库密码‘;
flush privileges;
5、更改视图的所有者
进入navicat-设计视图-高级-定义者:修改成jenkinsddbes@%
mysql导入、导出 ( 带视图)
标签:NPU 高级 oracl base reg sql ide with gpl
本文系统来源:https://www.cnblogs.com/effortsing/p/10011274.html
内容总结
以上是互联网集市为您收集整理的mysql导入、导出 ( 带视图)全部内容,希望文章能够帮你解决mysql导入、导出 ( 带视图)所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。