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@5tgbmy…
1.查看当前最大允许导入sql文件大小 show VARIABLES like '%max_allowed_packet%'; 2.修改方式 1.永久生效 修改my.cnf文件 vim /etc/my.cnf(如果找不到使用:mysql --help | grep my.cnf) 2.临时生效 在mysql 命令行中运行 set global max_allowed_packet = 2*1024*1024*10 退出mysql命令行,然后重新登录. show VARIABLES like '%…
csv导入: load data local infile 'D:/pcode/shu/data/a.csv' into table a fields terminated by ','; csv导出: select * from b order by trade_dt into outfile 'd://output1.csv' fields terminated by ','optionally enclosed by ''lines terminated by'\r\n'; 标红为变量…
在PowerDesigner中点击DataBase -----------> Generate Datebase -----(可以点击Preview预览sql语句)------->设置sql文件的存放路劲 以及生成文件的名称 ------------------>点击确定即可. 在导出的时候可能会报Generation aborted due to errors detected during the verification of the mod 错误,这时需要在导出页面把把检…
#Warning: Using a password on the command line interface can be insecure.#ERROR 1045 (28000): Access denied for user 'zabbix'@'localhost' (using password: YES) 解决: mysql -uroot -e"delete from user where user=' ';" #删掉空用户 mysql -uroot -e"…