Quote:
Originally Posted by Yourkind123
Hii! Can anyone please help me set up a MySQL Database?? I have no idea of how!!
|
Feel free to post your problem in your post. It may helping others.
How to Mysql:
1.
Server in Stamm.cfg (Options)
Quote:
// Your Stamm Table Name. It appends '_<serverid>' at the end!
// -
// Default: "STAMM_DB"
stamm_table_name "STAMM_DB"
|
Enter your Stamm Table Name:
first Server with Default is: STAMM_DB
_1 (it will auto add
_1)
below there is a cvar: stamm_serverid "
1".
--
2.
Server in sourcemod/configs/databases
Add:
Quote:
"stamm_sql"
{
"driver" "mysql"
"host" "ServerIP(localhost)"
"database" "Databasename(not Stamm_DB_1 .. the name of the Database)"
"user" "Databaseuser"
"pass" "Databaseuser"
}
|
!!! If the Database and the Server is not on the same host (localhost) your Database have to be extern !!!
3.
On Webserver Server/config.php
Quote:
$servername = ""; // DB hostname
$dbusername = ""; // DB username
$dbpassword = ""; // DB password
$dbname = ""; // DB name
$table = "STAMM_DB_1"; // Name of your Stamm Table
|
(Now you have to enter _1 or the number of your Server(stamm_serverid "
1"))
4. Upload dbsql.sql
You can find this file in the root of the webinterface.zip or on github:
Link
Just go to your Mysql Database Interface, klick your Databasename(If Stamm_DB_x is allready created, ignore it(Dont klick on this, klick on your Databasename). Go on "Import",
simple upload the file.
5. Start your Server
6. Visit your Stamm Page
---------------------
Your Mysql should look like this:
Databasename:
payments
Stamm_DB_1
Stamm_DB_1_Happy
---------------------
If you have any questions , feel free to post it.