WAMP Server MySQL won't come online - wamp

When I try to start WAMP, it loads, but stays orange.
By left-clicking WAMP, then going to MySQL->Service, I can see that the Start/Resume is green, indicating it's MySQL that didn't start. (Apache appears to have started)
MySQL v 5.6.17
I've looked up the error logs below, but haven't found anything useful.
[Thu Feb 25 15:02:04.507685 2016] [mpm_winnt:notice] [pid 7344:tid 708] AH00455: Apache/2.4.9 (Win32) PHP/5.5.12 configured -- resuming normal operations
[Thu Feb 25 15:02:04.508184 2016] [mpm_winnt:notice] [pid 7344:tid 708] AH00456: Apache Lounge VC11 Server built: Mar 16 2014 12:13:13
[Thu Feb 25 15:02:04.508184 2016] [core:notice] [pid 7344:tid 708] AH00094: Command line: 'd:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d D:/wamp/bin/apache/apache2.4.9'
[Thu Feb 25 15:02:04.515686 2016] [mpm_winnt:notice] [pid 7344:tid 708] AH00418: Parent: Created child process 12348
[Thu Feb 25 15:02:05.487426 2016] [mpm_winnt:notice] [pid 12348:tid 588] AH00354: Child: Starting 64 worker threads.
MySQL Error log:
2016-03-02 13:05:25 52448 [Note] Plugin 'FEDERATED' is disabled.
2016-03-02 13:05:25 52448 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-03-02 13:05:25 52448 [Note] InnoDB: The InnoDB memory heap is disabled
2016-03-02 13:05:25 52448 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-03-02 13:05:25 52448 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-03-02 13:05:25 52448 [Note] InnoDB: Not using CPU crc32 instructions
2016-03-02 13:05:25 52448 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-03-02 13:05:25 52448 [Note] InnoDB: Completed initialization of buffer pool
2016-03-02 13:05:25 52448 [Note] InnoDB: Highest supported file format is Barracuda.
2016-03-02 13:05:25 52448 [Note] InnoDB: The log sequence numbers 1598839555 and 1598839555 in ibdata files do not match the log sequence number 1598839565 in the ib_logfiles!
2016-03-02 13:05:25 52448 [Note] InnoDB: Database was not shutdown normally!
2016-03-02 13:05:25 52448 [Note] InnoDB: Starting crash recovery.
2016-03-02 13:05:25 52448 [Note] InnoDB: Reading tablespace information from the .ibd files...
2016-03-02 13:05:25 52448 [ERROR] InnoDB: Attempted to open a previously opened tablespace. Previous tablespace mysite1/cache uses space ID: 10 at filepath: .\mysite1\cache.ibd. Cannot open tablespace mysite2/my_table which uses space ID: 10 at filepath: .\mysite2\my_table.ibd
InnoDB: Error: could not open single-table tablespace file .\mysite2\my_table.ibd
InnoDB: We do not continue the crash recovery, because the table may become
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.
InnoDB: To fix the problem and start mysqld:
InnoDB: 1) If there is a permission problem in the file and mysqld cannot
InnoDB: open the file, you should modify the permissions.
InnoDB: 2) If the table is not needed, or you can restore it from a backup,
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal
InnoDB: crash recovery and ignore that table.
InnoDB: 3) If the file system or the disk is broken, and you cannot remove
InnoDB: the .ibd file, you can set innodb_force_recovery > 0 in my.cnf
InnoDB: and force InnoDB to continue crash recovery here.

Related

WAMP 3 new installation tried everything

