I have installed Apache and start Apache service in port 80. But after starting Apache service, MySql service not start and give me this error:
11:53:47 AM [mysql] Attempting to start MySQL service...
11:53:47 AM [mysql] Status change detected: running
11:53:53 AM [mysql] Status change detected: stopped
11:53:53 AM [mysql] Error: MySQL shutdown unexpectedly.
11:53:53 AM [mysql] This may be due to a blocked port, missing dependencies,
11:53:53 AM [mysql] improper privileges, a crash, or a shutdown by another method.
11:53:53 AM [mysql] Press the Logs button to view error logs and check
11:53:53 AM [mysql] the Windows Event Viewer for more clues
11:53:53 AM [mysql] If you need more help, copy and post this
11:53:53 AM [mysql] entire log window on the forums
So I have copy the error in log file:
2014-10-06 19:42:58 6820 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
2014-10-06 19:42:58 6820 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2014-10-06 19:42:58 6820 [ERROR] Aborting
2014-10-06 19:49:17 3392 [ERROR] Can't start server: Bind on TCP/IP port: No such file or directory
2014-10-06 19:49:17 3392 [ERROR] Do you already have another mysqld server running on port: 3306 ?
2014-10-06 19:49:17 3392 [ERROR] Aborting
2014-10-06 19:55:59 6260 [ERROR] InnoDB: Cannot create D:\xampp1\mysql\data\ib_logfile1
2014-10-06 19:55:59 6260 [ERROR] Plugin 'InnoDB' init function returned error.
2014-10-06 19:55:59 6260 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2014-10-06 19:55:59 6260 [ERROR] Unknown/unsupported storage engine: InnoDB
2014-10-06 19:55:59 6260 [ERROR] Aborting
2014-10-06 19:57:45 7920 [ERROR] InnoDB: space header page consists of zero bytes in data file D:\xampp1\mysql\data\ibdata1
2014-10-06 19:57:45 7920 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
2014-10-06 19:57:45 7920 [ERROR] Plugin 'InnoDB' init function returned error.
2014-10-06 19:57:45 7920 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2014-10-06 19:57:45 7920 [ERROR] Unknown/unsupported storage engine: InnoDB
2014-10-06 19:57:45 7920 [ERROR] Aborting
2014-10-06 19:57:58 6240 [ERROR] InnoDB: space header page consists of zero bytes in data file D:\xampp1\mysql\data\ibdata1
2014-10-06 19:57:58 6240 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
2014-10-06 19:57:58 6240 [ERROR] Plugin 'InnoDB' init function returned error.
2014-10-06 19:57:58 6240 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2014-10-06 19:57:58 6240 [ERROR] Unknown/unsupported storage engine: InnoDB
2014-10-06 19:57:58 6240 [ERROR] Aborting
2014-10-06 21:10:22 5612 [ERROR] InnoDB: space header page consists of zero bytes in data file D:\xampp1\mysql\data\ibdata1
2014-10-06 21:10:22 5612 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
2014-10-06 21:10:22 5612 [ERROR] Plugin 'InnoDB' init function returned error.
2014-10-06 21:10:22 5612 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2014-10-06 21:10:22 5612 [ERROR] Unknown/unsupported storage engine: InnoDB
2014-10-06 21:10:22 5612 [ERROR] Aborting
.......
......
Please help me out to install this web server.
Thanks
stop your other mysql service
or
open C:\xampp\mysql\bin\my.ini then change the port
...
[mysqld]
port= 3306 <----- change to another port number
...
That is because that specific port is currently being used by another service.
http://www.sitepoint.com/unblock-port-80-on-windows-run-apache/
https://sites.google.com/site/anashkb/port-80-in-use
A similar question was also asked, you can view it
Apache server Installation failed(Port 80 or 443 already in use)
The Apache is uses port 80 and that port is already in use in your system (may be you are using skype).
In order to start the Apache please make free the port 80 in system. (sign out from skype or other program which using port 80). And try again.
Related
I am trying to setup MariaDB on my local machine.
Whenever I try to log in with:
mariadb -u <mac_name> or mariadb -u root I get this error:
using my mac password also doesn't work.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
When I tail the logs found at /usr/local/var/mysql/<host_name>.err or /usr/local/var/mysql/<host_name>.local.err
I get these errors:
[Note] InnoDB: Completed initialization of buffer pool
[ERROR] InnoDB: Invalid flags 0x4800 in ./ibdata1
[ERROR] InnoDB: Plugin initialization aborted with error Data structure corruption
[Note] InnoDB: Starting shutdown...
[ERROR] Plugin 'InnoDB' init function returned error.
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
[Note] Plugin 'FEEDBACK' is disabled.
[ERROR] Could not open mysql.plugin table. Some plugins may be not loaded
[ERROR] Unknown/unsupported storage engine: InnoDB
[ERROR] Aborting
Does anyone know how I could get this working?
OS : Windows Server 2008 R2
MYSQL : MY SQL Server 5.6
ERROR :
2015-04-02 14:31:52 2956 [ERROR] InnoDB: .\ibdata1 can't be opened in read-write mode
2015-04-02 14:31:52 2956 [ERROR] InnoDB: The system tablespace must be writable!
2015-04-02 14:31:52 2956 [ERROR] Plugin 'InnoDB' init function returned error.
2015-04-02 14:31:52 2956 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2015-04-02 14:31:52 2956 [ERROR] Unknown/unsupported storage engine: InnoDB
2015-04-02 14:31:52 2956 [ERROR] Aborting
Steps Tried :
1. Deleted ib_logfile0 and ib_logfile1 and checked.
2. Edited my-default.ini
basedir="C:\mysql-5.6.11-win32\"
datadir="C:\mysql-5.6.11-win32\data\"
port=3306
server-id=1
bind-address=127.0.0.1
**Current files/folders in Mysql/data**:
WIN-BVVOL64R2ST.pid
WIN-BVVOL64R2ST.err
ibdata1
auto.CNF
performance_schema and
mysql
Need help to fix this, very much important.
And please let me know how can i take backup if MySQL service is not running.
Thanks in advance.
.\ibdata1 can't be opened in read-write mode
implies a permission problem, either on that file, or on the directory it is in.
Changing basedir will lose track of ibdata1, hence should be used with caution.
I installed mariadb on my archlinux box recently and wanted to run mysqld with different data and tmp directories
[mysqld]
user = mysql
port = 3306
datadir = <datapath>
tmpdir = <datapath>/tmp
When running mysqld I get the following error messages:
InnoDB: The InnoDB memory heap is disabled
InnoDB: Mutexes and rw_locks use GCC atomic builtins
InnoDB: Compressed tables use zlib 1.2.8
InnoDB: Using Linux native AIO
[ERROR] mysqld: Can't create/write to file '<datapath>/tmp/ib8dOkCX' (Errcode: 13)
InnoDB: Error: unable to create temporary file; errno: 13
[ERROR] Plugin 'InnoDB' init function returned error.
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
[ERROR] mysqld: Can't create/write to file '<datapath>/aria_log_control' (Errcode: 13)
[ERROR] mysqld: Got error 'Can't create file' when trying to use aria control file '<datapath>/aria_log_control'
[ERROR] Plugin 'Aria' init function returned error.
[ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
[ERROR] Unknown/unsupported storage engine: InnoDB
[ERROR] Aborting
[Note] mysqld: Shutdown complete
I have made sure that the mysql user is the owner and has the proper permissions on the data and tmp directories.
When running mysqld as root, everything works just fine. When using the default tmpdir I still get the error when create/write to file /aria_log_control. Anyone who knows where I fail?
you should replace <datapath> with real path to data files which contains folder tmp
I create /mysqltmp directory as a root user and give it the same permissions as the /tmp directory (chmod 1777 /mysqltmp). But when I start mysql, service fails to start and I get the following error in logs:
/usr/sbin/mysqld: Can't create/write to file '/mysqltmp/ib9AeHFf' (Errcode: 13)
140417 9:46:46 InnoDB: Error: unable to create temporary file; errno: 13
140417 9:46:46 [ERROR] Plugin 'InnoDB' init function returned error.
140417 9:46:46 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140417 9:46:46 [ERROR] Unknown/unsupported storage engine: InnoDB
140417 9:46:46 [ERROR] Aborting
Error 13 is "Permission denied".
MySQL server version is 5.5.35 and OS is Ubuntu 12.04.4.
I tried to restart mysql. However it did not restart. Here is the content of mysql.log:
131217 17:01:09 InnoDB: Starting shutdown...
131217 17:01:11 InnoDB: Shutdown completed; log sequence number 153229469
131217 17:01:11 [Note] /usr/libexec/mysqld: Shutdown complete
131217 17:01:11 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
131217 17:01:11 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
131217 17:01:11 [Note] Plugin 'FEDERATED' is disabled.
131217 17:01:11 InnoDB: The InnoDB memory heap is disabled
131217 17:01:11 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131217 17:01:11 InnoDB: Compressed tables use zlib 1.2.3
131217 17:01:11 InnoDB: Using Linux native AIO
^G/usr/libexec/mysqld: Can't create/write to file '/tmp/ibsMvrkL' (Errcode: 13)
131217 17:01:11 InnoDB: Error: unable to create temporary file; errno: 13
131217 17:01:11 [ERROR] Plugin 'InnoDB' init function returned error.
131217 17:01:11 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
131217 17:01:11 [ERROR] Unknown/unsupported storage engine: InnoDB
131217 17:01:11 [ERROR] Aborting
Can any one help me to find the reason of this? In fact mysql was working before this time and it seems that it is not a regular error!!Please let me know if any other information is nedeed.
Thanks a lot
Have you checked if there is a problem about your disk partition. May be its out of space or have a problem. The error clearly shows the problem is caused by creating temp file failure. Rest is listed because InnoDB failed to initialize.
This error clearly mentioned that MySQL daemon unable to create a temporary file under /tmp directory.
Please check the permission of /tmp directory.
Your /tmp directory permission should have a sticky bit. below is the example for same.
drwxrwxrwt 3 root root 4.0K Feb 4 13:48 tmp