Nieuws:

Ubuntu-NL weer online!

Na een periode van technische problemen en een overbelaste server zijn we eindelijk weer bereikbaar.
Samen met Hobbynet, onze sponsor en hostingpartner, hebben we een oplossing gevonden zodat alles weer soepel draait.

Bedankt voor jullie geduld en begrip. We hopen nu weer verder te gaan waar we gebleven waren.

Het team van Ubuntu-NL

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: mysqld: Can't create IP socket: Permission denied  (gelezen 1962 keer)

Offline daanmidd

  • Lid
mysqld: Can't create IP socket: Permission denied
« Gepost op: 2010/05/28, 10:19:03 »
Hallo,

Ik probeer al enige tijd mysql te installeren op Jaunty.
Het lukt mij echter niet om hem te starten:

$ mysqld
100528 12:08:34 [Warning] option 'thread_stack': unsigned value 65536 adjusted to 131072
100528 12:08:34 [Warning] Can't create test file /var/lib/mysql/ubuntu.lower-test
100528 12:08:34 [Warning] Can't create test file /var/lib/mysql/ubuntu.lower-test
100528 12:08:34 [Note] Plugin 'InnoDB' disabled by command line option
mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
100528 12:08:34 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
100528 12:08:35 [ERROR] Can't create IP socket: Permission denied
100528 12:08:35 [ERROR] Aborting

100528 12:08:35 [Warning] Forcing shutdown of 2 plugins
100528 12:08:35 [Note] mysqld: Shutdown complete

En als ik mysql_upgrade uitvoer, dan krijg ik ook een error met een socket:
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck'...
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111) when trying to connect
FATAL ERROR: Upgrade failed

Er is dus iets mis met de socket o.i.d.
Maar wat?

En hoe kan ik dit oplossen.

Het gaat om mysql-server-5.0, maar 5.1 geeft hetzelfde probleem.

Bvd
Daan.
You are Unique, Just like Everyone Else

Offline ivo

  • Lid
Re: mysqld: Can't create IP socket: Permission denied
« Reactie #1 Gepost op: 2010/05/28, 10:27:51 »
http://dev.mysql.com/doc/refman/5.1/en/can-not-connect-to-server.html

The error (2002) Can't connect to ... normally means that there is no MySQL server running on the system or that you are using an incorrect Unix socket file name or TCP/IP port number when trying to connect to the server. You should also check that the TCP/IP port you are using has not been blocked by a firewall or port blocking service.

http://ubuntuforums.org/archive/index.php/t-981832.html

I had this problem, it actually appears to be a problem with apparmor blocking mysql's IP socket. I removed apparmor, and that solved the problem. There should be a better fix, though...

There are only 10 types of people in the world; those who understand binary and those who don't.

Offline daanmidd

  • Lid
Re: mysqld: Can't create IP socket: Permission denied
« Reactie #2 Gepost op: 2010/05/28, 10:42:57 »
Bedankt voor je reactie.
Ik weet dat de mysql server niet gestart is, (ik krijg hem namelijk niet gestart).

De laatste link die je gaf was ik ook al tegengekomen, maar ik heb geen firewall o.i.d. draaien.
You are Unique, Just like Everyone Else