MySQL won't start, and no /etc/init.d/mysql--my stdout and syslog after trying...
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
MySQL won't start, and no /etc/init.d/mysql--my stdout and syslog after trying...
On Ubuntu Server 9.10, new install, mysql-server will not install properly. It produces no error on apt-get install. I get the following when running "mysqld" as root:
Code:
100129 19:08:42 [Note] Plugin 'FEDERATED' is disabled.
100129 19:08:43 InnoDB: Started; log sequence number 0 44233
100129 19:08:43 [ERROR] Can't start server : Bind on unix socket: No such file or directory
100129 19:08:43 [ERROR] Do you already have another mysqld server running on socket: /var/run/mysqld/mysqld.sock ?
100129 19:08:43 [ERROR] Aborting
100129 19:08:43 InnoDB: Starting shutdown...
100129 19:08:44 InnoDB: Shutdown completed; log sequence number 0 44233
100129 19:08:44 [Warning] Forcing shutdown of 1 plugins
100129 19:08:44 [Note] mysqld: Shutdown complete
I don't think `selinux` is installed by default in Ubuntu. Just do a `ps aux | grep mysql` and check if it is already running. Kill the processes and then try starting it. After installing `mysql` via `apt`, it gets started automatically.
Oddly, there is no mysqld/ directory in said location. This confuses me as well. There is also no instance of mysqld running. It looks, in fact, very much as if it were never installed--since there is also no mysql startup script in init.d--except that the mysqld executable obviously exists (per the output shown in the OP).
Also, I've looked into many howto's on installing mysql on Ubu-srv 9.10, and all were business as usual, so I'm led to believe that there are no selinux-like issues, but have been wondering the same thing (about port/service blocking).
<grumble onread=ignore>What I find so frustrating about this sort of thing is what I find frustrating about a great many things Linux--I haven't the faintest notion where to begin looking. Often, simply tailing the syslog leaves me no clues, and if a log file (or error log file, or...) even exists for the application, I'm left with the same. In this case, I've spent hours googling and poring over the documentation, troubleshooting, etc., and...ah, nevermind me...</grumble>
Last edited by ineloquucius; 01-30-2010 at 10:03 AM.
Then just install mysql server via apt. You will have the mysql(not mysqld) directory in /var/lib. You can start mysql by `sudo /etc/init.d/mysql start` .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.