Bug #95413 | When using installer, I get connection error | ||
---|---|---|---|
Submitted: | 18 May 2019 10:02 | Modified: | 21 May 2019 14:38 |
Reporter: | Tim Jones | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server: Installing | Severity: | S2 (Serious) |
Version: | 8.0.16, 8.0.22 | OS: | Windows (Windows 10) |
Assigned to: | CPU Architecture: | x86 |
[18 May 2019 10:02]
Tim Jones
[18 May 2019 10:05]
Tim Jones
My CPU details: C:\WINDOWS\system32>wmic cpu get caption, deviceid, name, numberofcores, maxclockspeed, status Caption DeviceID MaxClockSpeed Name NumberOfCores Status AMD64 Family 21 Model 112 Stepping 0 CPU0 3000 AMD A9-9420 RADEON R5, 5 COMPUTE CORES 2C+3G 2 OK
[19 May 2019 21:40]
MySQL Verification Team
Open a command line prompt with administrator privileges, go to bin install directory and check the path of my.ini file using the service name i.e? C:\>cd "Program Files\MySQL\MySQL Server 8.0\bin" C:\Program Files\MySQL\MySQL Server 8.0\bin>sc qc mysql80 | findstr defaults-file BINARY_PATH_NAME : "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe" --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" MySQL80 check if the service is running trying to stop it : C:\Program Files\MySQL\MySQL Server 8.0\bin>net stop mysql80 The MySQL80 service is stopping. The MySQL80 service was stopped successfully. Now try to start the server with below command and print here what you get: C:\Program Files\MySQL\MySQL Server 8.0\bin>mysqld --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" --standalone --console 2019-05-19T21:37:08.202077Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release. 2019-05-19T21:37:08.205507Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.16) starting as process 9624 2019-05-19T21:37:10.382580Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2019-05-19T21:37:10.427625Z 0 [System] [MY-010931] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: ready for connections. Version: '8.0.16' socket: '' port: 3306 MySQL Community Server - GPL. 2019-05-19T21:37:10.584383Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060 if the server starts like below then try to login using the mysql.exe: c:\Program Files\MySQL\MySQL Server 8.0\bin>mysql -uroot -p Enter password: ********** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 8.0.16 MySQL Community Server - GPL Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
[20 May 2019 16:44]
Tim Jones
Hi. I don't have a my.ini file!? C:\Program Files\MySQL\MySQL Server 8.0\bin>dir Volume in drive C is Windows Volume Serial Number is 10EE-D40C Directory of C:\Program Files\MySQL\MySQL Server 8.0\bin 20/05/2019 17:11 <DIR> . 20/05/2019 17:11 <DIR> .. 13/04/2019 14:34 677,888 harness-library.dll 13/04/2019 06:57 6,391,104 ibd2sdi.exe 13/04/2019 06:57 6,359,872 innochecksum.exe 01/04/2019 10:55 2,104,832 libeay32.dll 01/04/2019 10:54 1,839,616 libmecab.dll 13/04/2019 06:57 6,252,352 lz4_decompress.exe 13/04/2019 06:57 6,646,592 myisamchk.exe 13/04/2019 06:57 6,478,656 myisamlog.exe 13/04/2019 06:57 6,545,216 myisampack.exe 13/04/2019 06:57 6,522,688 myisam_ftdump.exe 13/04/2019 06:57 6,616,384 mysql.exe 13/04/2019 06:57 6,516,544 mysqladmin.exe 13/04/2019 06:57 6,817,088 mysqlbinlog.exe 13/04/2019 06:57 6,528,832 mysqlcheck.exe 13/04/2019 06:57 46,693,696 mysqld.exe 13/04/2019 06:57 6,586,176 mysqldump.exe 13/04/2019 14:16 7,902 mysqldumpslow.pl 13/04/2019 14:16 28,713 mysqld_multi.pl 13/04/2019 06:57 6,508,864 mysqlimport.exe 13/04/2019 06:57 6,990,144 mysqlpump.exe 13/04/2019 06:57 7,056,704 mysqlrouter.exe 13/04/2019 14:34 254,464 mysqlrouter_http.dll 13/04/2019 06:57 7,125,312 mysqlrouter_passwd.exe 13/04/2019 06:57 6,240,064 mysqlrouter_plugin_info.exe 13/04/2019 06:57 6,506,816 mysqlshow.exe 13/04/2019 06:57 6,525,248 mysqlslap.exe 13/04/2019 14:16 7,392 mysql_config.pl 13/04/2019 06:57 6,281,024 mysql_config_editor.exe 13/04/2019 06:57 6,505,792 mysql_secure_installation.exe 13/04/2019 06:57 6,310,208 mysql_ssl_rsa_setup.exe 13/04/2019 06:57 6,206,784 mysql_tzinfo_to_sql.exe 13/04/2019 06:57 6,612,288 mysql_upgrade.exe 13/04/2019 06:57 6,264,128 my_print_defaults.exe 13/04/2019 06:57 6,969,664 perror.exe 01/04/2019 10:55 357,376 ssleay32.dll 13/04/2019 06:58 6,226,752 zlib_decompress.exe 36 File(s) 228,563,175 bytes 2 Dir(s) 912,449,863,680 bytes free C:\Program Files\MySQL\MySQL Server 8.0\bin>dir *.ini Volume in drive C is Windows Volume Serial Number is 10EE-D40C Directory of C:\Program Files\MySQL\MySQL Server 8.0\bin File Not Found C:\Program Files\MySQL\MySQL Server 8.0\bin>
[20 May 2019 16:46]
Tim Jones
Disregard :) These instructions are confusing.
[20 May 2019 16:50]
Tim Jones
OK, think I'm with you now :) Service wouldn't start: C:\Program Files\MySQL\MySQL Server 8.0\bin>mysqld --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" --standalone --console [warn] evsig_init_: socketpair: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. 2019-05-20T16:45:45.992243Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release. 2019-05-20T16:45:45.996814Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.16) starting as process 9668 2019-05-20T16:46:13.368498Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2019-05-20T16:46:13.532845Z 0 [System] [MY-010931] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: ready for connections. Version: '8.0.16' socket: '' port: 3306 MySQL Community Server - GPL. 2019-05-20T16:46:13.549362Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060
[21 May 2019 8:48]
MySQL Verification Team
Thank you for the feedback. This behavior is about your OS environment and not from the installer and server, doing a search you could find similar issue with others products.
[21 May 2019 8:59]
Tim Jones
Hi, So what might that be then? It's a brand new laptop. It sounds as if there's a pre-requisite that's required that isn't documented as part of your install. How do I find out what it needs? I've installed SQL Server just fine (probably have to use that now). What other products have similar behaviour? I'm not sure how I find out what those products are because I have no idea what my current issue even is other than it won't connect.
[21 May 2019 10:21]
MySQL Verification Team
When you ran the start server from command line you got: C:\Program Files\MySQL\MySQL Server 8.0\bin>mysqld --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" --standalone --console [warn] evsig_init_: socketpair: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. Then after that the server started: 2019-05-20T16:46:13.532845Z 0 [System] [MY-010931] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: ready for connections. Version: '8.0.16' socket: '' port: 3306 MySQL Community Server - GPL. 2019-05-20T16:46:13.549362Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060 Try from administrator command line start the service, be sure not there is an instance of the server running: net start mysql_service_name (mysql80?)
[21 May 2019 10:33]
Tim Jones
Hi, many thanks for a quick reply! I get: C:\Program Files\MySQL\MySQL Server 8.0\bin>net start mysql80 The MySQL80 service is starting........ The MySQL80 service could not be started. More help is available by typing NET HELPMSG 3523. Help message not very helpful ha ha. C:\Program Files\MySQL\MySQL Server 8.0\bin>net helpmsg 3523 The *** service could not be started.
[21 May 2019 10:47]
MySQL Verification Team
Probably the error was printed in the err log file which you find on data directory host_name.err i.e: c:\ProgramData\MySQL\MySQL Server 8.0\Data>dir *.err Volume in drive C has no label. Volume Serial Number is 6005-E7EC Directory of c:\ProgramData\MySQL\MySQL Server 8.0\Data 05/21/2019 06:47 AM 5,386 URAL.err 1 File(s) 5,386 bytes 0 Dir(s) 58,378,227,712 bytes free that was the reason asked you to run it as standalone.
[21 May 2019 10:55]
MySQL Verification Team
I forgot to ask you to check the Windows Event Viewer for errors.
[21 May 2019 10:55]
Tim Jones
It seems to have started? [warn] evsig_init_: socketpair: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. 2019-05-21T10:50:44.619419Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release. 2019-05-21T10:50:44.625985Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.16) starting as process 5428 2019-05-21T10:51:13.719337Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2019-05-21T10:51:14.150681Z 0 [System] [MY-010931] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: ready for connections. Version: '8.0.16' socket: '' port: 3306 MySQL Community Server - GPL. 2019-05-21T10:51:14.281581Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060 When I ran it on command line, it timed out and errored but if I left it another 45 seconds, it did indeed start. Does that mean I can carry on with the instruction from a couple of days ago?
[21 May 2019 11:45]
Tim Jones
Hi, cleared down the event logs and tried again. Nothing appeared there.
[21 May 2019 11:50]
MySQL Verification Team
It seems to have started? <CUT> 2019-05-21T10:51:14.150681Z 0 [System] [MY-010931] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: ready for connections. Version: '8.0.16' socket: '' port: 3306 MySQL Community Server - GPL. However what about log error file and Windows Event viewer?
[21 May 2019 11:58]
Tim Jones
Hi, think our mails crossed wires. [21 May 10:55] Tim Jones --> Eventviewer didn't show up anything (stopped service, cleared logs and reran netstart) [21 May 10:55] Tim Jones --> that extract was from the *.err file.
[21 May 2019 12:13]
MySQL Verification Team
Well the issue here for me is that I couldn't repeat I did search and that error message I only found with people using Azure stuff, so I could suggest you, check firewall, anti-virus and then remove the current install cleaning all the directories of the current install and try to install again if the issue continues then try manual install.
[21 May 2019 14:38]
Tim Jones
OK, will do thanks. Really appreciate all of your help with this. Hopefully it will get sorted! Cheers.
[5 Nov 2020 13:27]
MySQL Verification Team
Bug #101404 marked as duplicate of this one.
[30 Dec 2020 18:42]
Luân Hoàng
Hi, When i run the start server from command line: C:\Program Files\MySQL\MySQL Server 8.0\bin>mysqld --defaults-file="C:\ProgramData\MySQL\MySQL Server 8.0\my.ini" --standalone --console I get: 2020-12-30T17:20:27.108265Z 0 [Warning] [MY-010915] [Server] 'N0_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release. 2020-12-30T17:20:27.110266Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.22) starting as process 6244 2020-12-30T17:20:27.1422672 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2020-12-30T17:20:28.589350Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2020-12-30T17:20:30.912484Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060 2020-12-30T17:20:31.271503Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2020-12-30T17:20:31.276504Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2020-12-30T17:20:31.575521Z 0 [System] [MY-010931] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: ready for connections. Version: '8.0.22' socket: '' port: 3306 MySQL Comnunity Server - GPL. Nothing else happened Operating system which this laptop used is win7
[10 Jul 2022 3:42]
Devanshu Nalavade
Hi I'm having a similar problem and I ran the command line code, this is the output I get: mysqld: File '.\POSEIDON-bin.index' not found (OS errno 13 - Permission denied) 2022-07-10T03:39:41.503780Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release. 2022-07-10T03:39:41.505402Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.29) starting as process 8224 2022-07-10T03:39:41.510546Z 0 [ERROR] [MY-010119] [Server] Aborting 2022-07-10T03:39:41.510815Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.29) MySQL Community Server - GPL.
[10 Jul 2022 3:42]
Devanshu Nalavade
Hi I'm having a similar problem and I ran the command line code, this is the output I get: mysqld: File '.\POSEIDON-bin.index' not found (OS errno 13 - Permission denied) 2022-07-10T03:39:41.503780Z 0 [Warning] [MY-010915] [Server] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release. 2022-07-10T03:39:41.505402Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.29) starting as process 8224 2022-07-10T03:39:41.510546Z 0 [ERROR] [MY-010119] [Server] Aborting 2022-07-10T03:39:41.510815Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.29) MySQL Community Server - GPL.