Today I decided to reinstall WAMP on Windows 10.
What a mistake it was, after the new installation WAMP icon stays Orange.
I searched google for hours tried, everything I could, nothing helps, the icon stays Orange.
I checked the mySql error log and I get this:
2016-08-29T17:43:19.636578Z 0 [Warning] InnoDB: New log files created, LSN=45790
2016-08-29T17:43:22.277335Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
wampmysqld64: Table 'mysql.plugin' doesn't exist
2016-08-29T17:43:22.449217Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2016-08-29T17:43:22.449217Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 148b018e-6e10-11e6-aca6-a45d36c709dc.
2016-08-29T17:43:22.511719Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2016-08-29T17:43:22.527346Z 0 [Warning] Failed to open optimizer cost constant tables
2016-08-29T17:43:22.527346Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
2016-08-29T17:43:22.527346Z 0 [ERROR] Aborting
Here is what I did:
I unistalled the old Wamp.
I change the wamp directory's name to: wampOld
I checked my services there were no mysql or apache on them
I installed all the VC packages needed (As administrator):
I checked IIS on windows, looks ok to me:
Web Management Tools and everything under it is unticked.
I installed WAMP (As administrator)(wampserver3.0.4_x64_apache2.4.18_mysql5.7.11_php5.6.19-7.0.4)
I tested port 80:
***** Test which uses port 80 *****
===== Tested by command netstat filtered on port 80 =====
Test for TCP
Your port 80 is used by a processus with PID = 4180
The processus of PID 4180 is 'httpd.exe' Session: Services
The service of PID 4180 for 'httpd.exe' is 'wampapache64'
This service is from Wampserver - It is correct
Test for TCPv6
Your port 80 is used by a processus with PID = 4180
The processus of PID 4180 is 'httpd.exe' Session: Services
The service of PID 4180 for 'httpd.exe' is 'wampapache64'
This service is from Wampserver - It is correct
===== Tested by attempting to open a socket on port 80 =====
Your port 80 is actually used by :
Server: Apache/2.4.18 (Win64) PHP/5.6.19
The Apache error log:
[Mon Aug 29 19:43:18.777165 2016] [auth_digest:notice] [pid 4180:tid 496] AH01757: generating secret for digest authentication ...
[Mon Aug 29 19:43:18.839665 2016] [mpm_winnt:notice] [pid 4180:tid 496] AH00455: Apache/2.4.18 (Win64) PHP/5.6.19 configured -- resuming normal operations
[Mon Aug 29 19:43:18.839665 2016] [mpm_winnt:notice] [pid 4180:tid 496] AH00456: Apache Lounge VC14 Server built: Dec 9 2015 11:13:29
[Mon Aug 29 19:43:18.839665 2016] [core:notice] [pid 4180:tid 496] AH00094: Command line: 'c:\\wamp64\\bin\\apache\\apache2.4.18\\bin\\httpd.exe -d C:/wamp64/bin/apache/apache2.4.18'
[Mon Aug 29 19:43:18.870917 2016] [mpm_winnt:notice] [pid 4180:tid 496] AH00418: Parent: Created child process 6408
[Mon Aug 29 19:43:19.480326 2016] [auth_digest:notice] [pid 6408:tid 432] AH01757: generating secret for digest authentication ...
[Mon Aug 29 19:43:19.558450 2016] [mpm_winnt:notice] [pid 6408:tid 432] AH00354: Child: Starting 64 worker threads.
The Apache access log:
127.0.0.1 - - [29/Aug/2016:19:43:51 +0200] "GET / HTTP/1.1" 200 5145
After installation my services look like this:
My hosts file has these 2 entries in it:
127.0.0.1 localhost
::1 localhost
Nada, WAMP stays Orange.
Uninstalled, and installed version 32 instead. Still Orange, got this in mysql.log:
2016-08-29T20:00:38.680630Z 0 [Warning] InnoDB: New log files created, LSN=45790
2016-08-29T20:00:42.132996Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
wampmysqld: Table 'mysql.plugin' doesn't exist
2016-08-29T20:00:42.566098Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2016-08-29T20:00:42.590113Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: 440b9e23-6e23-11e6-ba24-a45d36c709dc.
2016-08-29T20:00:42.703794Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2016-08-29T20:00:43.016750Z 0 [Warning] Failed to open optimizer cost constant tables
2016-08-29T20:00:43.020753Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
2016-08-29T20:00:43.021754Z 0 [ERROR] Aborting
wampmysqld: Table 'mysql.plugin' doesn't exist
2016-08-29T20:01:02.323383Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2016-08-29T20:01:02.326385Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2016-08-29T20:01:02.328387Z 0 [Warning] Failed to open optimizer cost constant tables
2016-08-29T20:01:02.330389Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
2016-08-29T20:01:02.331389Z 0 [ERROR] Aborting
wampmysqld: Table 'mysql.plugin' doesn't exist
2016-08-29T20:01:26.201624Z 0 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2016-08-29T20:01:26.203625Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2016-08-29T20:01:26.206627Z 0 [Warning] Failed to open optimizer cost constant tables
2016-08-29T20:01:26.208630Z 0 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
2016-08-29T20:01:26.210631Z 0 [ERROR] Aborting
What am I missing????
I solved it by deleting (or renaming) the directory
C:\wamp64\bin\mysql\mysql5.7.21\data
and then executing
./mysqld --initialize-insecure
from
C:\wamp64\bin\mysql\mysql5.7.21\bin
The solution was:
Install WAMP 2.5
Run the upgrade file from 2.5 to 3.
At last, it works
Whenever you are installing WAMP, please install it in a fresh folder.
For Visual C distributions, please download the following Visual C++ Redistributable Packages from http://wampserver.aviatechno.net:
Microsoft VC++ Packages x86 (32 bits)
VC 2008 SP1 Package (x86) MD5
VC 2008 SP1 ATL Package (x86) MD5
VC 2008 SP1 MFC Package (x86) MD5
VC 2010 SP1 Package (x86) MD5
VC 2012 Update 4 (x86) MD5
VC 2013 Package Up 5 (x86) MD5
VC 2015-2019 (VC16 x86) 14.22.27821 MD5
As well as:
VC 2008 SP1 Package (x64) MD5
VC 2008 SP1 ATL Package (x64) MD5
VC 2008 SP1 MFC Package (x64) MD5
VC 2010 SP1 Package (x64) MD5
VC 2012 Up 4 (x64) MD5
VC 2013 Up 5 (x64) MD5
VC 2015-2019 (VC16 x64) 14.22.27821 MD5
Alternate to this is download following:
Microsoft VC packages VC2008, 2010, 2012, 2013, 2015-2019 zip files
All VC Redistribuable Packages (x86) (32bits) MD5
All VC Redistribuable Packages (x86_x64) (32 & 64bits) MD5

