I have a default installation of MySQL on my default Ubuntu server, I haven't really changed any settings after install. The default configuration is to disallow external connections to MySQL and I'm trying to allow external connections so I can connect to it from anywhere, mainly so I can use MySQL Workbench instead of PHPMyAdmin. I've made the necessary changes but it still doesn't seem to work.
Here is part of my my.cnf file:
Code:
[mysqld]
#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
# skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
# bind-address = 127.0.0.1
#
# * Fine Tuning
#
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
And I logged into my mysql (from localhost) as root to run this:
Code:
grant all privileges on *.* to 'development'@'%' identified by '**********';
Of course I put the correct password in there. Then I ran:
I even restarted the MySQL server:
Code:
sudo service mysql restart
However I still cannot connect from my other machine with any user. I can't connect as this user, I can't connect as root, it keeps giving me this 111 error in the title:
Code:
deemar@Chugger:/etc/mysql$ mysql -u development -p -h domain
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on 'domain' (111)
What am I missing to allow external access to MySQL?
Bookmarks