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

Stuart Raeburn raeburn at msu.edu
Tue Jun 10 14:15:27 EDT 2014


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
>



More information about the LON-CAPA-admin mailing list