I try starting the xampp mysql service and i failed. I already disable mysql service in the windows service panel and i change the ports 3306 to 3309 in the my.ini file.
# The following options will be passed to all MySQL clients
[client]
# password = your_password
port = 3309 // change here
socket = "C:/xampp/mysql/mysql.sock"
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
port= 3309 // change here
socket = "C:/xampp/mysql/mysql.sock"
basedir = "C:/xampp/mysql"
tmpdir = "C:/xampp/tmp"
datadir = "C:/xampp/mysql/data"
pid_file = "mysql.pid"
# enable-named-pipe
key_buffer = 16M
max_allowed_packet = 1M
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
log_error = "mysql_error.log"
However, it stills say that
5:56:19 PM [mysql] Problem detected!
5:56:19 PM [mysql] Port 3306 in use by "C:\mysql_community_server\bin\mysqld MySQL"!
5:56:19 PM [mysql] MySQL WILL NOT start without the configured ports free!
5:56:19 PM [mysql] You need to uninstall/disable/reconfigure the blocking application
5:56:19 PM [mysql] or reconfigure MySQL and the Control Panel to listen on a different port
Logs:
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
2015-11-10 15:27:11 5152 [Note] Event Scheduler: Purging the queue. 0 events
2015-11-10 15:27:11 5732 [Note] InnoDB: FTS optimize thread exiting.
2015-11-10 15:27:11 5152 [Note] InnoDB: Starting shutdown...
2015-11-10 15:27:13 5152 [Note] InnoDB: Shutdown completed; log sequence number 1835037
2015-11-10 15:27:13 5152 [Note] C:\xampp\mysql\bin\mysqld.exe: Shutdown complete
Question:
Why I change to port 3309 and it is still connecting to the port 3306?
I already disable other mysql service so even though it is 3306 and it should still able to connect
Related
I have migrated my project from AWS to Google Cloud. I had a working application earlier, but now after migrating to GCP, mysqli_connect no longer seems to work.
So far, I have installed the following:
php-mysql-5.4.16-42.el7.x86_64
php-pdo-5.4.16-42.el7.x86_64
php-5.4.16-42.el7.x86_64
php-common-5.4.16-42.el7.x86_64
php-cli-5.4.16-42.el7.x86_64
mariadb-libs-5.5.52-1.el7.x86_64
mariadb-5.5.52-1.el7.x86_64
I am able to access MySQL using terminal but unable to connect to the remote database (on AWS RDS) using PHP. The RDS Database doesn't have any restriction on IP Connection and is open to the world. I have tried removing PHP, MySQL, MariaDB completely, however, no success. The script to connect to the database is unchanged since migration. Other functions such as mysqli_fetch_assoc and mysqli_query are not throwing any error. Here is the content of mysqld_log:
170329 07:20:15 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
170329 07:31:09 mysqld_safe Logging to '/var/log/mysqld.log'.
170329 07:31:09 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2017-03-29 07:31:09 0 [Warning] s deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-03-29 07:31:09 0 [Note] /usr/sbin/mysqld (mysqld 5.6.35) starting as process 32611 ...
2017-03-29 07:31:09 32611 [Warning] Buffered warning: Changed limits: max_open_files: 1024 (requested 5000)
2017-03-29 07:31:09 32611 [Warning] Buffered warning: Changed limits: table_open_cache: 431 (requested 2000)
2017-03-29 07:31:09 32611 [Note] Plugin 'FEDERATED' is disabled.
2017-03-29 07:31:09 32611 [Note] InnoDB: Using atomics to ref count buffer pool pages
2017-03-29 07:31:09 32611 [Note] InnoDB: The InnoDB memory heap is disabled
2017-03-29 07:31:09 32611 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2017-03-29 07:31:09 32611 [Note] InnoDB: Memory barrier is not used
2017-03-29 07:31:09 32611 [Note] InnoDB: Compressed tables use zlib 1.2.3
2017-03-29 07:31:09 32611 [Note] InnoDB: Using Linux native AIO
2017-03-29 07:31:09 32611 [Note] InnoDB: Using CPU crc32 instructions
2017-03-29 07:31:09 32611 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2017-03-29 07:31:09 32611 [Note] InnoDB: Completed initialization of buffer pool
2017-03-29 07:31:09 32611 [Note] InnoDB: Highest supported file format is Barracuda.
2017-03-29 07:31:09 32611 [Note] InnoDB: 128 rollback segment(s) are active.
2017-03-29 07:31:09 32611 [Note] InnoDB: Waiting for purge to start
2017-03-29 07:31:09 32611 [Note] InnoDB: 5.6.35 started; log sequence number 1626037
2017-03-29 07:31:09 32611 [Note] Server hostname (bind-address): '*'; port: 3306
2017-03-29 07:31:09 32611 [Note] IPv6 is available.
2017-03-29 07:31:09 32611 [Note] - '::' resolves to '::';
2017-03-29 07:31:09 32611 [Note] Server socket created on IP: '::'.
2017-03-29 07:31:09 32611 [Note] Event Scheduler: Loaded 0 events
2017-03-29 07:31:09 32611 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.6.35' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server (GPL)
You write that you use mysqli_connect, but you have installed php-mysql-5.4.16-42.el7.x86_64 (Note: no 'i'). You need the package for mysqli in order for PHP to connect.
I have two version of xampp in my Laptop version 7(good and working) and xampp that not working v5.6.28. I tried a lot of tweaks, I changed the port mysql.ini, httpd, etc. Deleting not important files in mysql data. Can anyone please help me this problem.
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
2015-11-10 15:27:11 5152 [Note] Event Scheduler: Purging the queue. 0 events
2015-11-10 15:27:11 5732 [Note] InnoDB: FTS optimize thread exiting.
2015-11-10 15:27:11 5152 [Note] InnoDB: Starting shutdown...
2015-11-10 15:27:13 5152 [Note] InnoDB: Shutdown completed; log sequence number 1835037
2015-11-10 15:27:13 5152 [Note] C:\xampp\mysql\bin\mysqld.exe: Shutdown complete
Sometimes it stacked up at "attempting to start mysql app..." and sometimes this error occur.
Error: MySQL shutdown unexpectedly.
2:43:47 PM [mysql] This may be due to a blocked port, missing dependencies,
2:43:47 PM [mysql] improper privileges, a crash, or a shutdown by another method.
2:43:47 PM [mysql] Press the Logs button to view error logs and check
2:43:47 PM [mysql] the Windows Event Viewer for more clues
2:43:47 PM [mysql] If you need more help, copy and post this
2:43:47 PM [mysql] entire log window on the forums
you can use wamp server it`s alternative of xampp and you can run both php 5.6 and php7
in new version
http://www.wampserver.com/en/
I just start mysql but there is some error. I have config my.cnf and descrease innodb_buffer_pool_size to 64 MB but nothing happend.
/*this showed in xampp*/
9:34:39 AM [mysql] Error: MySQL shutdown unexpectedly.
9:34:39 AM [mysql] This may be due to a blocked port, missing dependencies,
9:34:39 AM [mysql] improper privileges, a crash, or a shutdown by another method.
9:34:39 AM [mysql] Press the Logs button to view error logs and check
9:34:39 AM [mysql] the Windows Event Viewer for more clues
9:34:39 AM [mysql] If you need more help, copy and post this
9:34:39 AM [mysql] entire log window on the forums
then i see to the mysql error log. it shows.
/*this showed in error log*/
2016-05-19 00:34:02 3968 [Note] Plugin 'FEDERATED' is disabled.
2016-05-19 00:34:02 c4c 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.
2016-05-19 00:34:02 3968 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-05-19 00:34:02 3968 [Note] InnoDB: The InnoDB memory heap is disabled
2016-05-19 00:34:02 3968 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-05-19 00:34:02 3968 [Note] InnoDB: Memory barrier is not used
2016-05-19 00:34:02 3968 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-05-19 00:34:02 3968 [Note] InnoDB: Not using CPU crc32 instructions
2016-05-19 00:34:02 3968 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2016-05-19 00:34:02 3968 [Note] InnoDB: Completed initialization of buffer pool
2016-05-19 00:34:02 3968 [Note] InnoDB: Highest supported file format is Barracuda.
2016-05-19 00:34:02 3968 [Note] InnoDB: 128 rollback segment(s) are active.
2016-05-19 00:34:02 3968 [Note] InnoDB: Waiting for purge to start
2016-05-19 00:34:02 3968 [Note] InnoDB: 5.6.24 started; log sequence number 1665234
2016-05-19 00:34:02 3968 [Note] Server hostname (bind-address): '*'; port: 3306
2016-05-19 00:34:02 3968 [Note] IPv6 is available.
2016-05-19 00:34:02 3968 [Note] - '::' resolves to '::';
2016-05-19 00:34:02 3968 [Note] Server socket created on IP: '::'.
2016-05-19 00:53:44 2936 [Note] Plugin 'FEDERATED' is disabled.
how should i fix it?
When Mysql service starts wampmysqld service doesnot works and when wampmysqld service works mysql service stops what should i do. I want use mysql database for php and i m on wamp server.
Mysql log file shows following error(I Googled a lot but nothing
`2016-01-29 19:32:53 6032 [Note] Plugin 'FEDERATED' is disabled.
2016-01-29 19:32:53 6032 [Note] InnoDB: Using atomics to ref count bufferpool pages
2016-01-29 19:32:53 6032 [Note] InnoDB: The InnoDB memory heap is disabled
2016-01-29 19:32:53 6032 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2016-01-29 19:32:53 6032 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-01-29 19:32:53 6032 [Note] InnoDB: Not using CPU crc32 instructions
2016-01-29 19:32:53 6032 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-01-29 19:32:53 6032 [Note] InnoDB: Completed initialization of buffer pool
2016-01-29 19:32:53 6032 [Note] InnoDB: Highest supported file format is Barracuda.
2016-01-29 19:32:54 6032 [Note] InnoDB: 128 rollback segment(s) are active.
2016-01-29 19:32:54 6032 [Note] InnoDB: Waiting for purge to start
2016-01-29 19:32:54 6032 [Note] InnoDB: 5.6.17 started; log sequence number 1625977
2016-01-29 19:32:54 6032 [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: fe08916a-c690-11e5-9c58-902b348a5307.
2016-01-29 19:32:54 6032 [Note] Server hostname (bind-address): '*'; port: 3306
2016-01-29 19:32:54 6032 [Note] IPv6 is available.
2016-01-29 19:32:54 6032 [Note] - '::' resolves to '::';
2016-01-29 19:32:54 6032 [Note] Server socket created on IP: '::'.
2016-01-29 19:32:55 6032 [Note] Event Scheduler: Loaded 0 events
2016-01-29 19:32:55 6032 [Note] wampmysqld: ready for connections.
Version: '5.6.17' socket: '' port: 3306 MySQL Community Server (GPL)
2016-01-29 19:36:19 6032 [Note] wampmysqld: Arrêt normal du serveur'
I just installed XAMPP and when I press start for MySQL, it started normally, and then suddenly it stopped.
Here what I got in the console:
12:52:45 AM [mysql] Error: MySQL shutdown unexpectedly.
12:52:45 AM [mysql] This may be due to a blocked port, missing dependencies,
12:52:45 AM [mysql] improper privileges, a crash, or a shutdown by another method.
12:52:45 AM [mysql] Press the Logs button to view error logs and check
12:52:45 AM [mysql] the Windows Event Viewer for more clues
12:52:45 AM [mysql] If you need more help, copy and post this
12:52:45 AM [mysql] entire log window on the forums
And here is in the error log file:
Version: '5.6.24' socket: '' port: 3306 MySQL Community Server (GPL)
2015-10-22 10:01:43 7700 [Note] Plugin 'FEDERATED' is disabled.
2015-10-22 10:01:43 12f0 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-10-22 10:01:43 7700 [Note] InnoDB: Using atomics to ref count buffer pool pages
2015-10-22 10:01:43 7700 [Note] InnoDB: The InnoDB memory heap is disabled
2015-10-22 10:01:43 7700 [Note] InnoDB: Mutexes and rw_locks use Windows interlocked functions
2015-10-22 10:01:43 7700 [Note] InnoDB: Memory barrier is not used
2015-10-22 10:01:43 7700 [Note] InnoDB: Compressed tables use zlib 1.2.3
2015-10-22 10:01:43 7700 [Note] InnoDB: Not using CPU crc32 instructions
2015-10-22 10:01:43 7700 [Note] InnoDB: Initializing buffer pool, size = 16.0M
2015-10-22 10:01:43 7700 [Note] InnoDB: Completed initialization of buffer pool
2015-10-22 10:01:43 7700 [Note] InnoDB: Highest supported file format is Barracuda.
2015-10-22 10:01:43 7700 [Note] InnoDB: The log sequence numbers 1665234 and 1665234 in ibdata files do not match the log sequence number 39662092 in the ib_logfiles!
2015-10-22 10:01:43 7700 [Note] InnoDB: Database was not shutdown normally!
2015-10-22 10:01:43 7700 [Note] InnoDB: Starting crash recovery.
2015-10-22 10:01:43 7700 [Note] InnoDB: Reading tablespace information from the .ibd files...
2015-10-22 10:01:44 7700 [Note] InnoDB: Restoring possible half-written data pages
2015-10-22 10:01:44 7700 [Note] InnoDB: from the doublewrite buffer...
2015-10-22 10:01:44 7700 [Note] InnoDB: 128 rollback segment(s) are active.
2015-10-22 10:01:44 7700 [Note] InnoDB: Waiting for purge to start
2015-10-22 10:01:44 7700 [Note] InnoDB: 5.6.24 started; log sequence number 39662092
2015-10-22 10:01:44 7700 [Note] Server hostname (bind-address): '*'; port: 3306
2015-10-22 10:01:44 7700 [Note] IPv6 is available.
2015-10-22 10:01:44 7700 [Note] - '::' resolves to '::';
2015-10-22 10:01:44 7700 [Note] Server socket created on IP: '::'.
2015-10-22 10:01:45 7700 [Note] Event Scheduler: Loaded 0 events
2015-10-22 10:01:45 7700 [Note] mysql\bin\mysqld.exe: ready for connections.
Version: '5.6.24' socket: '' port: 3306 MySQL Community Server (GPL)
Can anyone help me? I should get back to work with this XAMPP. Thanks before!
IF You're using Linux/Unix, try to manually start mysql by running mysqld in the lampp folder and see if this works or not?