Consul agent are still marked as in critical state after terminating whole instance

I'm running consul inside docker and using gliderlabs/consul-agent
Here how i launch agents:
(export IP44=$(wget -qO- 169.254.169.254/latest/meta-data/local-ipv4);consul agent -config-dir=/config -data-dir /opt/consul -advertise $IP44 -atlas=${ATLAS_REPO} -atlas-join -atlas-token=${ATLAS_TOKEN})
in /config there is an agent.json file with following content (default from that docker image):
{
"client_addr": "0.0.0.0",
"data_dir": "/data",
"leave_on_terminate": true,
"dns_config": {
"allow_stale": true,
"max_stale": "1s"
}
}
The problem is that when I terminate my instance I'm still seeing it in atlas console and its marked as
Agent not live or unreachable
If I terminate a lot of instance there will be a lot of nodes in atlas that show up as not live and failed checks, and the whole infracture are marked as having critical problems because of it.
Isn't leave_on_terminate should be solving the problem? How to solve this issue?
UPD
Here what i see in logs:
2016-03-02 01:15:51 UTC+3
2016/03/01 22:15:51 [INFO] Graceful shutdown over 0
2016-03-02 01:15:51 UTC+3
2016-03-02 01:15:51 UTC+3
2016/03/01 22:15:51 [INFO] Down
2016-03-02 01:15:51 UTC+3
2016-03-02 01:15:51 UTC+3
2016/03/01 22:15:51 [INFO] consul: Deregistering fabio
2016-03-02 01:15:51 UTC+3
2016-03-02 01:15:51 UTC+3
2016/03/01 22:15:51 [INFO] consul: Health changed to #141
2016-03-02 01:16:03 UTC+3
2016/03/01 22:16:03 [INFO] memberlist: Suspect 577111e23c93 has failed, no acks received
2016-03-02 01:16:08 UTC+3
2016-03-02 01:16:06 UTC+3
2016/03/01 22:16:06 [INFO] memberlist: Suspect 577111e23c93 has failed, no acks received
2016-03-02 01:16:08 UTC+3
2016-03-02 01:16:08 UTC+3
2016/03/01 22:16:08 [INFO] memberlist: Marking 577111e23c93 as failed, suspect timeout reached
2016-03-02 01:16:13 UTC+3
2016-03-02 01:16:08 UTC+3
2016/03/01 22:16:08 [INFO] serf: EventMemberFailed: 577111e23c93 10.0.1.61
2016-03-02 01:16:13 UTC+3
2016-03-02 01:16:24 UTC+3
2016/03/01 22:16:24 [INFO] serf: attempting reconnect to 577111e23c93 10.0.1.61:8301
UPD This is happening on Amazon EC2 ecs optimized amis, don't know about other but i guess it would be same.

Windows 10 - WAMP Orange

