Remote Backup MySQL database with routines unsuccess -


mysqldump -u root --password=123456 -h 110.4.43.111 --databases db_shuttlebus --routines --lock-tables=true --result-file=d:\server-backup.sql 

everything has backuped, routines not backuped, why? wrong command?

in routines have function, can't backuped.

enter image description here

update

delimiter ;; /*!50003 create*/ /*!50020 definer=`root`@`localhost`*/ /*!50003 procedure `generateroutefare`( proute_id int ) begin -- set sql_safe_updates=0;  -- delete tbl_rate route_id = proute_id;  insert tbl_rate (route_id,from_locationid,to_locationid,normal_rate,discounted_rate) select     a.route_id,      a.route_locationid from_loc_id,     b.route_locationid to_loc_id,     0,0  tbl_route  inner join tbl_route b on a.route_id = b.route_id , a.route_seq < b.route_seq , a.route_id = proute_id inner join tbl_location la on la.location_id = a.route_locationid inner join tbl_location lb on lb.location_id = b.route_locationid not exists(select rate_id                     tbl_rate                    tbl_rate.from_locationid = a.route_locationid , tbl_rate.to_locationid = b.route_locationid , route_id = proute_id) order a.route_seq, b.route_seq;  -- delete  delete    tbl_rate   rate_id in (   select rate_id       (  select * tbl_rate  route_id= proute_id , concat(from_locationid, ',', to_locationid)  not in  (select concat(a.route_locationid,',', b.route_locationid) locname tbl_route  inner join tbl_route b on a.route_id = b.route_id , a.route_seq < b.route_seq , a.route_id = proute_id)     ) q ); end */;; delimiter ; 


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -