Hi Stephan,
SoPHIE relies on the MySQL Server to run. The user credentials as well as the session data is stored in the database.
Thus this is not really a SoPHIE specific problem but of course related as MySQL is a critical component. As discussed we would be happy to analyse the source of the error with you.
For everyone who might face problems with MySQL like this there are a few things you can do to pin down the source of the problem:
1. Check if the mysql is running
On the command line use the following command to see a filtered list of processes on the computer.
> ps aux | grep mysqld
This should show lines similar to this for Debian and similar Linux systems:
root 17809 0.0 0.0 4188 576 ? S Jun08 0:00 /bin/sh /usr/bin/mysqld_safe
mysql 18282 2.3 11.2 2520692 1816212 ? Sl Jun08 4674:40 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306
root 18283 0.0 0.0 7712 652 ? S Jun08 0:00 logger -t mysqld -p daemon.error
If there is none of these lines the mysql process is not started.
2. Try to start the mysql service if not running
MySQL is mostly configured to automatically start when the Operation System starts. The default way to start, restart and stop services again depends on the Operation System and also the version of the Operation System you use. The following command should work for most Debian installations.
> service mysql start
3. Try to the MySQL CLI Client
On the command line use the CLI client to connect to mysql to make sure you use the correct credentials. The user is passed as a parameter. It will ask you for the password afterward, so the -p without the password is correct.
> mysql -u YOURMYSQLUSER -p YOURDATABASENAME
4. Check the Log-Files
Check the MySQL Log-Files for errors preventing it from starting or preventing it from being connected to:
/var/log/mysql.err
/var/log/mysql.log
5. Check the Harddrive Space and Memory
A full harddrive and full memory can lead to situations that are hard to analyse because logs are not written anymore.
Look at the usage of your harddrive partitions
> df -h
Look at the available memory
> free -h
Hope these comments are helpful and please feel free to add comments to this or ask questions.
Best
Achim