Настенный считыватель смарт-карт  МГц; идентификаторы ISO 14443A, смартфоны на базе ОС Android с функцией NFC, устройства с Apple Pay

Mysql connection refused

Mysql connection refused. Learn more about Teams No connection could be made because the target machine actively refused it Nov 15, 2016 · The ' [2002] Connection refused' means you can reach the database server, but you don't have right access for the user (in your case admin). Feb 24, 2014 · It could not connect to the server because the MACHINE (not the server) refused it, so, it was more likely to be a network issue or some other thing. Giving up. How should I check the settings? MySQL server: ubuntu 18. Starting with MySQL 5. php on line 8 Connection failed: No connection could be made because the target machine actively refused it. Log in to the server via SSH; May 16, 2024 · The best way to ensure DNS is not preventing the localhost connection is to clear (flush) the DNS cache and remove all saved DNS lookup information. 7 + php-fpm 7. 22 installed on my Mac OS 10. ini file and set. Looking at your docker-compose. Aug 2, 2021 · For anyone else who encounters: "Connection refused", the solution that worked for me was adding the following to the my. If you don't want to set the DB port like in @kotapeter's answer, you can instead invoke artisan through docker by running: $ docker exec -it <name of container> php artisan migrate. Add two properties: useSSL and allowPublicKeyRetrieval. exe whilst running ran mysqladmin. Nov 2, 2016 · Caused by: java. I tried different settings, but without any result. Check the server status, port, socket, firewall, grant tables, password, and upgrade procedure. Viewed 10k times 1 i have a docker-compose with a mysql service, it work Feb 28, 2017 · None of the other answers worked for me. Nov 18, 2013 · 20. It's embarrassing. I don't know if it's cache related. cnf configuration file (add a # at the beginning of the lines), and restart MySQL. 1, 127. yes, only allowing access on the socket is what "skip-networking" does. jdbc4 Mar 19, 2019 · mysql container connection refused. Check the 'skip-networking' setting in the MySQL configuration file (my. g. dial tcp 127. 1 You should comment them In your my. The steps for flushing the DNS vary depending on the OS in use: To flush DNS on Linux, execute the following command: sudo /etc/init. Moreover, I can connect using MySQLdb on Python 2 with nearly the same code: 防火墙(Firewall)错误. 12 32bit I migrated to this server/setup about 2 weeks ago. If connections were 'being refused' there would be no 'stream' to 'read past the end of'. (111 "Connection refused") the server is either not running, or not running on the specified port, socket or pipe. 1 telnet: Unable to connect to remote host: Connection refused My next step was to see if port 3306 was listening at all. A Unix socket file connection is faster than TCP/IP, but can be used only when connecting to a server on the 总结. 1'. Adding this solved the issue: [mysqld] bind-address = :: Not sure why it was not added by default. mysql – Gocht Jul 13, 2016 at 19:17 May 22, 2023 · Docker runner - service mysql Connection Refused from CI Select Topic Area Question Body Hi, Github Runner is with container install. sudo ufw allow 3306/tcp. However, what I had done is chosen the stronger password encryption when I upgraded MySQL. Resolution. The config. It create service mysqld database in container. cnf is located in your machine: Secondly, Make sure there is no ip's in /etc/hosts. Jun 27, 2015 · Connect and share knowledge within a single location that is structured and easy to search. 1 LTS vps. connect(host="192. Try making sure your firewall if open to connections on port 3306. backends. docker. cnf in a text editor; Change the bind-address = 192. Finally restart MySQL. TCP refused the connection. None of the answers here really helped me fix the problem, what helped me is shared below: I looked at the mysql logs. tables where table_schema = form and table_name = migrations) and [PDOException] SQLSTATE[HY000] [2002] Connection refused Jun 2, 2017 · Make sure that the server is running. For root user, AFAIK it is not allowed (by default) to connect to mysql DB remotely as root. cnf file on my WSL: `[mysqld]'`enter code here` `port=3306 # or any other port` `bind-address=0. If it is not, clients cannot connect to it. To make a connection to databases from IJ you need to configure data sources first. 6, works fine from the command line. pymysql. d/nscd restart. Click on Connection properties. Be careful with that, if your MySQL machine is accessible from public Internet will be accepting connections from everybody! The next step is to try to connect to mysql using mysql client: $ mysql -u user -p -h your_server_ip. Sep 24, 2015 · or. At 5. sail up -d. Today I installed MySQL Server, MySQL Workbench and MySQL Notifier. 64. Hot Network Questions Orderings in Philosophy Aug 15, 2016 · ~I'm trying to connect to the mysql via my website with php but says Warning: mysqli::mysqli(): (HY000/2002): No connection could be made because the target machine actively refused it. The problem is that your go code can't resolve the mysql address, as it's not being deployed in the compose file. 5, the table performance_schema. Port 3306 is open, even if I stop the windows-firewall, MySQL still can't access it. In case anyone else comes by this issue, the default port on MAMP for mysql is 8889, but the port that php expects to use for mysql is 3306. Jun 15, 2018 · First of all, using localhost as a domain name is not supported in PHP. Then you should be able to connect :) If you share your docker file or docker-compose, i will be happy to assist with the command. Aug 12, 2018 · Connection failed: Connection refused mysql (LAMP) 0. Step 1: Turboshooting: Try to run springboot appliction in you machine, outside container. exe -uroot -p. 通常在Ubuntu服务器上使用以下命令打开端口:. 1 for Linux on x86_64 ((Ubuntu)) on my Ubuntu 20. By default mariadb have a root user with the password given by MYSQL_ROOT_PASSWORD and this user can connect from any server (%). If works fine, then there is no issue your application. Note that the reason to use :: over 0. answered May 9, 2018 at 13:31. 10. Change localhost to XAMPP IP address work for me. Share. d B) Lamp being installed at /opt/lamp Solution : Step 1 :- Find all mysql running instances using commnad "find / | grep mysqld" Step 2 :- Shutdown the services running at /etc/init. 在Linux服务器上,通常使用防火墙来设置入站和出站规则。. This was the problem, not the localhost config. You can also also move MySQL inside a container running on the same Docker network, and then access it via the container name using Docker’s DNS service Jul 10, 2021 · Also try using telnet (or nc) on the app container and test connectivity to the mysql pod (something like nc test-db 3306 and make sure the server responds. On the Connection settings screen (main screen) click on Edit Driver Settings. Figure A. Sep 10, 2019 · Somehow the connection to the database is refused, and I have indeed changed my DB_HOST and it didnt change anything. this idea. error: [Errno 111] Connection refused. mysql> prompt: mysql> CREATE DATABASE foo; mysql> GRANT ALL ON foo. So you need to open MAMP, go to preferences, and change the MAMP mysql port to 3306, then restart the mysql server. May 24, 2020 · Attempted reconnect 3 times. You should check the box that says Configure MySQL Server as a Windows Service as follows: Create a MySQL service and set the service name here. For example: Dec 3, 2015 · 12. The command should be ipfw set enable 3306, but if you want you can read more about actually setting the firewall permissions. Trying to add the line bind-address=0. php can point to either 'localhost' or '127. 7. net. ) Case sensitivity: plain=mixed, delimited=exact Connection refused: connect. I read the answers about 3306 from a question posted in 2009. I get this email every half an hour. [client] port=3306. Learn more about Teams Get early access and see previews of new features. 1:3306 inside basic mysql_connect() Created tmp/mysql. 0 into /etc/my. Check the hostname and port that you are using to connect to the database server. Make sure you are using the correct host, port, pipe, socket and protocol options, or alternatively, see Getting, Installing and Upgrading MariaDB, Starting and Stopping MariaDB or Troubleshooting Installation Issues. 04 LTS Linux to make sure the service restarts in case of a failure or reboot. Dec 30, 2021 · I'm running Plesk, on Cent OS, which uses a MySQL DB (Maria), which I normally connect to using PHPMyAdmin using the Plesk interface. – Apr 1, 2015 · In my case MySQL sever was not running. --name container --net host container. com). Enter the password for root user. $> mysql. OperationalError: (2003, "Can't connect to MySQL server on 'localhost' (111)") I'm sure mysqld is running because I can connect using mysql command or phpMyAdmin. 如果防火墙不允许连接到MySQL连接端口,则连接将会被拒绝:. 1) can see it. What is the address of your localhost? Also, what pot are you using for your MySQL server? I use port 3306 and the address of my localhost is 127. I have a laravel installation on my macos, and MAMP running mysql, i know i have all the info right in the . When a connection is attempted to an IP:port where nothing is listening, the response from the remote system to the initial SYN packet is a packet with the flags RST,ACK set. cnf and restart container and the issue is still the same. 1 might not work in servers with multiple interfaces or with special routing rules. If you want to add a new database called foo for user bar and remote IP 202. This closes the connection and causes the Connection Refused message e. Bye. Possible solutions include changing bind-address, firewall settings, or user permissions. 2 Can't connect to [local] MySQL server. mysql being binded to 127. 04 and I'm using Jetbrains' datagrip. sock), or by using TCP/IP, which connects through a port number. Voilà, now you can start your service on localhost and make sure you enter correct root/user password on your MySQL Workbench, and you are good to go. Jun 29, 2019 · Actually this is the first thing I tried as I said in the question < I tried 172. PHP Mysql database connection being refused. Connect and share knowledge within a single location that is structured and easy to search. env file, the ports are right, the user is right, the database exists, the admin and pass 遇到“Connection refused”错误怎么办? 在使用docker-compose时,通常会遇到“Connection refused”错误。以下是可能的原因: 端口映射不正确,应将MySQL容器端口映射到主机的正确端口。 主机防火墙阻止了MySQL容器通过指定端口进行连接。 Problem Description Spring Boot(app) container cant connect to "mysql" container Problem Output Caused by: com. db = pymysql. May 11, 2018 · To narrow down the problem, you can try to establish a connection from within the PHP Container via Netcat to your given DB Host. it's on ubuntu 20. Feb 15, 2018 · Within the DBeaver main window click the New Connection Wizard button (below File– Figure A ). cnf (on Ubuntu again is located in /etc/mysql/my. Edit the /etc/my. sock file (in case dir + file not existing matters) Commented out skip-networking in my. For example you can try to establish a connection with the following commands: Get into the container from which you want to test the connection. This is my Dockerfile: Copy We would like to show you a description here but the site won’t allow us. ConnectException: Connection refused (Connection refused). Cause. php file: Jun 26, 2013 · mysql via PHP reports: Connection refused with mysql_error() call. I've run netstat firewall xxxxxx and get these results: 3306 TCP Enable MySQL Server and this from netstat -a -n: Jun 8, 2016 · 1. docker exec -it <name_of_container> bash. 20. X. Check the IP address in the connection string or use the database’s hostname. To fix this issue the first thing to do is: Add the following code to wordpress & database containers (in the docker-compose file): restart: unless-stopped. I tried to find the answer on the Internet, but it didn't work. ERROR 2003: Can't connect to MySQL server on 'host_name' (111) $> mysql. I can connect to that localhost:3306 with the MySQL Workbench and with it I created new users. Change the settings on Dbeaver: Right click your connection, choose Edit Connection. I have MySQL 8. db. Make sure that you are using the correct hostname and port for the database server. Oct 4, 2022 · Connection Refused (IP Address) You use the wrong IP address in the connection string. Sep 1, 2023 · The issue is here: - PWA_HOST=localhost. 54. There is no MySQL server on localhost. Just right click on wamp-> select tools. If you configured data sources from IJ folder then a new version of IJ might contain newer versions of libraries and you should recreate you DS after upgrade. " A MySQL client on Unix can connect to the mysqld server in two different ways: By using a Unix socket file to connect through a file in the file system (default /tmp/mysql. php configure the MySQL part: Mar 28, 2020 · Unfortunately it seems that WSL cannot reach the MySQL server: $ /mnt/c/Program\ Files/MySQL/MySQL\ Server\ 5. Create a new user with CREATE USER test IDENTIFIED BY "testpass";. #skip-networking. When you’re done, click on Next and then click on Execute to run the changes. $ mysql -uroot -p --protocol=TCP. 04; dev machine: macOS catalina Learn how to troubleshoot the error (2003) Can't connect to MySQL server on 'server' (10061) that indicates the network connection has been refused. sock ), or by using TCP/IP, which connects through a port number. Apr 24, 2020 · Case 1 - JDBC connects as [email protected] but privilege is not granted:. look for bind-address=YOUR-SERVER-IP and comment it out. 23-0ubuntu0. 168. cnf. under Port Used By mysql:3308 clcik on "use a port other than 3308 Apr 28, 2010 · Connection History: Percentage of refused connections) - 66. Hot Network Questions Representing multiple alternative ASTs in one structure Help! Need to straighten new Ethernet cord Double click on the MySQL row to open a pop-up. All the login details etc, are correct and should be working. I do not know what it is, but I solved it with the 'docker system prune' command. – user207421. X to bind-address = 127. 3. Aug 24, 2016 · It shows Connection refused. $ sudo tcpdump -n host 192. If MySQL is listening to LAN IP, change it back so it listen to the localhost. Mar 2, 2023 · laravel connection refused with mysql database in cpanel. Jun 11, 2012 · Reading past the end of stream has nothing to do with 'connections being refused'. 1:3306: connect: connection refused. jdbc. As during development I also need to access data from my production db. When I start the MySQL Server a connection is getting created automatically at localhost:3306 with user root. Till yesterday I was able to connect to phpMyAdmin, but today I started getting this error: 2002-no-connection-could-be-made-because-the-target-machine-actively-refused. 0, since MySQL decides the connection type based on host, so it could lead to unexpected results. Then restart docker engine. Another thing could be to make sure MySQL is listening on port 3306, edit the my. Use the database’s private IP address in the connection string and try to connect from a Droplet that isn’t allowed to access the VPC network. Create a new database with CREATE DATABASE mydatabase;. We recommend using the hostname May 18, 2017 · Then, you can use the root user you just configured or create a new one to use in your project. ini on Windows, my. in C:\xampp\htdocs\test. 8 all works fine, but with same settings Laravel 6 doesn't connect to DB. deny ( This can be root cause for connection in many cases) Thirdly, Create a user with ALL privileges like : Dec 20, 2021 · Short answer: you need to run the docker container with the port specified like so: docker run -it -p 3306:3306 mysql. May 14, 2014 at 21:17. php artisan migrate and got these errors: [Illuminate\Database\QueryException] SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema. exe in cmd which returns 'Can't connect to MySQL server at 'localhost' 114. Oct 27, 2013 · OK: you've clarified 1) you're running on Windows, 2) your client is co-located on the same host with mySql, and 3) the same configuration works on the same PC with Apache + mySQL. log] It said Dec 25, 2022 · (Docker+SpringBoot+Mysql) Mysql connection refused. Check the server status, port number, firewall, socket file, and other possible causes. I have the same problem, but the answers I read didn't help. I would suggest a simple solution. Edit: Permissions seem quite fine: Dec 28, 2017 · 1. Jan 27, 2017 · The fast workaround for this is to run your container on the host network stack with: docker run -tid -v $(pwd):/code -p 3306:3306 -p 5000:5000 \. 7/bin/mysql. Select Log on as: " Local System account " and check " Allow service to interact with desktop ". Enter password: ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (111) On ifconfig I only have two interfaces eth0 and lo, so Apr 12, 2017 · Here is the solution for accessing mysql db from a remote machine: Firstly, In your /etc/my. MySQL is running. *. Why can't connect to mysql? Hot Network Questions Sep 13, 2021 · In the reconfigure wizard panel, click on Next until you get into the Windows Service section. cnf on Unix/Linux). If you have lines like this : skip-networking bind-address = 127. Load 6 more related questions Show fewer related questions Sorted by: Reset to Oct 20, 2020 · I'm tring to set up phpmyadmin on my mac, mysql already running on my mac, but I got mysqli::real_connect(): (HY000/2002): Connection refused error, anyone knows how to fix it, thanks config. Now the connection should be successful with host=localhost, user=root, pass=root. 连接被拒绝是node-mysql中常见的错误之一,通常是由于错误的配置项、未启动MySQL服务器、服务器绑定地址错误或防火墙设置不正确造成的。. $ telnet localhost 3306 Trying 127. But here is the problem: I used MySQL and created and ran. Learn more about Teams ERROR 2003: Can't connect to MySQL server on 'localhost:3306'(111 "Connection refused") Feb 29, 2020 · I used XAMPP 8 and connection to MySQL keep refuesed (errno 61). internal to localhost) Step 2: Please expose your DB port, that is 3306 by Apr 1, 2014 · 0. Now I'm trying to connect to it using this POPSQL, but I've not been able to connect remotely using any applications. Modified 3 years, 2 months ago. Solution: Go to the Server > MySQL tab and make sure that "Allow local access only" is not checked Click the apply button and everything works fine. It is just a matter of changing the port user by mysql:3308 to 3306. If you get access denied error, you need to make sure you are connecting with the correct username/password. This also fixed the telnet: mint@mint-VirtualBox ~ $ telnet 128. Jul 6, 2021 · I'm trying to connect my MySql running on my VPS (let's say hostname db. Aug 2, 2022 · Learn how to fix common errors when connecting to MySQL server, such as connection refused, access denied, or authentication protocol mismatch. Spring boot app not able to connect to mysql database running in docker container while running as a container. 14. I restarted the MySQL server and issue was resolved. 0 is that :: works for IPv6 too ( mentioned in mySQL manual, but not mariaDB manual). For testing purpose I also set the password to be root. It is possible that your mysql CLI is connecting via Unix domain socket (as root@localhost) while your Java application attempts to connect via TCP (as [email protected]) but privilege is not granted. Nov 30, 2022 · Connect and share knowledge within a single location that is structured and easy to search. 67% the percentage is not important, this is just about having refused connections. The problem was that it was only letting me directly access the socket. Also check the port you are connecting to and which port is mysql running. 以上是几种解决方法,希望可以帮助到大家。. Incorrect permissions for /var/lib/mysql/ directory and its subdirectories. 4 JDBC driver I believe) Java 1. 1. 1 and port 22222 Jul 26, 2019 · Take the ":3306" out of the "host" line - mysql connector is adding the port in itself leading to an invalid address. Viewed 4k times 0 I want to connect python with Regarding the "connection type" setting: "Deprecated since version 4. I use Nginx + MySQL 5. d/mysql start To avoid MySQL stop problem, you can use the "initctl" utility in Ubuntu 14. A datasource contains a path to the library with drivers needed to make a connection to the server. 199. 1. May 14, 2014 · If you're getting 'connection refused' to the localhost, there is nothing listening at the target port. Enter the necessary 1. yml, your container could be laravel_app_app_1 but you can check this by running docker ps. This has been working for months. run: vi /etc/my. 0. 1 will only be accessible via this interface only not even the docker gateway (172. //on ubuntu server sudo /etc/init. Mar 24, 2009 · *restart mysql service (and the server) - problem comes back My setup is as follows: Windows Server 2008 Datacenter 64bit MySQL 5. 1 and mysql Ver 8. [C:\wamp\logs\mysql. This will make sure you Database is started and intialized before wordpress container trying to connect to it. Right click the User Properties area and choose Add new property. please help me solve, My English is not good thanks. 20 then you need to type the following commands at. Jul 18, 2015 · Connection failed: Connection refused mysql (LAMP) 0. 2", port=3306, user="test", password='test', db="test") Mar 9, 2021 · Mysql connection refused in docker-compose. 1 DB_PORT=3306 DB_DATABASE=laboratory DB_USERNAME=root DB_PASSWORD= In your config folder database. It will not be resolved as 127. A) One running at /etc/init. 2' (111) when trying to connect remotely. A MySQL client on Unix can connect to the mysqld server in two different ways: By using a Unix socket file to connect through a file in the file system (default /tmp/mysql. (Make sure while testing locally you change your DB connection string from host. Modified 5 years ago. You have to edit your my. mysql. Jul 12, 2016 · No, but make sure the service for MySQL in your mamp app is running, also try with this engine connector: django. To make other services communicate to db service you have to provide db service's name wherever you would provide IP-address of the machine running mysql. B. ConnectException: Connection refused Naturally, my next step was to test the port that mysql was attempting to connect on (3306). Try connecting to 127. 0: This setting is no longer used as of 4. It shall be commented out like '#skip-networking'. 1 but I get connection refused>, It worked only when the I changed the database to be publicly accessible. Apr 11, 2014 · Inside PHP file MySQL connection variants, localhost, 127. Check for firewalls blocking connections. But alas, still: SQLSTATE [HY000] [2002] Connection refused (SQL: select * from At one point, I was able to access the mysql cli and verify there was a database with the correct name, but the HTTP requests just weren't being accepted. For example, if an attempt to connect to the server fails with a message such as one of those following, one cause might be that the server is not running: Press CTRL+C to copy. Jan 3, 2024 · The permissions of /var/lib/mysql/ are different from listed below: # ls -ld /var/lib/mysql drwxr-xr-x 5 mysql mysql 4096 Apr 20 13:05 /var/lib/mysql. May 1, 2021 · DB_CONNECTION=mysql DB_HOST=127. MYSQL isn't even there. The issue is: on db. May 11, 2019 · PHP Mysql database connection being refused. 17. 上一篇 MySQL中使用Enum或Bool 下一篇 MySQL检查UTF-8数据类型:3字节还是4 Mar 3, 2022 · In Ubuntu (running Windows WSL2): I've tried: sail build --no-cache. sudo restart docker. A Unix socket file connection is faster than TCP/IP, but can Dec 26, 2023 · To troubleshoot the SQLSTATE HY000 2002 error, you can try the following steps: 1. 2. I can connecting to DB through Sequel Pro or from mysql container. Unable to connect to MySQL from php "Connection Refused" Hot Network Questions Basically here the problem is there are probably two instances of mysql running. exceptions. In the resulting window select MySQL from the list and click Next. cnf) and change the following: bind-address = 0. Aug 29, 2018 · 3. Open /etc/mysql/my. Ask Question Asked 5 years ago. May 3, 2021 · I am using Laravel 8. . go to "Log on" tab. If any user setup MySQL in localhost, JIRA will be unable to connect to MySQL because MySQL is not connected to localhost. It isn't correct to say that MySQL refused the connection. Jan 12, 2015 · 33. Here localhost refers to IP-address of the phpmyadmin service's container, and not to your machine's IP. Enter password: mysql> exit. Actually XAMPP install MySQL in VM, so connect it via IP address show in XAMPP. 6. log: The last packet sent successfully to the server was 0 milliseconds ago. Are you sure is MySQL Server running? Jun 24, 2012 · 1. My troubleshooting: 1: Restart Server: Many times, and after each change. d using service mysql stop Aug 14, 2023 · DBMS: MySQL (no ver. 04. Run mysqlcheck --help and take the IP address shown at the bottom in the "host" field. 2. And comment out the following. 33. example. I can see second mysql container start and I am able to execute some command on the container but after about 1 mins, the container stop automatically Hi everyone! I have the same problem, but with Laravel 6. For the latter: Enter mysql CLI by running mysql -u root -p. 1 and save; Restart MySQL service Mar 10, 2021 · Mysql ([Errno 111] Connection refused)") Ask Question Asked 3 years, 2 months ago. For future reference if you do need to specify a port then you can just specify a separate parameter like so: Jul 31, 2011 · socket. 203. ini; After running mysqld. 0. Can't connect Database to phpmyadmin. err. DBeaver is a popular open-source database management tool that allows users to connect to and manage databases from a variety of vendors. A question and answers about how to fix the error 2003 (HY000): Can't connect to MySQL server on '10. Second, even using 127. Nov 1, 2013 · Connection to the MySQL server is not allowed using TCP-IP. Then, this morning, firing up my localhost mysql, nothing works. inc. May 9, 2018 · 0. To fix that, you have two solutions: Add your app to your docker-compose file by Dockerizing your code if it isn't already done, then it should be able to connect to your mysql container. 1 ColdFusion 8 (which uses MySQL 5. Mar 7, 2019 · Alternatively, you can create a new user account that will only connect from the remote host with the following command: CREATE USER ' sammy ' @ ' remote_server_ip ' IDENTIFIED BY ' password '; Note: This command will create a user that authenticates with MySQL’s default authentication plugin, caching_sha2_password. Nov 18, 2019 · I think to connect from a SQL client (SQLYog, HeidiSQL, etc) to a mariaDB (MySQL) database installed on WSL2 (Windows 10) it is not necessary to change SGDBR config, here is what I did to solve this problem: mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password'; This command will set a password to the root user, that's it DBeaver Localhost Connection Refused: A Guide to Troubleshooting. java. host_cache shows why a connection fails, with details about each possible root causes. 0` After restarting the MySQL service I was able to connect. cnf or whatever location my. We would like to show you a description here but the site won’t allow us. 208 3306. com, I can connect mysql locally (from the db server itself), but I can't do remotely (from my dev machine). 111 means connection refused, It probably means that your MySQL server is only listening the localhost interface. hz ek ij gy nr ks zp yl fj vh