`
aigo
  • 浏览: 2569270 次
  • 性别: Icon_minigender_1
  • 来自: 宜昌
社区版块
存档分类
最新评论

[UE4]连接MySQL实例

UE 
阅读更多

 

 

原文:
[FREE] VaRest Login System - With PHP and MySQL

https://forums.unrealengine.com/showthread.php?94421-FREE-VaRest-Login-System-With-PHP-and-MySQL

 

Greetings Community,



 

 

I've created an very basic login system with PHP - MySQL - VaRest / UE4.

I share this with you because I didn't see anything for such system in the web and because of that I want to support the community.

 

What you need is :

- Webserver with PHP

- MySQL Server

- UE4.9

- Visual Studio 2013 ( if editor needs to recompile plugin )

 

What to do?

First import the SQL file into your MYSQL Database.

You can write login information into the table.

( Default User is : testuser - testpassword ).

Upload the webfiles to your webserver and change the mysql configuration in config.php.

 

Open the ue4 project and open the game instance. Then change the ServerURL variable * http://[YourHost]/ ( It is important that you make a / on the end and use http:// on the beginning. )

* In version 1.2 http://[YourHost]/api/ ( It is important that you make a /api/ on the end and use http:// on the beginning. )

And now it should work.

 

Tutorial how to setup a webapi on windows:
Unreal Engine 4 - Tutorial - Login System

https://www.youtube.com/watch?v=24NX8tBWKKM

 

Changelog:

V1.2

*Added

Ban System

Basic Webinterface with Registration and Login

 

*Changed

Database Structure

Directory Structure of Webapi

**Please use in Unreal Engine as ServerURL http://(yourserver)/api/

 

NEW:

Download VM with the complete webapi:

http://sparkfire.openapi.devnetworks.xyz/vm/

 

SVN for Webfiles:

https://svn.riouxsvn.com/sf-webapi

 

Download:

Compiled Demo:

https://drive.google.com/file/d/0B3U...94alpjMXc/view

 

Create Account under:

http://sparkfire.openapi.devnetworks.xyz/?page=register

 

UE 4.9.2

V1.0

https://drive.google.com/file/d/0B3UAvQWtBjZnTnY5QTFrdG93Qjg/view

V1.2

https://drive.google.com/file/d/0B3U...VULW5YRlk/view

 

And if you want to support me:

https://gumroad.com/l/hmKou

 

 

 

P.s. Vladimir rocks!:

https://github.com/ufna

Cheers 

 

  • 大小: 27 KB
  • 大小: 28 KB
分享到:
评论

相关推荐

    c++连接mysql库文件和dll文件

    如果你使用的是AppServ或者其他各种缩减版MySQL,可能会没有库文件和dll文件。 实例:http://blog.csdn.net/open520yin/article/details/8170438

    UE4ServerManager

    7. **多线程和并发**:为了提高效率,UE4ServerManager可能使用多线程技术来处理不同的任务,如同时管理多个服务器实例。理解线程安全、锁和同步原语是必要的。 8. **数据库集成**:为了存储和检索服务器配置、玩家...

    PHP+Mysql+jQuery中国地图区域数据统计实例讲解

    在本实例中,我们将探讨如何使用PHP、MySQL和jQuery实现一个中国地图区域数据统计的应用。这个实例主要关注在网页上动态展示某个产品在不同省份的活跃用户数量,并以颜色编码来表示不同级别的活跃度。 首先,我们...

    jQuery+PHP+MySQL二级联动下拉菜单实例讲解

    本文将通过实例讲解使用jQuery+PHP+MySQL来实现大小分类二级下拉联动效果。 实现效果:当选择大类时,小类下拉框里的选项内容也随着改变。 实现原理:根据大类的值,通过jQuery把值传给后台PHP处理,PHP通过查询...

    jQuery+Ajax+PHP+Mysql实现分页显示数据实例讲解

    本文使用jQuery,结合PHP和Mysql,通过实例讲解如何实现Ajax数据加载效果。 HTML <ul></ul> <div id=pagecount></div> 页面中,#list用来展示数据列表,包括本例要展示的商品图片和标题,#pagecount用来展示...

    php配合jquery实现增删操作具体实例

    注意,`mysql_close` 用于关闭非永久连接,而`mysql_pconnect` 创建的是持久连接。 在PHP中,`mysql_query` 用于执行SQL语句,例如查询(SELECT)、插入(INSERT)和删除(DELETE)。`mysql_num_rows` 返回查询结果...

    PHP+Mysql+jQuery文件下载次数统计实例讲解

    这部分代码会连接到`conn.php`中的数据库,执行SQL查询,并使用`json_encode()`函数将结果转换为JSON。 ```php require 'conn.php'; $result = mysqli_query($conn, "SELECT * FROM downloads"); $data = array(); ...

    jdbc:mysql://localhost:3306/webshopping?useUnicode=truecharacterEncoding=UTF-8

    5. **数据库名称**:webshopping,我们要连接的具体数据库实例。 6. **查询参数**:useUnicode=true&characterEncoding=UTF-8,这两个参数是用来设置字符编码的。 **useUnicode=true** 参数: 此参数告诉MySQL驱动...

    PHP+MySQL+jQuery随意拖动层并即时保存拖动位置实例讲解

    想拖动页面上的层,完全可以用jQuery ui的Draggable方法来...准备MySQL数据表 首先需要准备一张表notes,用来记录层的内容,背景色和坐标等信息。 CREATE TABLE IF NOT EXISTS `notes` ( `id` int(11) NOT NULL au

    jQuery结合PHP+MySQL实现二级联动下拉列表[实例]

    实现原理:根据省份值的变动,通过jQuery把sf_id传给后台php文件处理,php通过查询MySQl数据库,得到对应的地市名,并返回JSON数据给前端处理,即实现联动效果! 为便于讲解,这里直接给出省份:河南省(sf_id=1) ...

    vue2.0 axios前后端数据处理实例代码

    目前主流的 Vue 项目,都选择 axios 来完成 ajax 请求,而大型项目都会使用 Vuex 来管理数据。 前言: 使用 cnpm 安装 axios cnpm install axios -S 安装其他插件的时候,可以直接在 main.js 中引入并 Vue.use()...

    PHP+Mysql+jQuery查询和列表框选择操作实例讲解

    本文将通过一个实例,详细解析如何使用PHP、MySQL和jQuery实现这一功能。首先,我们需要了解基本的HTML结构、数据库表设计以及JavaScript与服务器端交互的过程。 1. HTML表单结构: HTML部分是一个简单的表单,包含...

    如何使用jQuery+PHP+MySQL来实现一个在线测试项目

    那么本文将结合实例给大家介绍如何使用jQuery+PHP+MySQL来实现在线测试题,包括动态读取题目,答题完毕后台评分,并返回答题结果。这是一篇WEB综合应用文章,建议阅读本文的您应该具备HTML,jQuery以及PHP和MySQL等...

    jQuery+PHP+Mysql实现抽奖程序

    本文将采用实例讲解如何利用jQuery+PHP+MySQL实现类似电视中常见的一个简单的抽奖程序。 查看演示 本例中的抽奖程序要实现从海量手机号码中一次随机抽取一个号码作为中奖号码,可以多次抽奖,被抽中的号码将不会被...

    JQuery实现简单的服务器轮询效果实例

    值得注意的是,虽然这个例子使用了SQLite数据库,但实际项目中可能使用MySQL、SQL Server或其他任何支持SQL的数据库。此外,`Result.ashx`处理程序可以根据实际需求进行修改,例如,可以使用其他数据访问层技术(如...

    PHP结合jQuery实现的评论顶、踩功能

    而整个交互过程,开发者可以通过ajax异步来实现,从而...我们先要准备为整个实例运行所需的mysql数据表,实例中需要两个表,votes表用来记录对应文章或评论的用户投票数,并且我们默认写入一条id为1的数据以便演示,vo

    浅谈lumen的自定义依赖注入

    这样,无论何时何地需要TokenHandler接口的实例,Lumen都会自动创建一个MysqlTokenHandler实例。 ```php $app->singleton( App\Contracts\TokenHandler::class, App\Services\MysqlTokenHandler::class ); ``` ...

    Python利用requests模块下载图片实例代码

    MySQL中事先保存好爬取到的图片链接地址。 然后使用多线程把图片下载到本地。 示例代码: # coding: utf-8 import MySQLdb import requests import os import re from threading import Thread import datetime ...

    php+jquery+html实现点击不刷新加载更多的实例代码

    $user = array('demo1', 'demo2', 'demo3', 'demo3', 'demo4'); // 查询SQL,根据$last和$amount获取数据 $query = mysql_query("select * from say order by id desc limit $last, $amount"); $sayList = []; ...

Global site tag (gtag.js) - Google Analytics