I have deployed one django application on live IP adress Backend is Mysql running on the same IP.
There is pythoncard(GUI) application installed on some another DNS/Gateway.
I am getting 2003 can't connect mysql server on ...242* while executing.
Grant all and everything done but it is raising the same error. How do I connect to that host through internet or static IP.
HOw to resolve it? Mysql level or application level
Thank you
This is my.conf
[client]
port=3306
[mysql]
default-character-set=latin1
[mysqld]
# The TCP/IP Port the MySQL Server will listen on
port=3306
bind-address = 110.243.143.*** # SERVER IPADDRESS
# skip-networking
#Path to installation directory. All paths are usually resolved relative to this.
basedir="C:/Program Files (x86)/MySQL/MySQL Server 5.5/"
Make sure MySQL is listening on your public IP. You can set this in my.cnf. The property you are looking for is bind-address.
Next, make sure your user is authorized to connect from a remote IP. You can adjust the permissions using the GRANT statement.
Related
despite I've tried everything suggested in the forum I still can't connect to MySQL remotely.
This is my my.cnf file:
[mysqld]
datadir = /var/lib/mysql
socket = /var/lib/mysql/mysql.sock
user=mysql
symbolic-links=0
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
I've tried also adding the line bind-address = 0.0.0.0 but still doesn't work.
Then I deleted it because I've preferred leave the default configuration of my webserver and because I've read that, if is not specified, it is 0.0.0.0 by default.
I have the port 3306 open as you can see from my webmin module:
Linux IPTables Firewall
I've created the MySQL account named 'michele' as you can see from my webimn module User Permissions
and also I granted to michele the permissions for any database Database Permissions
and granted to any host all permissions Host Permissions
To test my remote connection I'm trying to connect from MySQL for excel. that is the error error MySQL fro excel
It is impossible to stabilize the connection. Incorrect response of
the connected party after the time interval or no response from the
connected host MY-IP-SERVER:3306
Also I want to inform you that this is my second attempt to connect remotely. In my first I made it! For a problem that doesn't deal with the remote connection I needed to reinitialize my server and here I am.
The first time I remember that in some configuration file I've put # for comment some line but I don't remember which and if it deal with my problem. Please help me I'm going to be mad!
Michele
I made it!
The problem was for the ipTable rule:
REJECT reject with icmp-host-prohibited
rule
so for solve the problem I deleted it.
on my server shell with root permission:
# sudo iptables -L --line-numbers
find the id rule
and then deleted it:
# sudo iptables -D INPUT 10
Okay I apologize in advance if this seems to be a trivial question but I am new to databases and such so here's my problem.
I have installed xampp and using their MySQL database service. I also able to connect to my database remotely in my network yet I would like to access the database that i have created from another computer out side my LAN. So far i have created a user named "Lester" with all privileges enabled and the host set to "%". In the config file i have it set as follows
# The MySQL server
[mysqld]
user=mysql
port=3308
socket =/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock
key_buffer=16M
max_allowed_packet=1M
table_open_cache=64
sort_buffer_size=512K
net_buffer_length=8K
read_buffer_size=256K
read_rnd_buffer_size=512K
myisam_sort_buffer_size=8M
bind-address = 0.0.0.0
How do i go about connecting outside of my network..
Please specify your ip address in the bind address
bind-address=192.168.1.100
Try and let me know if you are facing any problems.
Goto
http://localhost/phpmyadmin -> user accounts -> Edit privileges -> change login information
change Host drop down to Any host
then restart mysql
reference Link
https://www.hacking-tutorial.com/tips-and-trick/how-to-make-xampp-mysql-database-accessible-by-network/#sthash.11j7Xjht.dpbs
i'm hosting some smaller sites/gameservers on a windows server 2008 R2, and now i can see in my connection log that the database is used more than just local hosted stuff, so i want to limit my mysql to localhost only, and i know by doing that i will not be able to use my "Mysql Control Center" but that is why Xammp is here, there have been "PhpMyAdmin" on it from day one. But how do i make the settings so it is only localhost? and my www.mysqlhostsite.com/phpmyadmin.
Things i got:
Windows server 2008 R2
Mysql
Phpmyadmin
xampp
You can limit connections from a specific address (e.g. localhost) with the bind-address option. Configure this in your my.ini file:
[mysqld]
bind-address = localhost
Alternatively, you can force MySQL to use named pipes (a local-only method for connecting):
[mysqld]
bind-address = localhost
skip-networking
enable-named-pipe
Of course, restart the MySQL Service after editing my.ini.
I am setting up MySQL on an Ubuntu 11.04 Server and had a problem connecting remotely. I changed the bind-address property in the my.cnf file to be the IP address of the server instead of 127.0.0.1 loopback. Now remote connections work fine, but I can't connect to it locally with my local web app. How can I accomplish this? Thanks!
You can comment out or remove the bind-address from your my.cnf if you want mysql to listen on all IP addresses. Restart.
For a test I set up user mysql user with % access. When I try to connect from a remote machine I get:
Enter password:
Then immediately get this:
ERROR 2003 (HY000): Can’t connect to MySQL server on ‘xxxxxxx’ (1)
Any ideas
Verify that you can connect to the mysql port with telnet from that remote machine, e.g.
telnet 192.168.1.52 3306
If that fails, there's a firewall somewhere preventing you to connect, or you're running mysql on a different port than the default(3306) or mysql isn't configured to listen on the interface/ip address (maybe it's just configured to listen on connections from localhost, check the bind-address configuration in the my.cnf config file)
Try to comment the bind-address = 127.0.0.1 in your /etc/mysql/my.cnf
# security:
# using "localhost" in connects uses sockets by default
# skip-networking
# bind-address = 127.0.0.1 --- commented
and watch the results. If not work try to use the IP address and if still not work. roll back the original file.
Can you telnet to the MySQL port 3306? If you can't then check to make sure the MySQL server service is listening on that port. Open a command prompt and type the following example.
Example: telnet yourmysqlservername.com 3306