• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question I have updated and now does not start mySQl

Tize

Basic Pleskian
Hello, I have a version on my old mySQL server and I would like to know if updating with Centos 6 will lose the databases or it is dangerous to do so.
I'm afraid of losing all databases and spoiling something.

If it is simple please tell me how to do it.

Thank you so much guys!

Captura de pantalla 2017-02-22 a las 19.31.58.png

Captura de pantalla 2017-02-22 a las 19.20.09.png
 
Hello, good morning, I've updated and everything is fine for a moment.
Now I have the latest version, I deleted the tmp files and re-created the folder with the correct permissions.
And now no web page works !!
Please help!!!



Code:
[root@server ~]# nano /etc/rc.local
[root@server ~]# nano  /var/log/mysqld.log



  GNU nano 2.0.9                                                 Fichero: /var/log/mysqld.log                                                                                                           

2017-03-15 10:13:27 2245 [Note] InnoDB: Using Linux native AIO
2017-03-15 10:13:27 2245 [Note] InnoDB: Using CPU crc32 instructions
2017-03-15 10:13:27 2245 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2017-03-15 10:13:27 2245 [Note] InnoDB: Completed initialization of buffer pool
2017-03-15 10:13:27 2245 [Note] InnoDB: Highest supported file format is Barracuda.
2017-03-15 10:13:30 2245 [Note] InnoDB: 128 rollback segment(s) are active.
2017-03-15 10:13:30 2245 [Note] InnoDB: Waiting for purge to start
2017-03-15 10:13:30 2245 [Note] InnoDB: 5.6.35 started; log sequence number 58669935821
2017-03-15 10:13:30 2245 [Note] Server hostname (bind-address): '*'; port: 3306
2017-03-15 10:13:30 2245 [Note] IPv6 is available.
2017-03-15 10:13:30 2245 [Note]   - '::' resolves to '::';
2017-03-15 10:13:30 2245 [Note] Server socket created on IP: '::'.
2017-03-15 10:13:31 2245 [Note] Event Scheduler: Loaded 0 events
2017-03-15 10:13:31 2245 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.35'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL)
2017-03-15 10:15:09 2245 [ERROR] /usr/sbin/mysqld: Incorrect key file for table '/tmp/#sql_8c5_0.MYI'; try to repair it
2017-03-15 10:15:09 2245 [ERROR] Got an error from unknown thread, /export/home/pb2/build/sb_0-21378139-1480366181.23/rpm/BUILD/mysql-5.6.35/mysql-5.6.35/storage/myisam/mi_write.c:223
2017-03-15 10:15:11 2245 [ERROR] /usr/sbin/mysqld: Incorrect key file for table '/tmp/#sql_8c5_0.MYI'; try to repair it
2017-03-15 10:15:11 2245 [ERROR] Got an error from unknown thread, /export/home/pb2/build/sb_0-21378139-1480366181.23/rpm/BUILD/mysql-5.6.35/mysql-5.6.35/storage/myisam/mi_write.c:223
2017-03-15 10:15:13 2245 [ERROR] /usr/sbin/mysqld: Incorrect key file for table '/tmp/#sql_8c5_0.MYI'; try to repair it
2017-03-15 10:15:13 2245 [ERROR] Got an error from unknown thread, /export/home/pb2/build/sb_0-21378139-1480366181.23/rpm/BUILD/mysql-5.6.35/mysql-5.6.35/storage/myisam/mi_write.c:223
2017-03-15 10:15:26 2245 [ERROR] /usr/sbin/mysqld: Incorrect key file for table '/tmp/#sql_8c5_0.MYI'; try to repair it
2017-03-15 10:15:26 2245 [ERROR] Got an error from unknown thread, /export/home/pb2/build/sb_0-21378139-1480366181.23/rpm/BUILD/mysql-5.6.35/mysql-5.6.35/storage/myisam/mi_write.c:223
2017-03-15 10:15:49 2245 [ERROR] /usr/sbin/mysqld: Incorrect key file for table '/tmp/#sql_8c5_0.MYI'; try to repair it
2017-03-15 10:15:49 2245 [ERROR] Got an error from unknown thread, /export/home/pb2/build/sb_0-21378139-1480366181.23/rpm/BUILD/mysql-5.6.35/mysql-5.6.35/storage/myisam/mi_write.c:223
2017-03-15 10:16:22 2245 [ERROR] /usr/sbin/mysqld: Incorrect key file for table '/tmp/#sql_8c5_0.MYI'; try to repair it
2017-03-15 10:16:22 2245 [ERROR] Got an error from unknown thread, /export/home/pb2/build/sb_0-21378139-1480366181.23/rpm/BUILD/mysql-5.6.35/mysql-5.6.35/storage/myisam/mi_write.c:223
2017-03-15 10:16:31 2245 [ERROR] /usr/sbin/mysqld: Incorrect key file for table '/tmp/#sql_8c5_0.MYI'; try to repair it
2017-03-15 10:16:31 2245 [ERROR] Got an error from unknown thread, /export/home/pb2/build/sb_0-21378139-1480366181.23/rpm/BUILD/mysql-5.6.35/mysql-5.6.35/storage/myisam/mi_write.c:223
2017-03-15 10:16:35 2245 [ERROR] /usr/sbin/mysqld: Incorrect key file for table '/tmp/#sql_8c5_0.MYI'; try to repair it
2017-03-15 10:16:35 2245 [ERROR] Got an error from unknown thread, /export/home/pb2/build/sb_0-21378139-1480366181.23/rpm/BUILD/mysql-5.6.35/mysql-5.6.35/storage/myisam/mi_write.c:223
2017-03-15 10:16:45 2245 [ERROR] /usr/sbin/mysqld: Incorrect key file for table '/tmp/#sql_8c5_0.MYI'; try to repair
 
