[LON-CAPA-admin] lonsql cannot connect to database

Lucas, Mark lucasm at ohio.edu
Tue Jun 10 15:35:29 EDT 2014


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



More information about the LON-CAPA-admin mailing list