XAMPP "MySQL shutdown unexpectedly" Win10 - mysql

7:23:46 PM [main] Initializing Control Panel
7:23:46 PM [main] Windows Version: Windows 8 64-bit
7:23:46 PM [main] XAMPP Version: 5.6.11
7:23:46 PM [main] Control Panel Version: 3.2.1 [ Compiled: May 7th 2013 ]
7:23:46 PM [main] You are not running with administrator rights! This will work for
7:23:46 PM [main] most application stuff but whenever you do something with services
7:23:46 PM [main] there will be a security dialogue or things will break! So think
7:23:46 PM [main] about running this application with administrator rights!
7:23:46 PM [main] XAMPP Installation Directory: "e:\xampp\"
7:23:46 PM [main] Checking for prerequisites
7:23:46 PM [main] All prerequisites found
7:23:46 PM [main] The Apache module is disabled
7:23:46 PM [main] The FileZilla module is disabled
7:23:46 PM [main] The Mercury module is disabled
7:23:46 PM [main] The Tomcat module is disabled
7:23:46 PM [main] Enabling autostart for module "MySQL"
7:23:46 PM [main] Starting Check-Timer
7:23:46 PM [main] Control Panel Ready
7:23:47 PM [mysql] Autostart active: starting...
7:23:47 PM [mysql] Attempting to start MySQL app...
7:23:47 PM [mysql] Status change detected: running
7:23:48 PM [mysql] Status change detected: stopped
7:23:48 PM [mysql] Error: MySQL shutdown unexpectedly.
7:23:48 PM [mysql] This may be due to a blocked port, missing dependencies,
7:23:48 PM [mysql] improper privileges, a crash, or a shutdown by another method.
7:23:48 PM [mysql] Press the Logs button to view error logs and check
7:23:48 PM [mysql] the Windows Event Viewer for more clues
7:23:48 PM [mysql] If you need more help, copy and post this
7:23:48 PM [mysql] entire log window on the forums
I had everything working yesterday, but for some reason I can't get it to work now. I tried deleting and reinstalling the xampp file. It says I'm not running admin rights, but I'm the only user and admin. I've tried a few suggestions already posted on here, but I cannot get it to work. Any ideas?
2015-08-18 21:07:18 4436 [Note] Plugin 'FEDERATED' is disabled.
2015-08-18 21:07:18 2988 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-18 21:07:18 4436 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-08-18 21:07:18 4436 [Note] InnoDB: The InnoDB memory heap is disabled
2015-08-18 21:07:18 4436 [Note] InnoDB: Mutexes and rw_locks use Windows
interlocked functions
2015-08-18 21:07:18 4436 [Note] InnoDB: Memory barrier is not used
2015-08-18 21:07:18 4436 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-08-18 21:07:18 4436 [Note] InnoDB: Not using CPU crc32 instructions
2015-08-18 21:07:18 4436 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-08-18 21:07:18 4436 [Note] InnoDB: Completed initialization of buffer pool
2015-08-18 21:07:19 4436 [Note] InnoDB: Highest supported file format is
Barracuda.
2015-08-18 21:07:23 4436 [Note] InnoDB: 128 rollback segment(s) are active.
2015-08-18 21:07:23 4436 [Note] InnoDB: Waiting for purge to start
2015-08-18 21:07:23 4436 [Note] InnoDB: 5.6.25 started; log sequence number 1665234
2015-08-18 21:07:23 4436 [Note] Server hostname (bind-address): '*'; port: 3306
2015-08-18 21:07:23 4436 [Note] IPv6 is available.
2015-08-18 21:07:23 4436 [Note] - '::' resolves to '::';
2015-08-18 21:07:23 4436 [Note] Server socket created on IP: '::'.
2015-08-18 21:07:25 4436 [Note] Event Scheduler: Loaded 0 events
2015-08-18 21:07:25 4436 [Note] mysql\bin\mysqld.exe: ready for connections.
Version: '5.6.25' socket: '' port: 3306 MySQL Community Server (GPL)

I restarted my computer and noticed that there was an update available. Once I did the update and restarted, completely deleted xampp and reinstalled, MySQL is functioning correctly again. Perhaps because there was an update available, it wasn't letting it run?
TL;DR: Check for updates, restart computer, reinstall xampp. MySQL should work.

