MySQL Not working on Ubuntu REP
#1

Im am trying to setup a MySQL Server on ubuntu for my SA-MP Server.
First of all it's nothing to do with the game mode because it all works perfectly locally for me.
Ok this this is what I did
sudo apt-get install mysql-server
I then logged into the server etc
Created my database
Imported the file succesfully
Then put this as my CFG
host=localhost
DB=rp
user=root
pass=mypassword
It says that It failed to connect and is really annoying.
Does anyone have any idea how I can fix this?
+REP If anyone helps.
Thanks!
Reply
#2

You should try installing phpmyadmin, this will help you with your database and user management. But from what it seems, you are having connection issues from the database server to the samp server. Try using your local ip address instead of local host or 127.0.0.1. To get your local ip type ifconfig in terminal.
Reply
#3

Quote:
Originally Posted by jeffery30162
Посмотреть сообщение
You should try installing phpmyadmin, this will help you with your database and user management. But from what it seems, you are having connection issues from the database server to the samp server. Try using your local ip address instead of local host or 127.0.0.1. To get your local ip type ifconfig in terminal.
Your Amazing dude,
Worked perfectly just changed host to 127.0.0.1.
+REP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)