最近小学习了一下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
.....Copyright © 2019- gamedaodao.com 版权所有 湘ICP备2022005869号-6
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务