Related

MariaDB does not start - gtid_slave_pos.ibd & Could not find a valid tablespace file for `mysql`.`gtid_slave_pos``

Our Windows Server for Joget was shut down directly without executing the Joget shutdown program. When I restarted Joget, it could not connect to MariaDB instance.
Folder structure
catalina.2022-03-07:
07-Mar-2022 14:31:45.958 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version: Apache Tomcat/8.5.23
07-Mar-2022 14:31:45.958 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 28 2017 10:30:11 UTC
07-Mar-2022 14:31:45.958 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server number: 8.5.23.0
07-Mar-2022 14:31:45.958 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows NT (unknown)
07-Mar-2022 14:31:45.958 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0
07-Mar-2022 14:31:45.958 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: x86
07-Mar-2022 14:31:45.958 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Joget-v6-Enterprise\jre1.8.0_112
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_112-b15
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Joget-v6-Enterprise\apache-tomcat-8.5.23
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Joget-v6-Enterprise\apache-tomcat-8.5.23
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=.\apache-tomcat-8.5.23\conf\logging.properties
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:MaxHeapSize=2048M
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx1024M
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dwflow.home=./wflow/
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:+UseConcMarkSweepGC
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -javaagent:./wflow/aspectjweaver-1.8.5.jar
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=.\apache-tomcat-8.5.23
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=.\apache-tomcat-8.5.23
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=.\apache-tomcat-8.5.23\temp
07-Mar-2022 14:31:45.974 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [C:\Joget-v6-Enterprise\jre1.8.0_112\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files\apache-maven-3.6.0\bin;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;C:\curl\curl-7.80.0-win64-mingw\bin;C:\Users\Administrator.PANGEOCORP\AppData\Local; C:\Program Files\apache-maven-3.6.0\bin;.]
07-Mar-2022 14:31:46.177 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
07-Mar-2022 14:31:46.271 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
07-Mar-2022 14:31:46.286 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-80"]
07-Mar-2022 14:31:46.286 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
07-Mar-2022 14:31:46.286 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["https-jsse-nio-8443"]
07-Mar-2022 14:31:46.536 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
07-Mar-2022 14:31:46.536 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["https-jsse-nio-443"]
07-Mar-2022 14:31:46.552 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read
07-Mar-2022 14:31:46.552 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1160 ms
07-Mar-2022 14:31:46.599 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
07-Mar-2022 14:31:46.599 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.23
07-Mar-2022 14:31:46.614 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\jw.war]
07-Mar-2022 14:31:59.521 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
07-Mar-2022 14:32:08.677 SEVERE [localhost-startStop-1] org.apache.tomcat.jdbc.pool.ConnectionPool.init Unable to create initial connections of pool.
java.sql.SQLNonTransientConnectionException: Could not connect to address=(host=localhost)(port=3307)(type=master) : Connection refused: connect
at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:156)
at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getException(ExceptionMapper.java:118)
at org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.throwException(ExceptionMapper.java:92)
at org.mariadb.jdbc.Driver.connect_aroundBody0(Driver.java:111)
at org.mariadb.jdbc.Driver.connect_aroundBody1$advice(Driver.java:151)
at org.mariadb.jdbc.Driver.connect(Driver.java:1)
at com.mysql.jdbc.Driver.connect_aroundBody0(Driver.java:29)
at com.mysql.jdbc.Driver.connect_aroundBody1$advice(Driver.java:151)
at com.mysql.jdbc.Driver.connect(Driver.java:1)
at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(PooledConnection.java:310)
at org.apache.tomcat.jdbc.pool.PooledConnection.connect(PooledConnection.java:203)
at org.apache.tomcat.jdbc.pool.ConnectionPool.createConnection(ConnectionPool.java:718)
at org.apache.tomcat.jdbc.pool.ConnectionPool.borrowConnection(ConnectionPool.java:650)
at org.apache.tomcat.jdbc.pool.ConnectionPool.init(ConnectionPool.java:468)
at org.apache.tomcat.jdbc.pool.ConnectionPool.<init>(ConnectionPool.java:143)
at org.apache.tomcat.jdbc.pool.DataSourceProxy.pCreatePool(DataSourceProxy.java:118)
at org.apache.tomcat.jdbc.pool.DataSourceProxy.createPool(DataSourceProxy.java:107)
at org.apache.tomcat.jdbc.pool.DataSourceProxy.getConnection(DataSourceProxy.java:131)
at org.joget.commons.util.DynamicDataSource.getConnection_aroundBody0(DynamicDataSource.java:48)
at org.joget.commons.util.DynamicDataSource$AjcClosure1.run(DynamicDataSource.java:1)
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
at org.joget.commons.util.AnalyzerAspect.analyzeDbcpOpenConnections(AnalyzerAspect.java:166)
at org.joget.commons.util.DynamicDataSource.getConnection(DynamicDataSource.java:20)
at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:139)
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcServicesImpl.java:279)
at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:124)
at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:111)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:234)
at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:206)
at org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1887)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1845)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1930)
at org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSessionFactory(LocalSessionFactoryBuilder.java:372)
at org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:454)
at org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:439)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1689)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1627)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1534)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1281)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1534)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1281)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:551)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:713)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:531)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.joget.commons.spring.web.CustomContextLoaderListener.contextInitialized(CustomContextLoaderListener.java:31)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:988)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1860)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: Could not connect to address=(host=localhost)(port=3307)(type=master) : Connection refused: connect
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1027)
at org.mariadb.jdbc.internal.util.Utils.retrieveProxy(Utils.java:483)
at org.mariadb.jdbc.Driver.connect_aroundBody0(Driver.java:106)
... 78 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connect(AbstractConnectProtocol.java:398)
at org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1020)
... 80 more
07-Mar-2022 14:32:09.208 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\jw.war] has finished in [22,594] ms
07-Mar-2022 14:32:09.208 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\jwdesigner.war]
07-Mar-2022 14:32:10.224 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
07-Mar-2022 14:32:10.271 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\jwdesigner.war] has finished in [1,063] ms
07-Mar-2022 14:32:10.271 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\docs]
07-Mar-2022 14:32:10.302 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\docs] has finished in [31] ms
07-Mar-2022 14:32:10.302 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\examples]
07-Mar-2022 14:32:10.521 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\examples] has finished in [219] ms
07-Mar-2022 14:32:10.521 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\host-manager]
07-Mar-2022 14:32:10.536 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\host-manager] has finished in [15] ms
07-Mar-2022 14:32:10.536 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\manager]
07-Mar-2022 14:32:10.552 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\manager] has finished in [16] ms
07-Mar-2022 14:32:10.552 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\ROOT]
07-Mar-2022 14:32:10.583 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Joget-v6-Enterprise\apache-tomcat-8.5.23\webapps\ROOT] has finished in [31] ms
07-Mar-2022 14:32:10.583 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
07-Mar-2022 14:32:10.599 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-80"]
07-Mar-2022 14:32:10.599 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["https-jsse-nio-8443"]
07-Mar-2022 14:32:10.599 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["https-jsse-nio-443"]
07-Mar-2022 14:32:10.615 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 24051 ms
Then I checked the log for MariaDB, there are two errors:
Aras-Server.err
2022-03-07 14:41:01 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-03-07 14:41:01 0 [Note] InnoDB: Uses event mutexes
2022-03-07 14:41:01 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2022-03-07 14:41:01 0 [Note] InnoDB: Number of pools: 1
2022-03-07 14:41:01 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-03-07 14:41:01 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2022-03-07 14:41:01 0 [Note] InnoDB: Completed initialization of buffer pool
2022-03-07 14:41:01 0 [Note] InnoDB: Starting crash recovery from checkpoint LSN=5814239621
2022-03-07 14:41:05 0 [ERROR] InnoDB: Refusing to load '.\mysql\gtid_slave_pos.ibd' (id=4, flags=0x21); dictionary contains id=3, flags=0x21
2022-03-07 14:41:05 0 [ERROR] InnoDB: Could not find a valid tablespace file for ``mysql`.`gtid_slave_pos``. Please refer to http://dev.mysql.com/doc/refman/5.7/en/innodb-troubleshooting-datadict.html for how to resolve the issue.
2022-03-07 14:41:05 0 [Warning] InnoDB: Ignoring tablespace for `mysql`.`gtid_slave_pos` because it could not be opened.
2022-03-07 14:41:05 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-03-07 14:41:05 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2022-03-07 14:41:05 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-03-07 14:41:05 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-03-07 14:41:05 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2022-03-07 14:41:05 0 [Note] InnoDB: Waiting for purge to start
2022-03-07 14:41:05 0 [Note] InnoDB: Waiting for purge to start
2022-03-07 14:41:05 0 [Note] InnoDB: 10.3.9 started; log sequence number 5814239630; transaction id 17492792
2022-03-07 14:41:05 0 [Note] InnoDB: Loading buffer pool(s) from C:\Joget-DX7-Enterprise\mariadb-10.3.9-win32\data\ib_buffer_pool
2022-03-07 14:41:05 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-03-07 14:41:05 0 [Note] Server socket created on IP: '::'.
my.ini
[mysqld]
port=3307
character-set-server=utf8
collation-server=utf8_unicode_ci
innodb_strict_mode=0
[client]
port=3307
I tried adding "innodb_force_recovery=1/2/3" inside my.ini, I got:
Aras-Server.err
2022-03-07 16:31:19 0 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2022-03-07 16:31:19 0 [Note] InnoDB: Uses event mutexes
2022-03-07 16:31:19 0 [Note] InnoDB: Compressed tables use zlib 1.2.3
2022-03-07 16:31:19 0 [Note] InnoDB: Number of pools: 1
2022-03-07 16:31:19 0 [Note] InnoDB: Using SSE2 crc32 instructions
2022-03-07 16:31:19 0 [Note] InnoDB: Initializing buffer pool, total size = 512M, instances = 1, chunk size = 128M
2022-03-07 16:31:19 0 [Note] InnoDB: Completed initialization of buffer pool
2022-03-07 16:31:21 0 [Note] InnoDB: 128 out of 128 rollback segments are active.
2022-03-07 16:31:21 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
2022-03-07 16:31:21 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-03-07 16:31:21 0 [Note] InnoDB: Setting file '.\ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-03-07 16:31:21 0 [Note] InnoDB: File '.\ibtmp1' size is now 12 MB.
2022-03-07 16:31:21 0 [Note] InnoDB: Waiting for purge to start
2022-03-07 16:31:21 0 [Note] InnoDB: 10.3.9 started; log sequence number 5814239648; transaction id 17492792
2022-03-07 16:31:21 0 [Note] InnoDB: !!! innodb_force_recovery is set to 1 !!!
2022-03-07 16:31:21 0 [Note] InnoDB: Loading buffer pool(s) from C:\Joget-DX7-Enterprise\mariadb-10.3.9-win32\data\ib_buffer_pool
2022-03-07 16:31:21 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-03-07 16:31:21 0 [Note] Server socket created on IP: '::'.
When I tried to connect to the database, I got:
C:\Joget-DX7-Enterprise\mariadb-10.3.9-win32\bin>mysql -uroot -p
Enter password:
ERROR 2002 (HY000): Can't connect to MySQL server on 'localhost' (10061)
I want to let this database work again, please help. Thank you.
your databse is running, because the log shows
2022-03-07 16:31:21 0 [Note] Server socket created on IP: '::'.
your server runs on port 3307 accouding to your ini file.
mysql -uroot -p --port=3307
ths port information you must also add to your java connect string

Error in starting MYSQL in XAMPP

When I start xampp it gives me an error in mysql. I'm using windows 10.
Here is the contents of error log:
2015-11-10 15:26:56 10fc 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-11-10 15:26:56 4348 [Note] InnoDB: Using mutexes to ref count buffer pool pages
2015-11-10 15:26:56 4348 [Note] InnoDB: The InnoDB memory heap is disabled
2015-11-10 15:26:56 4348 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-11-10 15:26:56 4348 [Note] InnoDB: Memory barrier is not used
2015-11-10 15:26:56 4348 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-11-10 15:26:56 4348 [Note] InnoDB: Not using CPU crc32 instructions
2015-11-10 15:26:56 4348 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-11-10 15:26:56 4348 [Note] InnoDB: Completed initialization of buffer pool
2015-11-10 15:26:56 4348 [Note] InnoDB: Highest supported file format is Barracuda.
2015-11-10 15:26:57 4348 [Note] InnoDB: 128 rollback segment(s) are active.
2015-11-10 15:26:57 4348 [Note] InnoDB: Waiting for purge to start
2015-11-10 15:26:57 4348 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.26-74.0 started; log sequence number 1835027
2015-11-10 15:26:57 6140 [Note] InnoDB: Dumping buffer pool(s) not yet started
2015-11-10 15:26:57 4348 [Note] Plugin 'FEEDBACK' is disabled.
2015-11-10 15:26:57 4348 [Note] Server socket created on IP: '::'.
2015-11-10 15:26:57 4348 [Note] Event Scheduler: Loaded 0 events
2015-11-10 15:26:57 4348 [Note] C:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '10.1.8-MariaDB' socket: '' port: 3306 mariadb.org binary distribution
2015-11-10 15:27:11 5152 [Note] C:\xampp\mysql\bin\mysqld.exe: Normal shutdown
When I opened XAMPP and click start MySQL button it gives me an error.
9:12:53 PM [mysql] Error: MySQL shutdown unexpectedly.
9:12:53 PM [mysql] This may be due to a blocked port, missing dependencies,
9:12:53 PM [mysql] improper privileges, a crash, or a shutdown by another method.
9:12:53 PM [mysql] Press the Logs button to view error logs and check
9:12:53 PM [mysql] the Windows Event Viewer for more clues
9:12:53 PM [mysql] If you need more help, copy and post this
9:12:53 PM [mysql] entire log window on the forums
UPDATE
Here is the screenshot:
First: Close Xampp.
Second: Go to \xampp\mysql\backup.
Third: Copy all files in directory except ibdata1.
Fourth: Go to \xampp\mysql\data.
Fifth: Paste the files that you copied from \xampp\mysql\ backup
(Replace the files when asked).
Sixth: Start Xampp.
Follow these steps properly and carefully.
This error is caused because there is already MySQL installed (of different version) which is using port 3306.
On the xampp control panel you will find 'MySQL' and several options like Start, Config, etc beside that.
Select Config and open the file named 'my.ini'. It should open in a notepad. Press Ctrl + F and Find '3306' and change it to 3308 and Save the file.
NOTE: YOU WILL FIND 5 INSTANCES OF 3306. CHANGE ALL OF THEM TO 3308.
Now Open the Config which is located on the top-right of the Xampp control panel. A window should appear. Find 'Service and Port setting'. Click the button and once again a window should appear.
5.On the MySQL tab type '3308'. And Save the changes.
6.Search 'services.msc' on Windows search. A Window should popup. Scroll down until you find 'MySQL'.
Right click on MySQL and select STOP.
Now Run Command Prompt as administrator and type the following command.
sc delete mysql
This will successfully delete previously installed mysql.
Quit the xampp control panel completely and start a new fresh one.
Now your MySQL should be up and running.
Probably your 3306 or whatever you use is being used by other applications. May be you don't know that XAMPP usually has problems with apps like Skype. If you are running Skype try to close it and open XAMPP. You can also change default ports for HTTP and MySQL.
To Edit Apache ports open apache.conf and restart the server.
To Edit MySql ports open my.cnf and restart the service.
You may also take a look to this post. May be you need to delete your DB files due corruption but it may be not the reason if you just installed fresh Xampp instance.
XAMPP - MySQL shutdown unexpectedly
UPDATE
Here you have a good screenshot of how to change ports on Skype if you prefer.
https://stackoverflow.com/a/16351807/3518053
The problem is that you have two instances of mysql installed in your computer. Check if the process mysqld.exe is already running via task manager and terminate it if present. Then open services.msc via run and remove all instances of mysql if any(terminate it before removing), reboot your machine and run XAMPP again. This will solve your problem.
I came across a similar problem, you can try this here
Remember to backup your data first!
Using cmd as administrator uninstall
xampp
all mysql database
mysql service
then remove the service using sc delete and remove all directory of XAMPP. Then reinstall it again.

MariaDB/MySQL resource limit was exceeded

I'm trying to connect to MariaDB/Mysql installed on my CentOS 7 and get the following error when trying to connect using: mysql -u root -p.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
I have tried connecting to it by specifying the IP Address instead of using localhost but I get the same error.
When I try to get the MariaDB status, I get the following message (/bin/systemctl status mariadb.service):
mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: failed (Result: resources)
And starting it yields the following error (/bin/systemctl start mariadb.service):
Job for mariadb.service failed because a configured resource limit was exceeded. See "systemctl status mariadb.service" and "journalctl -xe" for details.
I also looked into the logs located at /var/log/mariadb/mariadb.log
160408 12:21:00 mysqld_safe mysqld from pid file /var/run/mariadb/mariadb.pid ended
160408 16:11:01 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
160408 16:11:01 [Note] /usr/libexec/mysqld (mysqld 5.5.47-MariaDB) starting as process 3054 ...
160408 16:11:02 InnoDB: The InnoDB memory heap is disabled
160408 16:11:02 InnoDB: Mutexes and rw_locks use GCC atomic builtins
160408 16:11:02 InnoDB: Compressed tables use zlib 1.2.7
160408 16:11:02 InnoDB: Using Linux native AIO
160408 16:11:02 InnoDB: Initializing buffer pool, size = 128.0M
160408 16:11:02 InnoDB: Completed initialization of buffer pool
160408 16:11:02 InnoDB: highest supported file format is Barracuda.
160408 16:11:04 InnoDB: Waiting for the background threads to start
160408 16:11:05 Percona XtraDB (http://www.percona.com) 5.5.46-MariaDB-37.6 started; log sequence number 54018416776
160408 16:11:06 [Note] Plugin 'FEEDBACK' is disabled.
160408 16:11:07 [Note] Server socket created on IP: '0.0.0.0'.
160408 16:11:07 [Note] Event Scheduler: Loaded 0 events
160408 16:11:07 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.47-MariaDB' socket: '/var/lib/mysql/mysql.sock' port: 3306 MariaDB Server
160409 6:26:06 InnoDB: Error: Write to file ./ibdata1 failed at offset 9 615514112.
InnoDB: 1048576 bytes should have been written, only 585728 were written.
InnoDB: Operating system error number 28.
InnoDB: Check that your OS and file system support files of this size.
InnoDB: Check also that the disk is not full or a disk quota exceeded.
InnoDB: Error number 28 means 'No space left on device'.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.5/en/operating-system-error-codes.html
160409 6:26:06 InnoDB: Assertion failure in thread 140463216400128 in file os0file.c line 4377
Anyone has any ideas on how to fix this error?
Thank you :)
> perror 28
OS error code 28: No space left on device
Need I say more?

XAMPP MySQL not working on startup

10:01:04 PM [mysql] Error: MySQL shutdown unexpectedly.
10:01:04 PM [mysql] This may be due to a blocked port, missing dependencies,
10:01:04 PM [mysql] improper privileges, a crash, or a shutdown by another method.
10:01:04 PM [mysql] Press the Logs button to view error logs and check
10:01:04 PM [mysql] the Windows Event Viewer for more clues
10:01:04 PM [mysql] If you need more help, copy and post this
10:01:04 PM [mysql] entire log window on the forums
I get this error when trying to start MySQL in xampp. Here is the mysql_error.log file:
31127 21:56:14 [Note] Plugin 'FEDERATED' is disabled.
131127 21:56:14 InnoDB: The InnoDB memory heap is disabled
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
131127 21:56:15 InnoDB: Waiting for the background threads to start
131127 21:56:16 InnoDB: 5.5.32 started; log sequence number 22856689
131127 21:56:16 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
131127 21:56:16 [Note] - '0.0.0.0' resolves to '0.0.0.0';
131127 21:56:16 [Note] Server socket created on IP: '0.0.0.0'.
Thanks!
It may be the port that MySQL is trying to listen to is already used. You can try going to the command prompt and run netstat to see what programs are using which ports.
C:\> netstat -a -b

Configuring InnoDB for MySQL database on Mac

I'm configuring a Mac 10.6 server and I'm having trouble configuring MySQL to support InnoDB.
MySQL starts and works without a problem with my original my.cnf file. Here it is:
[mysqld]
#Don't resolve hostnames. All hostnames are IP's or 'localhost'.
skip-name-resolve
#Don't give threads different priorities.
skip-thread-priority
However, when I add this to support InnoDB, MySQL will not start.
[mysqld]
#Don't resolve hostnames. All hostnames are IP's or 'localhost'.
skip-name-resolve
#Don't give threads different priorities.
skip-thread-priority
# Uncomment the following if you are using InnoDB tables
innodb_data_home_dir=/var/mysql/
innodb_data_file_path=ibdata1:2000M;ibdata2:10M:autoextend
innodb_log_group_home_dir=/var/mysql/
innodb_log_arch_dir=/var/mysql/
# You can set .._buffer_pool_size up to 50 - 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size=384M
innodb_additional_mem_pool_size=20M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size=100M
innodb_log_buffer_size=8M
innodb_flush_log_at_trx_commit=1
innodb_lock_wait_timeout=50
I confirmed that /var/mysql/ exists and has correct permissions. I'm not sure how to troubleshoot mysql to learn what is causing the problem.
MySQL is located at /usr/local/ :
lrwxr-xr-x 1 root wheel 24 Aug 26 12:17 mysql -> mysql-5.5.15-osx10.6-x86
drwxr-xr-x 16 root wheel 544 Jul 13 16:26 mysql-5.5.15-osx10.6-x86
Thank you very much for your help.
Mike
=========
Here are several lines from the end of the log file:
111027 14:41:07 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.5.15' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL)
111027 21:48:57 [Note] /usr/local/mysql/bin/mysqld: Normal shutdown
111027 21:48:57 [Note] Event Scheduler: Purging the queue. 0 events
111027 21:48:57 InnoDB: Starting shutdown...
111027 21:48:57 InnoDB: Shutdown completed; log sequence number 1595675
111027 21:48:57 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
111027 21:49:47 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
111027 21:49:47 [Warning] The --skip-thread-priority startup option is deprecated and will be removed in MySQL 7.0. This option has no effect as the implied behavior is already the default.
111027 21:49:47 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive
111027 21:49:47 [Note] Plugin 'FEDERATED' is disabled.
111027 21:49:47 InnoDB: The InnoDB memory heap is disabled
111027 21:49:47 InnoDB: Mutexes and rw_locks use GCC atomic builtins
111027 21:49:47 InnoDB: Compressed tables use zlib 1.2.3
111027 21:49:47 InnoDB: Initializing buffer pool, size = 128.0M
111027 21:49:47 InnoDB: Completed initialization of buffer pool
111027 21:49:47 InnoDB: highest supported file format is Barracuda.
111027 21:49:47 InnoDB: Waiting for the background threads to start
111027 21:49:48 InnoDB: 1.1.8 started; log sequence number 1595675
111027 21:49:48 [Warning] 'user' entry 'root#myservername.local' ignored in --skip-name-resolve mode.
111027 21:49:48 [Warning] 'user' entry '#myservername.local' ignored in --skip-name-resolve mode.
111027 21:49:48 [Warning] 'proxies_priv' entry '# root#myservername.local' ignored in --skip-name-resolve mode.
111027 21:49:48 [Note] Event Scheduler: Loaded 0 events
111027 21:49:48 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.5.15' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server (GPL)
111027 21:53:04 [Note] /usr/local/mysql/bin/mysqld: Normal shutdown
111027 21:53:04 [Note] Event Scheduler: Purging the queue. 0 events
111027 21:53:04 InnoDB: Starting shutdown...
111027 21:53:04 InnoDB: Shutdown completed; log sequence number 1595675
111027 21:53:04 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete
I'm not sure how to read this. Can you assist?
Mike
What is in your mysql error log file? That usually will tell you why mysql won't start. If you don't know where your log file is, in mysql run this command:
show variables like "%log_error%";
The you can tail that file to see what the error was. Of course, you will need to turn Innodb support off so you can start mysql to run the above command. Then you can shutdown mysql, enable Innodb and try starting it again. Then look at the log file.