Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5970

Can't connect to remote mysql database server

$
0
0

I can't figure out why i cant access a remote MySQL server in ubuntu inside a VMware. I already have the codes, and it's successfully connecting to my localhost as well as insert, delete and update of data's. But when I make a new connection string with specified IP server address it show an error:

enter image description here

I can only access the files in that server through SSH and browser (192.168.56.xxx/phpmyadmin).

Here's my code for connection string.

 Dim conn As New MySqlConnection conn.ConnectionString = "Server=192.168.56.xxx;port=3306;User=root;password=mypassword;Database=prodDB_vb" conn.Open() MessageBox.Show("Connection to Database has been opened.") cmd.Connection = conn

I already read a lot of forums about this. But dont understand what they are pointing to.Also i executed the code:

  GRANT ALL PRIVILEGES ON prodDB_vb TO 'root@*' IDENTIFIED BY 'my_password';  FLUSH PRIVILEGE;

The only thing i know is that i cannot find the my.cnf in the server files, but already change my my.ini in my localhost's bind ip address.

  #bind-address="127.0.0.1"

3306 is listening

enter image description here

And i have this in my my.cnf

enter image description here

Why having this error?

enter image description hereAnyone please help.


Viewing all articles
Browse latest Browse all 5970

Trending Articles