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@%

最新文章

  1. 关于SIGSEGV错误及处理方法(转)
  2. HTML5音频视频-视频播放
  3. Unity jounal 2016-3-3
  4. 应对Memcached缓存失效,导致高并发查询DB的四种思路(l转)
  5. django 动态更新属性值
  6. paip.信用卡账单处理分类bug o21
  7. JavaWeb学习记录(十九)——开发JSTL自定义标签
  8. kruskal --- c++ (2)
  9. oracle 中proc和oci操作对缓存不同处理
  10. [每日一题] 11gOCP 1z0-052 :2013-09-4 block header grows............................................A33
  11. 使用virtualenv隔离python环境
  12. Facebook发布C++ HTTP框架Proxygen
  13. Linux下搭建Nginx+MySQL+PHP
  14. jquery中动态新增的元素节点无法触发事件解决办法
  15. id 生成器介绍
  16. javascript设计模式——职责链模式
  17. 基于协程的Python网络库gevent
  18. 记一次AngularJs 路由 $stateChangeStart不起作用(细节决定成败)
  19. Struts2把数据封装到集合中之封装到map中
  20. mac下/usr/local/bin No such file or directory问题解决

热门文章

  1. 23 export default和export的使用方式
  2. Java8新特性--CompletableFuture
  3. js中数组元素的添加和删除
  4. 学习了武沛齐讲的Day11-完
  5. hash 算法
  6. PostgreSQL 使用PG_Rman进行物理备份
  7. Mina整体体系结构分析
  8. [Luogu] 货车运输
  9. wepy小程序项目
  10. Storage Port Drivers