[root@server ~]# cd var
-bash: cd: var: No existe el fichero o el directorio
[root@server ~]# cd /var
[root@server var]# ls
cache clamav cvs db drweb empty games lib local lock log mail named nis opt parallels preserve qmail run spool tmp www yp
[root@server var]# ls -lh
total 88K
drwxr-xr-x 10 root root 4,0K jun 26 2016 cache
drwxr-xr-x 2 clamav clamav 4,0K mar 15 10:12 clamav
drwxr-xr-x 2 root root 4,0K nov 22 2013 cvs
drwxr-xr-x 3 root root 4,0K sep 30 2011 db
drwxr-xr-x 13 drweb drweb 4,0K mar 8 2014 drweb
drwxr-xr-x 3 root root 4,0K sep 23 2011 empty
drwxr-xr-x 2 root root 4,0K sep 23 2011 games
drwxr-xr-x 34 root root 4,0K mar 15 08:50 lib
drwxr-xr-x 2 root root 4,0K sep 23 2011 local
drwxrwxr-x 8 root lock 4,0K mar 15 10:13 lock
drwxr-xr-x 17 root root 4,0K mar 15 10:12 log
lrwxrwxrwx 1 root root 10 sep 30 2011 mail -> spool/mail
drwxr-x--- 6 root named 4,0K mar 3 2014 named
drwxr-xr-x 2 root root 4,0K sep 23 2011 nis
drwxr-xr-x 2 root root 4,0K sep 23 2011 opt
drwxr-xr-x 2 root root 4,0K nov 26 2015 parallels
drwxr-xr-x 2 root root 4,0K sep 23 2011 preserve
drwxr-xr-x 11 root qmail 4,0K mar 10 2016 qmail
drwxr-xr-x 23 root root 4,0K mar 15 10:13 run
drwxr-xr-x 11 root root 4,0K mar 8 2014 spool
drwxrwxrwt 2 root root 4,0K mar 15 10:03 tmp
drwxr-xr-x 9 root root 4,0K ene 12 17:10 www
drwxr-xr-x 2 root root 4,0K sep 23 2011 yp
[root@server var]#

Captura de pantalla 2017-03-15 a las 11.10.32.png
 
[root@server ~]# service mysqld restart

Stopping mysqld: [ OK ]
Timeout error occurred trying to start MySQL Daemon.
Starting mysqld: [FAILED]

Captura de pantalla 2017-03-15 a las 11.16.57.png
 
First of all, why are you look into /var/tmp? In logs errors about /tmp/filenames.

In your system /tmp does not mount as separate file system. So, we speak about / (root).

Filesystem Size Used Avail Use% Mounted on
/dev/md2 1,8T 1,7T 16M 100% /


Size of disk is 1.8 terabytes
Available only 16 megabytes

It used at 100%

So, this is the problem.
 
First of all, why are you look into /var/tmp? In logs errors about /tmp/filenames.

In your system /tmp does not mount as separate file system. So, we speak about / (root).

Filesystem Size Used Avail Use% Mounted on
/dev/md2 1,8T 1,7T 16M 100% /


Size of disk is 1.8 terabytes
Available only 16 megabytes

It used at 100%

So, this is the problem.


Thanks for your message, I deleted the TMP folder and recreated it but there is no space.
I do not know how to empty that space.
Thank you.
 
We know, that problem with free space but it does not mean that problem with /tmp. You do not need to delete it. You need to find big files. So, you can use this command 'du -m --max-depth=1 /path/to/directory/'

As an example, I want to find the biggest directory in /usr:
# du -m --max-depth=1 /usr
1 /usr/src
122 /usr/lib
1 /usr/games
1 /usr/local
8 /usr/include
37 /usr/bin
1 /usr/etc
16 /usr/sbin
102 /usr/lib64
14 /usr/libexec
332 /usr/share
627 /usr

Total size of /usr - 627mb
The biggest directory - /usr/share - 332mb

Next step if it needed: '
du -m --max-depth=1 /usr/share'

But be careful, this command can run a long time. Try check separate /var, /home, /usr and so on.
 
Hi, thank you very much, for your help.
The truth is that I get lost. Now I do not know where to look or how to find the folder that has the largest size to delete it.

I will continue to try to see if I can solve it.
Thanks for everything.
 
Back
Top