![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I changed my.cnf to allow remote access to mysql. This is what I changed: [mysqld] user= root pid-file = /var/run/mysqld.pid socket = /tmp/mysql.sock port = 3306 basedir = /usr datadir = /usr/local/mysql-5.0.77-osx10.4-powerpc/data tmpdir = /tmp language = /usr/share/mysql/English bind-address = www.myhost.com ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
|
I fired up mysql and I get this error about the pid file: Starting mysqld daemon with databases from /usr/local/mysql-5.0.77- osx10.4-powerpc/data STOPPING server from pid file /var/run/mysqld.pid 100707 21:31:25 mysqld ended How can I fix this? |
#4
| |||
| |||
|
|
JRough <jlro... (AT) yahoo (DOT) com> wrote: I changed my.cnf to allow remote access to mysql. This is what I changed: [mysqld] user= root pid-file = /var/run/mysqld.pid socket = /tmp/mysql.sock port = 3306 basedir = /usr datadir = /usr/local/mysql-5.0.77-osx10.4-powerpc/data tmpdir = /tmp language = /usr/share/mysql/English bind-address =www.myhost.com * ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is normally not needed, only when you have a machine with multiple network interface *and* want to constrain mysqld to only one interface. Still in most cases its better to let mysqld bind to all interfaces and then use a network filter (aka firewall) to close specific routes. I fired up mysql and I get this error about the pid file: Starting mysqld daemon with databases from /usr/local/mysql-5.0.77- osx10.4-powerpc/data STOPPING server from pid file /var/run/mysqld.pid 100707 21:31:25 *mysqld ended How can I fix this? This is not an "error about the pid file". The message says that the server was started and immediately stopped. In such cases you should look into the server error log for the reason. In this special case it's easy: --bind-address requires an IP address in dots-and-numbers format. See: http://dev.mysql.com/doc/refman/5.0/...tml#option_mys... XL |
#5
| ||||
| ||||
|
|
On Jul 8, 12:45=A0am, Axel Schwenke <axel.schwe... (AT) gmx (DOT) de> wrote: JRough <jlro... (AT) yahoo (DOT) com> wrote: I changed my.cnf to allow remote access to mysql. This is what I changed: [mysqld] user= root pid-file = /var/run/mysqld.pid socket = /tmp/mysql.sock port = 3306 basedir = /usr datadir = /usr/local/mysql-5.0.77-osx10.4-powerpc/data tmpdir = /tmp language = /usr/share/mysql/English bind-address =www.myhost.com This is the logfile message: 100708 22:27:19 mysqld started 100708 22:27:19 [ERROR] Can't find messagefile '/usr/share/mysql/ English/errmsg.sys' 100708 22:27:19 [ERROR] Aborting 100708 22:27:19 mysqld ended |
|
It is looking for the /usr/share/mysql/English/errmsg.sys |
|
language = /usr/share/mysql/English |
|
basedir = /usr |
#6
| |||
| |||
|
|
JRough <jlro... (AT) yahoo (DOT) com> wrote: On Jul 8, 12:45=A0am, Axel Schwenke <axel.schwe... (AT) gmx (DOT) de> wrote: JRough <jlro... (AT) yahoo (DOT) com> wrote: I changed my.cnf to allow remote access to mysql. This is what I changed: [mysqld] user= root pid-file = /var/run/mysqld.pid socket = /tmp/mysql.sock port = 3306 basedir = /usr datadir = /usr/local/mysql-5.0.77-osx10.4-powerpc/data tmpdir = /tmp language = /usr/share/mysql/English bind-address =www.myhost.com This is the logfile message: 100708 22:27:19 *mysqld started 100708 22:27:19 [ERROR] Can't find messagefile '/usr/share/mysql/ English/errmsg.sys' 100708 22:27:19 [ERROR] Aborting 100708 22:27:19 *mysqld ended Pretty clear error message. It is looking for the /usr/share/mysql/English/errmsg.sys Yes. And it does so because you have language = /usr/share/mysql/English in your my.cnf. This is wrong. See http://dev.mysql.com/doc/refman/5.0/...-language.html Also English is the default, so there is no need to set it explicitly. And there is another wrong config entry: basedir = /usr The basedir should point to the installation base directory. Looks like this is /usr/local/mysql-5.0.77-osx10.4-powerpc in your case, not /usr XL |
#7
| |||
| |||
|
|
adsl-99-157-73-33:~ jr$ telnet 99.157.73.33 port:3306 |
#8
| |||
| |||
|
|
On 2010-07-09 19:10, JRough wrote: [...] adsl-99-157-73-33:~ jr$ telnet 99.157.73.33 port:3306 This syntax may hold for your version of telnet, but I haven't seen it before. In the versions of telnet that I have used the syntax would be: telnet 99.157.73.33 3306 /Lennart [...] |
#9
| |||
| |||
|
|
On 2010-07-09 19:10, JRough wrote: [...] adsl-99-157-73-33:~ jr$ telnet 99.157.73.33 port:3306 This syntax may hold for your version of telnet, but I haven't seen it before. In the versions of telnet that I have used the syntax would be: telnet 99.157.73.33 3306 /Lennart [...] |
#10
| |||
| |||
|
|
On Jul 9, 10:19=A0am, Lennart Jonsson <erik.lennart.jons... (AT) gmail (DOT) com wrote: On 2010-07-09 19:10, JRough wrote: [...] adsl-99-157-73-33:~ jr$ telnet 99.157.73.33 port:3306 This syntax may hold for your version of telnet, but I haven't seen it before. In the versions of telnet that I have used the syntax would be: telnet 99.157.73.33 3306 /Lennart [...] No it is still UNIX, my mistake, I tried it your way, at least I got a response message. it tried for a time and then timed out. so I don't know what the issue is now. |
![]() |
| Thread Tools | |
| Display Modes | |
| |