I've installed WAMP 64bit server on my windows 10 enterprise machine. However I'm getting a orange icon. I've checked the following:
Apache -> Service, the start/resume service is greyed out and stop service is red. In addition Test Port 80 gives me:
Your port 80 is actually used by :
Server: Apache/2.4.9 (Win64) PHP/5.5.12
Mysql -> service, start/resume service is green. When I click on it nothing happens.
I've tried turning off the windows firewall, nothing happens.
I've checked for skype but it is actually not installed on my machine. Tried netstat-b in the command prompt and I can't see anything with port 80
Searched for mysql-bin.index to delete but nothing came up.
Any help on what I can try next will be grateful. Thanks
UPDATE
Following RiggsFolly advice below are the erros I am getting from MySQL via the windows event logger:
2015-08-08 08:31:08 7024 [Note] Plugin 'FEDERATED' is disabled.
2015-08-08 08:31:08 18ec InnoDB: Warning: Using innodb_additional_mem_pool_size is DEPRECATED. This option may be removed in future releases, together with the option innodb_use_sys_malloc and with the InnoDB's internal memory allocator.
2015-08-08 08:31:08 7024 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-08-08 08:31:08 7024 [Note] InnoDB: The InnoDB memory heap is disabled
2015-08-08 08:31:08 7024 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-08-08 08:31:08 7024 [Note] InnoDB: Memory barrier is not used
2015-08-08 08:31:08 7024 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-08-08 08:31:08 7024 [Note] InnoDB: Not using CPU crc32 instructions
2015-08-08 08:31:08 7024 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-08-08 08:31:08 7024 [Note] InnoDB: Completed initialization of buffer pool
2015-08-08 08:31:08 7024 [Note] InnoDB: Highest supported file format is Barracuda.
2015-08-08 08:31:08 18ec InnoDB: Operating system error number 87 in a file operation.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html
2015-08-08 08:31:08 7024 [ERROR] InnoDB: File C:\wamp\mysql\data\ib_logfile0: 'aio read' returned OS error 187. Cannot continue operation
Also from googling I tried adding the following line to my.ini file, but still get the same error:
innodb_flush_method=normal
In Windows 10 Microsoft decided to enable the "World Wide Web Publishing Service" (a webserver) by default.
Try and run in cmd:
netstat -aon | findstr :80
And see something like:
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 4
...
TCP [::]:80 [::]:0 LISTENING 4
TCP [::1]:80 [::1]:50558 ESTABLISHED 4
TCP [::1]:50558 [::1]:80 ESTABLISHED 11504
You know you have another service blocking port 80.
Solution:
Start -> Type "Services" -> Enter -> Find "World Wide Web Publishing Service" -> Select it -> Right click -> Properties -> Change Startup type: Automatic to Manual and click the Stop bottom -> Apply/OK.
Now you can right click on you WAMP icon and click "Restart All Services".
Viola!
I know this thread is a bit old but I found a solution to my problem.
From the WAMP icon, navigate to:
wampmanager -> Apache -> Service -> Install Service
wampmanager -> MySQL -> Service -> Install Service
When Apache failed for me, it suggested that Skype might be the problem, because it was utilizing the requisite ports. I quit Skype, restarted all WAMP services, and got the green light... or green W rather ;)
Change the port WAMP is using. By default, WAMP uses port 80. You can change the port by: right click WAMP > tools > "Use port other than #"
Hope this helps!

Admin site not show page

