use mastergoAlter database tempdb modify file (name = tempdev, filename = 'G:db empdb.mdf')goAlter database tempdb modify file (name = templog, filename = 'G:db emplog.ldf')
--重启数据库即可