[LON-CAPA-admin] lonsql cannot connect to database
Neubauer, Paul
pneubauer at bsu.edu
Wed Jun 11 07:24:06 EDT 2014
Thanks, Mark. That was the problem. I removed /var/lib/mysql/mysql.sock and MySQL was able to restart. Whew!
Thanks,
Paul
-----Original Message-----
From: lon-capa-admin-bounces at mail.lon-capa.org [mailto:lon-capa-admin-bounces at mail.lon-capa.org] On Behalf Of Lucas, Mark
Sent: Tuesday, June 10, 2014 3:35 PM
To: LON-CAPA Admin
Subject: Re: [LON-CAPA-admin] lonsql cannot connect to database
There is a problem with Centos and Redhat that mysql is not always brought
down gracefully when restarting the computer, or at least a lock or socket file still
exists. If mysql refuses to restart, you might look into this.
Mark
On Jun 10, 2014, at 2:15 PM, Stuart Raeburn <raeburn at msu.edu> wrote:
> Paul,
>
>> lonsql Cannot connect to database!
>
> A report of an error of this sort occurs if the mysql daemon (mysqld)
> is no longer running.
>
> Try:
>
> /etc/init.d/mysqld start
>
> to start it
>
> and, if successful, then start lonsql by:
>
> /etc/init.d/loncontrol start
>
>
> Note: depending on your Linux distro/version, you might need to use
> other commands to start mysqld, e.g.,
>
> service mysqld start
>
>
>
> Stuart Raeburn
> LON-CAPA Aceademic Consortium
>
>
>
> Quoting "Neubauer, Paul" <pneubauer at bsu.edu>:
>
>> When I /etc/init.d/loncontrol restart, I get:
>> ...
>> lonsql Cannot connect to database!
>> Cannot connect to database!
>> failed
>> ...
>>
>>
>> Any clues for the clueless?
>>
>> Thanks,
>> Paul
>>
>
> _______________________________________________
> LON-CAPA-admin mailing list
> LON-CAPA-admin at mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin
--
Mark Lucas email: lucasm at ohiou.edu
252D Clippinger Lab phone: (740)597-2984
Department of Physics and Astronomy fax: (740)593-0433
Ohio University
Athens, OH 45701
_______________________________________________
LON-CAPA-admin mailing list
LON-CAPA-admin at mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin
More information about the LON-CAPA-admin
mailing list