Jump to content

So I'm trying to connect to the database from my main computer but I just get promted with error could not connect, so I Googled this found how to enable remote access. Did this and yet still not working.

How do I do this? I'm still local just from another computer.

Back-end developer, electronics "hacker"

Link to comment
https://linustechtips.com/topic/560644-accessing-mysql-linux-from-another-computer/
Share on other sites

Link to post
Share on other sites

Just now, MagnesiumPC said:

PuTTY into the computer.

 

(As long as you are on the amd network, it should be easy)

I have a program to fill inn the tables easyer which need access.

Back-end developer, electronics "hacker"

Link to post
Share on other sites

1 minute ago, MagnesiumPC said:

No... I have a Program on my Computer that needs access to my server's Database.

My Computer is 30 Cm away from me, the server is 7 M away from me.

Back-end developer, electronics "hacker"

Link to post
Share on other sites

1 minute ago, MagnesiumPC said:

Just setup a network share then. 

The program connects to MySQL and edit Tables using a user.

I need access to login with a user.

Back-end developer, electronics "hacker"

Link to post
Share on other sites

Just now, MagnesiumPC said:

Setup a network share.

 

your program should be able to access it through the share.

Isent there a way to access the database other ways? I might move some of my other servers to use it but they are outside my network.

And I would like to be able to use my Program when I'm at school in the freetime

Back-end developer, electronics "hacker"

Link to post
Share on other sites

1 minute ago, Joveice said:

Isent there a way to access the database other ways? I might move some of my other servers to use it but they are outside my network.

And I would like to be able to use my Program when I'm at school in the freetime

What program are you using?

Link to post
Share on other sites

5 minutes ago, MagnesiumPC said:

What program are you using?

Custom program that basicly just connects to it and uses a GUI (kinda like phpmyadmin)

https://rocketmod.net/viewtopic.php?f=39&t=862

Tryed to do this tut http://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html

Back-end developer, electronics "hacker"

Link to post
Share on other sites

Open /etc/mysql/my.cnf and find the line that says

bind-address           = 127.0.0.1

Change 127.0.0.1 to the internal IP address (192.168.*) of that server, or 0.0.0.0, and restart mysql (sudo service mysql reload). Make sure you have a password set, because anyone on the network will be able to access it.

HTTP/2 203

Link to post
Share on other sites

Just now, MagnesiumPC said:

You are trying to access a database.....

 

And from what I can tell, the .sql file is what you want to changes.

Databases aren't stored in .sql files, and they can't just be edited remotely. You have to connect to the mysql daemon and run the SQL commands through there.

HTTP/2 203

Link to post
Share on other sites

Actually this dident work compleatly, I could connect to it no problems there, Tho now when i whent to phpmyadmin i couldent log in

so I reverted the changes restarted and I still cannot log in

Back-end developer, electronics "hacker"

Link to post
Share on other sites

5 minutes ago, Joveice said:

Actually this dident work compleatly, I could connect to it no problems there, Tho now when i whent to phpmyadmin i couldent log in

so I reverted the changes restarted and I still cannot log in

What did you set it to? 0.0.0.0 should work, though it's possible that the actual IP address might not (it does for me though).

You did remember to restart mysql, right?

HTTP/2 203

Link to post
Share on other sites

Just now, colonel_mortis said:

What did you set it to? 0.0.0.0 should work, though it's possible that the actual IP address might not (it does for me though).

You did remember to restart mysql, right?

Yea I set it to 0.0.0.0 and then restarted. found out that I couldent log in with phpmyadmin so I set it back to 127.0.0.1 and restarted and still cannot cannot log in

Tho the program worked with 0.0.0.0 but phpmyadmin stopped working

Back-end developer, electronics "hacker"

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×