Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Install database

Junior Spellweaver
Joined
May 23, 2009
Messages
176
Reaction score
46
Hi guys , this is not a really "big tutorial" but I really believe that can be useful for people who are starting with Ubuntu/FW server. So here we go :thumbup1:

1)You need to install mysql-server

Code:
apt-get install mysql-server

2)Then you will need to enable remote connections (in my opinion is better than install phpmyadmin :

But first you will need to know your ip , lets run a ifconfig

hDVuUL1 - Install database - RaGEZONE Forums


As you see my ip is 10.0.0.19

Now we need to run this in the terminal :

Code:
nano /etc/mysql/my.cnf

UVbjzMj - Install database - RaGEZONE Forums


And look for this :

Yeikel - Install database - RaGEZONE Forums


replace bind-adress with your details , as we know my ip in this case is 10.0.0.19

Press Control+O to save

uMrhpnR - Install database - RaGEZONE Forums


Press Enter to save

Yeikel - Install database - RaGEZONE Forums


Now press Control+Z to exit from this editor


3)Now you need to create a new user(is safer than using root because it will prevent future hacking tries, when user is unknow and root only can connect from localhost)

For do this , we need to login to the db using the terminal :

Code:
mysql -u root -p

qpWco6R - Install database - RaGEZONE Forums


It will ask us for the password we set when we installed mysql

tCrXFIJ - Install database - RaGEZONE Forums



In the mysql console , lets first create an user :


Code:
CREATE USER 'user_test'@'%' IDENTIFIED BY 'ragezone';


6lcUxZd - Install database - RaGEZONE Forums


You need to know that @% mean any host , but if you want only to allow the user to connect from an specific host you can do this

Code:
CREATE USER 'user_test'@'here_goes_the_ip' IDENTIFIED BY 'ragezone';

Then press enter and you will receive this msg :

4L0r1A8 - Install database - RaGEZONE Forums


Now we need to create that "powerful" user thats mean able to create,edit,delete databases , tables , users , etc..

So we need to run this :

Code:
GRANT ALL PRIVILEGES ON *.* TO 'user_test'@'%' WITH GRANT OPTION;

Yeikel - Install database - RaGEZONE Forums


Then , lets flush privileges and we are finish

ShdL9km - Install database - RaGEZONE Forums



4) We can connect from any host to the mysql server and we got an user , not lets create the db and import the tables :laugh:

We can use any db editor such as navicat but I preffer SQLyog , you can download it for free at


yJbkYkY - Install database - RaGEZONE Forums


gzj3yH9 - Install database - RaGEZONE Forums



Now lets create the db

NPZwazU - Install database - RaGEZONE Forums


Yeikel - Install database - RaGEZONE Forums

e7zjBpj - Install database - RaGEZONE Forums


And lets go to restore the database :
Yeikel - Install database - RaGEZONE Forums

Yeikel - Install database - RaGEZONE Forums


Db : or see attached

Press "Yes"


Result :

hS92IR9 - Install database - RaGEZONE Forums

FZGnmvr - Install database - RaGEZONE Forums



We are done with the database :thumbup1: . I hope this can help people who are starting or people who are installing it in a dedicated server and dont trust in phpmyadmin :closedeyes:


ps : I am sorry If i have any english mistakes , my mother language is Spanish:blush:
 

Attachments

You must be registered for see attachments list
Back
Top