#How to set up mysql for a ubuntu server?

75 messages · Page 1 of 1 (latest)

regal marsh
#

I have a remote server and I am trying to get mysql working on it, but so far no success. I made a sql 5.7.32 server on my pc and I have mysql downloaded on the host server, but I dont understand what I need to do now. I can connect to mysql on my pc using heidsql, but I dont understand if I need to connect to the host pc ip, because that isnt working for me

pulsar river
#

Because that will cause latency to be high. And might cause lag

regal marsh
#

How can I go about doing that?

pulsar river
#

Well

#

Google "how to install mysql server ubuntu xx.xx"

#

Replace the x with your ubuntu version

#

Also to allow remote connection you will need to edit the mysql config file and make a user that can connect from anywhere

regal marsh
#

is 9.1 a valid version?

#

or is it 10.3

pulsar river
#

Write
lsb_release
In the ubuntu console

regal marsh
pulsar river
#

It is most likely 20.04

regal marsh
#

a ubuntu is 20.04 yes

#

i tought you meant mysql version

pulsar river
#

I meant ubuntu

#

Latest mysql might be 8.something

regal marsh
#

I get this error

#

I tried downloading mysql before aswell

#

and got the same problem

#

I am pretty sure I alr have mysql

#

but I dont know what I need to do with the mysql do get it working with the plugins

pulsar river
regal marsh
#

How i tried finding a way but didnt find anything useful

frigid bridge
#

you can always try to classic one

#

known as "yeet the server (and start over)"

regal marsh
#

did that

#

got further now

#

what to I need to set here

#

ik the ip alr

#

but where can I find what should go in the other fields?

regal marsh
#

so I switched to one with no added programms

frigid bridge
#

who'd have thought that the LAMP stack contains MySQL GrieferThonk

regal marsh
regal marsh
frigid bridge
#

that's about it

regal marsh
#

do i make them up myself?

#

or are they linked to something

frigid bridge
#

well, you'd first want to create an user

regal marsh
#

using this?

#

CREATE USER 'sammy'@'localhost' IDENTIFIED BY 'password';

#

and to I just put what ever password and name?

#

and replace localhost with ip

regal marsh
#

@frigid bridge

frigid bridge
#

well yes

regal marsh
#

I am supposed to use ipv4 right in the command, because thats what I did

#

ok got it working

pulsar river
# regal marsh

If you want any IP to be able to connect you can use % instead of the IP

regal marsh
pulsar river
#

They should get generated

#

Check logs

regal marsh
regal marsh
#

do i remove the uconomy file and try again?

regal marsh
#

tried it it only created the same files again

#

no item or vehicle shop

frigid bridge
regal marsh
#

I am using local

#

Just remote accessing it trough my pc

#

But why doesnt it generate the item and vehicle shop sql files

#

When it does generate the uconomy file

regal marsh
#

<DatabaseAddress>127.0.01</DatabaseAddress>
<DatabaseUsername>root</DatabaseUsername>
<DatabasePassword>my password here</DatabasePassword>
<DatabaseName>unturned</DatabaseName>
<DatabaseTableName>uconomy</DatabaseTableName>
<DatabasePort>3306</DatabasePort>

frigid bridge
#

is there an actual root user set?

regal marsh
#

yes

#

how else did it create the first file?

frigid bridge
#

for the mysql instance

#

why add more users if you'll just use root regardless?

regal marsh
#

to remote access

#

I got my pc and the server is a vps

#

but how can I get the uconomy to work