I want use Django 1.6 and Python 2.7 in pythonanywhere.com and I have a problem with admin site.
I use this tutorial
and when I start this page
I have
Not Found
The requested URL was not found on the server.
If you entered the URL manually please check your spelling and try again.
In Server log i had
2014-06-24 17:42:42 Tue Jun 24 17:42:42 2014 - received message 1 from emperor
2014-06-24 17:42:42 ...gracefully killing workers...
2014-06-24 17:42:42 Gracefully killing worker 1 (pid: 11706)...
2014-06-24 17:42:43 worker 1 buried after 1 seconds
2014-06-24 17:42:43 uWSGI: GAME OVER (insert coin)
2014-06-24 17:42:43 chdir(): No such file or directory [core/uwsgi.c line 1541]
2014-06-24 17:42:43 VACUUM: unix socket /var/sockets/daro822.pythonanywhere.com/socket removed.
2014-06-24 17:42:44 *** Starting uWSGI 2.0.5.1 (64bit) on [Tue Jun 24 17:42:43 2014] ***
2014-06-24 17:42:44 compiled with version: 4.8.1 on 05 June 2014 15:39:26
2014-06-24 17:42:44 os: Linux-3.11.0-22-generic #38-Ubuntu SMP Thu May 15 20:47:00 UTC 2014
2014-06-24 17:42:44 nodename: giles-liveweb6
2014-06-24 17:42:44 machine: x86_64
2014-06-24 17:42:44 clock source: unix
2014-06-24 17:42:44 pcre jit disabled
2014-06-24 17:42:44 detected number of CPU cores: 4
2014-06-24 17:42:44 current working directory: /etc/uwsgi/vassals
2014-06-24 17:42:44 detected binary path: /usr/local/bin/uwsgi
2014-06-24 17:42:44 using Linux cgroup /mnt/cgroups/cpu/user_types/free with mode 700
2014-06-24 17:42:44 assigned process 12031 to cgroup /mnt/cgroups/cpu/user_types/free/tasks
2014-06-24 17:42:44 using Linux cgroup /mnt/cgroups/cpuacct/users/daro822 with mode 700
2014-06-24 17:42:44 assigned process 12031 to cgroup /mnt/cgroups/cpuacct/users/daro822/tasks
2014-06-24 17:42:44 using Linux cgroup /mnt/cgroups/memory/user_types/free with mode 700
2014-06-24 17:42:44 assigned process 12031 to cgroup /mnt/cgroups/memory/user_types/free/tasks
2014-06-24 17:42:44 uWSGI running as root, you can use --uid/--gid/--chroot options
2014-06-24 17:42:44 chroot() to /mnt/chroots/daro822
2014-06-24 17:42:44 setgid() to 60000
2014-06-24 17:42:44 setuid() to 327191
2014-06-24 17:42:44 limiting number of processes to 15...
2014-06-24 17:42:44 your processes number limit is 15
2014-06-24 17:42:44 your memory page size is 4096 bytes
2014-06-24 17:42:44 detected max file descriptor number: 123456
2014-06-24 17:42:44 building mime-types dictionary from file /etc/mime.types...
2014-06-24 17:42:44 536 entry found
2014-06-24 17:42:44 lock engine: pthread robust mutexes
2014-06-24 17:42:44 thunder lock: disabled (you can enable it with --thunder-lock)
2014-06-24 17:42:44 uwsgi socket 0 bound to UNIX address /var/sockets/daro822.pythonanywhere.com/socket fd 7
2014-06-24 17:42:44 Python version: 2.7.5+ (default, Feb 27 2014, 19:40:54) [GCC 4.8.1]
2014-06-24 17:42:44 *** Python threads support is disabled. You can enable it with --enable-threads ***
2014-06-24 17:42:44 Python main interpreter initialized at 0x23507e0
2014-06-24 17:42:44 your server socket listen backlog is limited to 100 connections
2014-06-24 17:42:44 your mercy for graceful operations on workers is 60 seconds
2014-06-24 17:42:44 setting request body buffering size to 65536 bytes
2014-06-24 17:42:44 mapped 333952 bytes (326 KB) for 1 cores
2014-06-24 17:42:44 *** Operational MODE: single process ***
2014-06-24 17:42:44 WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x23507e0 pid: 12031 (default app)
2014-06-24 17:42:44 *** uWSGI is running in multiple interpreter mode ***
2014-06-24 17:42:44 spawned uWSGI master process (pid: 12031)
2014-06-24 17:42:44 spawned uWSGI worker 1 (pid: 12032, cores: 1)
2014-06-24 17:42:44 spawned 2 offload threads for uWSGI worker 1
2014-06-24 17:42:45 announcing my loyalty to the Emperor...

Can't start mysqld/mysql

