• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[8.6] The forgotten server 0.3.6 V8.2 [Crash, need help]

blurais

New Member
Joined
Jul 23, 2013
Messages
8
Reaction score
0
i had downloaded [8.6] The forgotten server 0.3.6 V8.2 and It's my first ot, i had modified the config.lua archive to put all the things that http://otland.net/f479/your-first-open-tibia-server-140934/ this tutorial said, but when i open the .exe file (TheForgottenServerV8.2 64bit) it crashes, well a image means more than words...


ozqk8.png



My SO is win 7 ultimate x64.

Thanks!
 
i tried all u said, but it doesn't work, i can see that is a problem when the server try to connect with MySQL, so i verified all, i did all again and it doesnt work...

another thing it says #1142 - SELECT command denied to user ''@'localhost' for table 'pma_table_uiprefs', when i try to enter in the account table.

before that i had this problem http://otland.net/f16/phpmyadmin-error-1142-a-165746/ but i solved changing the recently tables used to 0
 
You have not included the PHP tag for this and it sounds like you're trying to use PHP connection code to access a MySQL database. You need to first understand a couple concepts with your server environment.

Your Server is the computer running the software
Your Database Server is MySQL (software running on the computer)
Your Host is the IP address or HOSTNAME of the computer (i.e. localhost or 127.0.0.1)
Your Database Name is the name of the database you create (I'll get to that)
PhpMyAdmin is a web-based application that allows you to manipulate your MySQL database
Okay let's start with PhpMyAdmin and creating your first database:

If you click the "house" icon on the left you will be on the home screen and you will see a form field in the main content area you can type in a database name and "Create New Database" then click "Create". Type in myfirstdb if that is the name of the database and click "Create"

This will refresh the column to the left and there is a drop-down (combo) menu that displays the database names (like the ones you mentioned). You should now see myfirstdb listed there too. Select it.

Now you will see very little content but in the right main content area at the bottom is a form field that allows you to create a table name and determine how many fields it has. Type in users and select 4 as the number of fields. Then click "Go" to the far right.

A form displays 4 rows and you must name your fields (columns) and I suggest you name the following and choose the following data types:

id INT AUTO_INCREMENT
name VARCHAR(48)
username VARCHAR(24)
password VARCHAR(24)

be sure to check the small key icon next to the id field to declare it as primary key. Then click "Go" to create your table users.

Congratulations, you've created your first table. Now if you're feeling brave, you could skip these steps and click the "SQL" tab in PhpMyAdmin and paste the following SQL code and it will create the table as well:

CREATE TABLE users (id INT AUTO_INCREMENT, name VARCHAR(48), username VARCHAR(24), password VARCHAR(24), PRIMARY KEY (id));
The code you were trying in your question is PHP code to connect to a database. Here is an example of a proper connection assuming you followed the instructions above:

<?php
// Make a MySQL Connection
mysql_connect("localhost", "user", "pass") or die(mysql_error());
mysql_select_db("myfirstdb") or die(mysql_error());

// Retrieve all the data from the "example" table
$result = mysql_query("SELECT * FROM users")
or die(mysql_error());

// store the record of the "example" table into $row
$row = mysql_fetch_array( $result );

// Print out the contents of the entry
echo "Name: ".$row['name'];
echo "User: ".$row['username'];
echo "Pass: ".$row['password'];

?>
Note that we have not stored any data into your table, so you can click the "Insert" tab in PhpMyAdmin for that selected users table and insert rows, or you can insert them using SQL. Example SQL to insert a couple users (click the SQL tab and paste this):

INSERT INTO users VALUES (1, "My Buddy", "user1", "password1"), (2, "My Enemy", "badguy1", "password2");
From here you really need to read some tutorials online step-by-step to create an application. Your login script will require HTML programming for your form, then PHP programming to receive the form submission, then PHP + SQL programming to check the user against the database. Search for an example and use these basics to create what you need.
 
This is the server edited by Cyko, he made something weird hopefully he will fix it soon. Use another server
 
Back
Top