摘要: mysql 1449 : The user specified as a definer ('root'@'%') does not exist 解决方法权限问题,授权 给 root 所有sql 权限mysql> grant all privileges on *.* to root@"%" identified by ".";Query OK, 0 rows affected (0.00 sec)mysql> flush privileges;Query OK, 0 rows affected (0.00 s 阅读全文
posted @ 2014-04-07 16:45 程序员X 阅读(207) 评论(0) 推荐(0) 编辑
摘要: $the_host = $_SERVER['HTTP_HOST'];//取得当前域名 $request_uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';//判断地址后面是否有参数 if($the_host == 'xxx.com')//把这里的域名换上你想要的 { header('HTTP/1.1 301 Moved Permanently');//发出301头部 header('Location: ht 阅读全文
posted @ 2014-04-07 12:21 程序员X 阅读(360) 评论(0) 推荐(0) 编辑