first I have to say I'm a mysql newbie.
Basically mysql does not start and says:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysql.sock' (2)
Now Here are the steps with which I ruined everything:
Due to it was not possible to log into my system (otrs) I thought a restore of an older backup would help.
While the restore process the backup manager said I need to drop the old db. I tried it but the process did not finish and so I cancelled it.
After this I tried to reboot the system but had huge problems with this but when I finished the reboot I tried to run mysql but it said it could not find the mysql.socket.
At this point I thought it would be better to reinstall mysql and did so but this did not help.
When trying to start mysqld as mysql user it said:
[ERROR] Found 1 prepared transactions! It means that mysqld was not shut down properly last time and critical recovery information (last binlog or tc.log file) was manually deleted after a crash. You have to start mysqld with --tc-heuristic-recover switch to commit or rollback pending transactions.
trying both did not help:
mysql:/root> /usr/sbin/mysqld --tc-heuristic-recover commit
131213 16:46:00 InnoDB: The InnoDB memory heap is disabled
131213 16:46:00 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131213 16:46:00 InnoDB: Compressed tables use zlib 1.2.7
131213 16:46:00 InnoDB: Using Linux native AIO
131213 16:46:00 InnoDB: Initializing buffer pool, size = 128.0M
131213 16:46:00 InnoDB: Completed initialization of buffer pool
131213 16:46:00 InnoDB: highest supported file format is Barracuda.
131213 16:46:01 InnoDB: Waiting for the background threads to start
131213 16:46:02 Percona XtraDB (http://www.percona.com) 5.5.33-MariaDB-31.1 started; log sequence number 3710898915
131213 16:46:02 [Note] Server socket created on IP: '0.0.0.0'.
131213 16:46:02 [ERROR] Event Scheduler: Failed to open table mysql.event
131213 16:46:02 [ERROR] Event Scheduler: Error while loading from disk.
131213 16:46:02 [Note] Event Scheduler: Purging the queue. 0 events
131213 16:46:02 [ERROR] Aborting
131213 16:46:02 InnoDB: Starting shutdown...
131213 16:46:03 InnoDB: Shutdown completed; log sequence number 3710898915
131213 16:46:03 [Note] /usr/sbin/mysqld: Shutdown complete
Running systemctl start mysql.service fails anytime:
mysql.service - LSB: Start the MySQL database server
Loaded: loaded (/etc/init.d/mysql)
Active: failed (Result: timeout) since Fri, 13 Dec 2013 16:27:12 +0100; 23min ago
Process: 8845 ExecStart=/etc/init.d/mysql start (code=killed, signal=TERM)
CGroup: name=systemd:/system/mysql.service
Dec 13 16:31:21 mysql[8845]: otrs.user_preferences OK
Dec 13 16:31:21 mysql[8845]: otrs.users OK
Dec 13 16:31:21 mysql[8845]: otrs.valid OK
Dec 13 16:31:21 mysql[8845]: otrs.virtual_fs OK
Dec 13 16:31:21 mysql[8845]: otrs.virtual_fs_db OK
Dec 13 16:31:21 mysql[8845]: otrs.virtual_fs_preferences OK
Dec 13 16:31:21 mysql[8845]: otrs.web_upload_cache OK
Dec 13 16:31:21 mysql[8845]: otrs.xml_storage OK
Dec 13 16:31:21 mysql[8845]: performance_schema
Dec 13 16:31:21 mysql[8845]: Phase 3/3: Running 'mysql_fix_privilege_tables'...
I have absolutely no clue what to do. Could anyone help me?
How can the otrs tables been droped/deleted without using the mysql DROP command?
Would this help anyway?
Thank you.
mysqld --tc-heuristic-recover=ROLLBACK
Didn't quite do the magic for me. However the following worked
mysqld_safe --tc-heuristic-recover=COMMIT
I was able to overcome this issue on CentOS 6 with
service mysql start --tc-heuristic-recover=ROLLBACK
which ultimately discarded the commit in question. I'm not sure if systemd scripts support passing additional parameters. Maybe you could try and run it manually with the =
mysqld --tc-heuristic-recover=ROLLBACK
On mysql 5.6.x, and because of this off-by-one https://bugs.mysql.com/bug.php?id=70860 bug, I was able to get past this by doing
sudo service mysql start --tc-heuristic-recover=0
which presumably commits the tx.
Answer from ->> https://www.youtube.com/watch?v=qr-t8ksYO78
go to my.cnf file, note that you will find multiple my.cnf file, i had to look at all of them to find this->
# The MySQL server
[mysqld]
user = mysql
port=3306
socket = /opt/lampp/var/mysql/mysql.sock
Copy the socket path and writ it like ->
mysql -u root -p --socket=/opt/lampp/var/mysql/mysql.sock
Thanks
If any of the above doesn't work for you.
Edit mysql config file by doing the below:
sudo nano /etc/mysql/my.cnf and add tc-heuristic-recover=rollback under [mysqld]
Try to start mysql/mariadb server by
sudo systemctl start mysqld.service and it should fail with this error Can't init tc log.
Don't worry, just edit the config file again and comment tc-heuristic-recover=rollback
Try to start the mysql server again with sudo systemctl start mysqld.service and it should work fine.
Check the status to confirm systemctl status mysqld.service
You can try this command that I use Centos 7 that is work:
#mysqld_safe --wsrep-recover --tc-heuristic-recover=ROLLBACK
and then restart a service again.