How to reconfigure MySQL in Ubuntu
I have MySQL up and running fine on one of my machines. When I try to connect from
another machine I get the error:
ERROR 2003 (HY000): Can't connect to MySQL server on 'arvo' (111)
After digging in the MySQL documentation I discovered that it was configured
to use:
socket = /var/run/
I found the config file in /etc/mysql/
automatically configured. How can I change the config safely to allow it
to listen on tcp/ip to local hosts?
My network is behind a firewall, so I'm not too concerned about security.
I'm running 8.04 + current updates on various machines, all 32-bit x86.
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Matt Austin
- Solved:
- 2008-09-13
- Last query:
- 2008-09-13
- Last reply:
- 2008-09-13
|
#1 |
Hi Bill,
Try taking a look at /etc/mysql/my.cnf - there is a configuration option in there for the bind-address.
Rolando Blanco (rolando) said : | #2 |
try oppening a terminal (Applications > Accesories > Terminal) and type then
sudo dpkg-reconfigure mysql-server
2008/9/13 Matt Austin <email address hidden>
> Question #45026 on mysql-dfsg-5.0 in ubuntu changed:
> https:/
>
> Status: Open => Answered
>
> Matt Austin proposed the following answer:
> Hi Bill,
>
> Try taking a look at /etc/mysql/my.cnf - there is a configuration
> option in there for the bind-address.
>
> --
> You received this question notification because you are an answer
> contact for Ubuntu.
>
--
Saludos Fraternos Ubunteros!
_______
"No pases la vida tratando de hacer trabajar a tu computador,...
...haz que tu computador trabaje para ti, usa GNU/LINUX"
_______
Rolando F. Blanco C:. (Ubuntu Member)
Director-TIC MSC, Consultores Gerenciales,C.A.
User: 399645 (GNU) Ubuntu: 3715
http://
Ubuntu 8.04 (Hardy)
_______
bill purvis (bill-billp) said : | #3 |
Thanks Matt Austin, that solved my question.
bill purvis (bill-billp) said : | #4 |
Tried Rolando's suggestion but it didn't seem to do anything much.
Edited my.cnf and ran /etc/init.d/mysql restart
and that fixed it.