lpl0an
Posts: 39
Joined: Fri Feb 22, 2013 8:11 pm
Location: Toulouse, France

Problem MYSQL Install

Tue Mar 26, 2013 7:36 pm

Hi,

I have a problem installing MYSQL. I launch installation :

Code: Select all

apt-get update
apt-get install mysql-server
I begins OK but then I've got the screen asking me to set a root password. I type it, confirm and then it tells me it couldn't configure the password etc and it quits.
I may be that I've already installed it, but i'm not even sure ! I've got Owncloud installed I don't know if it uses MYSQL...
If you have some ideas or solutions or questions...
Thank you for your answers.

User avatar
tonyhughes
Posts: 951
Joined: Wed Dec 26, 2012 3:46 am

Re: Problem MYSQL Install

Tue Mar 26, 2013 8:13 pm

Code: Select all

dpkg -s mysql-server
Will tell you if you have that particular package installed.

Or, uninstall and start from scratch:

Code: Select all

sudo apt-get --purge remove mysql-server -y && sudo apt-get update -y && sudo apt-get install mysql-server -y

User avatar
DeeJay
Posts: 2027
Joined: Tue Jan 01, 2013 9:33 pm
Location: East Midlands, UK

Re: Problem MYSQL Install

Tue Mar 26, 2013 8:18 pm

Similar problem discussed and resolved here - http://raspberrypi.stackexchange.com/qu ... l-raspbian
How To Ask Questions The Smart Way: http://www.catb.org/~esr/faqs/smart-questions.html
How to Report Bugs Effectively: http://www.chiark.greenend.org.uk/~sgtatham/bugs.html

lpl0an
Posts: 39
Joined: Fri Feb 22, 2013 8:11 pm
Location: Toulouse, France

Re: Problem MYSQL Install

Thu Mar 28, 2013 6:00 pm

I tried to reinstall mysql from a backup wich hasn't got it. The installation works fine, until this :
Image.

Then I put OK and then :

Image
Image
I don't know what I can do...

bigamito
Posts: 15
Joined: Thu Jul 11, 2013 11:10 pm

Re: Problem MYSQL Install

Wed Jul 24, 2013 3:02 pm

I've the same problem...

Have you solved them?

hamdy.aea
Posts: 29
Joined: Sat Mar 12, 2016 3:55 pm

Re: Problem MYSQL Install

Fri Dec 02, 2016 11:22 pm

I have the same problem :

Processing triggers for systemd (215-17+deb8u5) ...
Errors were encountered while processing:
mysql-server-5.5
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@raspberrypi:/run/mysqld# systemctl status mysql.service
● mysql.service - LSB: Start and stop the mysql database server daemon
Loaded: loaded (/etc/init.d/mysql)
Active: failed (Result: exit-code) since Fri 2016-12-02 20:58:31 UTC; 5min ago

Dec 02 20:57:51 raspberrypi mysql[13662]: /etc/init.d/mysql: WARNING: /etc/mysql/my.cnf cannot be read. See README.Deb...ning).
Dec 02 20:57:51 raspberrypi /etc/init.d/mysql[13672]: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz
Dec 02 20:58:31 raspberrypi /etc/init.d/mysql[14121]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/m...ed in
Dec 02 20:58:31 raspberrypi mysql[13662]: Starting MySQL database server: mysqld . . . . . . . . . . . . . . . . . . ....ailed!
Dec 02 20:58:31 raspberrypi systemd[1]: mysql.service: control process exited, code=exited status=1
Dec 02 20:58:31 raspberrypi systemd[1]: Failed to start LSB: Start and stop the mysql database server daemon.
Dec 02 20:58:31 raspberrypi systemd[1]: Unit mysql.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.


root@raspberrypi:/run/mysqld# systemctl status mysql.service -l
● mysql.service - LSB: Start and stop the mysql database server daemon
Loaded: loaded (/etc/init.d/mysql)
Active: failed (Result: exit-code) since Fri 2016-12-02 20:58:31 UTC; 6min ago

Dec 02 20:57:51 raspberrypi mysql[13662]: /etc/init.d/mysql: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz ... (warning).
Dec 02 20:57:51 raspberrypi /etc/init.d/mysql[13672]: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz
Dec 02 20:58:31 raspberrypi /etc/init.d/mysql[14121]: 0 processes alive and '/usr/bin/mysqladmin --defaults-file=/etc/mysql/debian.cnf ping' resulted in
Dec 02 20:58:31 raspberrypi mysql[13662]: Starting MySQL database server: mysqld . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . failed!
Dec 02 20:58:31 raspberrypi systemd[1]: mysql.service: control process exited, code=exited status=1
Dec 02 20:58:31 raspberrypi systemd[1]: Failed to start LSB: Start and stop the mysql database server daemon.
Dec 02 20:58:31 raspberrypi systemd[1]: Unit mysql.service entered failed state.
Hamdy Abou El Anein
Posts: 7
Joined: Sat Mar 12, 2016 3:55 pm
Hamdy Abou El Anein

Return to “Networking and servers”