时间:2021-07-01 10:21:17 帮助过:8人阅读
最近小学习了一下Mac下的Apache,Mysql,php。这里记录一下,以备忘
在MAMP下测试成功,直接echo返回所数据
Failed to configure for local php debugging
require_once(PRO_ROOT.'/message/pb_message.php');
require_one(PRO_ROOT.'/message_proto/pb_protohbcommand.php');
$l_requestContent = file_getcontents("php://input");
$l_requestCommand = new RequestCommand();
$l_requestCommand->parseFromString($l_requestContent);
echo($l_request->loginRequest()->user_data()->user_id());
alias mysql='/Applications/MAMP/Library/bin/mysql'
2.2.1 Remove this Database
if(mysql_num_rows(mysql_query("show databases like '"."test_database"."'"))==1){
drop database test_database;
}
2.2.2 Create New Database
create database test_database;
2.2.3 Create Table
.....