mysql server down after changing innodb_buffer_pool_size - mysql

I change my innodb_buffer_pool_size from 8M to 2G in my.ini. After that, I cannot connect to my SQL server.
My local server is down - when I try to log in using mysql -u root -p in window command., I get:
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061).
I tried the following but still cannot restart my server:
Start the MySQL80 via windows service (start and shutdown)
Remove the ib_logfile (ib_logfile0, ib_logfile1, ib_buffer_pool, ib_data1
from ProgramData\MySQL\MySQL Server 8.0\Data
From my .err code (no idea why it is in my download folder while MySQL Server is installed in C drive):
2020-05-02T04:17:52.952456Z 0 [System] [MY-010116] [Server] C:\Users\ME\Downloads\mysql-8.0.19-winx64 (2)\mysql-8.0.19-winx64\bin\mysqld (mysqld 8.0.19) starting as process 5928
2020-05-02T04:17:53.320285Z 1 [ERROR] [MY-011011] [Server] Failed to find valid data directory.
2020-05-02T04:17:53.352381Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2020-05-02T04:17:53.353424Z 0 [ERROR] [MY-010119] [Server] Aborting
2020-05-02T04:17:53.357792Z 0 [System] [MY-010910] [Server] C:\Users\ME\Downloads\mysql-8.0.19-winx64 (2)\mysql-8.0.19-winx64\bin\mysqld: Shutdown complete (mysqld 8.0.19) MySQL Community Server - GPL.
Much appreciated for MySQL Guru's advices!

Related

The MySQL80 service on Local Computer started and then stopped and cant create local file

When I try to start the MySQL80 service it gives the following warning "The MySQL57 service on Local Computer started and then stopped and cant create local file". When reading answers on the forum, I came to the conclusion that the problem may be this:
in the directory: C:\Program Files\MySQL\MySQL Server 8.0\bin when using the command: mysqld --initialize --console
I get the following error:
2022-02-20T20:38:43.800979Z 0 [System] [MY-013169] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.28) initializing of server in progress as process 6148
2022-02-20T20:38:43.818861Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2022-02-20T20:38:43.822839Z 1 [ERROR] [MY-012576] [InnoDB] Unable to create temporary file inside "C:\Users\Public\Documents\Wondershare\CreatorTemp"; error: 2
2022-02-20T20:38:43.822946Z 1 [ERROR] [MY-012929] [InnoDB] InnoDB Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
2022-02-20T20:38:43.823742Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2022-02-20T20:38:43.823838Z 0 [ERROR] [MY-013455] [Server] The newly created data directory C:\Program Files\MySQL\MySQL Server 8.0\data\ by --initialize is unusable. You can remove it.
2022-02-20T20:38:43.824250Z 0 [ERROR] [MY-010119] [Server] Aborting
2022-02-20T20:38:43.824822Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.28) MySQL Community Server - GPL.
Does anyone have any solution?

Mysql installation problems. (The mysql local service started and stopped . Some services...)

I understand that this question has been asked alot of times before with and I have tried everyone of their solutions. It hasn't worked for me. To summarize I'm installing using the windows msi installer version 8.0.22.0 to install mysql. Everything goes fine in the installation until we get to the starting services part of the installation. There it gets stuck at starting server never advancing. I know that's due to the service not starting and I do the recommended step of running services.msc as a service. I'll also paste my error log that I got from the programdata/mysql/mysql server 8.0/ directory.
Important info
mysql version 8.0.22.0
using msi installer
windows 10
2020-11-08T19:46:08.681432Z 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.
2020-11-08T19:46:08.682752Z 0 [System] [MY-010116] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.22) starting as process 17300
2020-11-08T19:46:08.719892Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2020-11-08T19:46:09.221182Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2020-11-08T19:46:09.369387Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060
2020-11-08T19:46:09.464341Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
2020-11-08T19:46:09.465186Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.
2020-11-08T19:46:09.477256Z 0 [ERROR] [MY-013129] [Server] A message intended for a client cannot be sent there as no client-session is attached. Therefore, we're sending the information to the error-log instead: MY-000001 - Can't create/write to file 'C:\ProgramData\MySQL\MySQL Server 8.0\Data????.pid' (OS errno 2 - No such file or directory)
2020-11-08T19:46:09.479597Z 0 [ERROR] [MY-010092] [Server] Can't start server: can't create PID file: No such file or directory
2020-11-08T19:46:09.485610Z 0 [ERROR] [MY-010119] [Server] Aborting
2020-11-08T19:46:10.655699Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.22) MySQL Community Server - GPL.
The questions I've looked at
the MySQL service on local computer started and then stopped
The MSSQLSERVER service on Local Computer started and then stopped. Some services stop automatically
You have to check in your my.ini which is located in C:\ProgramData\MySQL\MySQL Server 8.0\
Can't create/write to file C:\ProgramData\MySQL\MySQL Server 8.0\Data????.pid
As you can see the correct path would be
[mysqld]
pid-file = "C:/ProgramData/MySQL/MySQL Server 8.0/Data/????.pid"

Unable to create temporary file; errno: 2 while Running Mysql server on Windows

I am trying to run Mysql server 8.0.19 on my Windows machine. I am using Mysql installer to start the mysql server. But I get the below error. I uninstalled and installed many times. I tried a lot but unable to solve my issue. can someone please help me?
C:>mysqld --initialize --console
2020-06-17T20:40:26.353489Z 0 [System] [MY-013169] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.19) initializing of server in progress as process 9044
2020-06-17T20:40:26.398191Z 1 [ERROR] [MY-012576] [InnoDB] Unable to create temporary file; errno: 2
2020-06-17T20:40:26.400178Z 1 [ERROR] [MY-012929] [InnoDB] InnoDB
Database creation was aborted with error Generic error. You may need to delete the ibdata1 file before trying to start up again.
2020-06-17T20:40:26.403787Z 0 [ERROR] [MY-010020] [Server] Data
Dictionary initialization failed.
2020-06-17T20:40:26.405387Z 0 [ERROR] [MY-013236] [Server] The designated data directory C:\ProgramData\MySQL\MySQL Server 8.0\Data\ is unusable. You can > remove all files that the server added to it.
2020-06-17T20:40:26.408100Z 0 [ERROR] [MY-010119] [Server] Aborting
2020-06-17T20:40:26.409738Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.19) MySQL Community Server - GPL.

OS errno 13 - Permission Denied MySQL Server

I'm having issues with MySQL workbench - I can't seem to start the server. In the command line, I navigate to:
C:\Program Files\MySQL\MySQL Server 8.0\bin\
And then run mysqld --initialize
I get the following error:
mysqld: Can't create directory 'C:\Program Files\MySQL\MySQL Server 8.0\data\' (OS errno 13 - Permission denied)
2018-12-10T23:18:55.211840Z 0 [System] [MY-013169] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.11) initializing of server in progress as process 36568
2018-12-10T23:18:55.227851Z 0 [ERROR] [MY-010119] [Server] Aborting
2018-12-10T23:18:55.230796Z 0 [System] [MY-010910] [Server] C:\Program Files\MySQL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.11) MySQL Community Server - GPL.
Can anyone tell me how to fix this issue? I already checked the permissions on the MySQL Server 8.0 folder, and have set all the permissions to Allow.
You have to give writing permissions to the following folders:
PATH/DATA/
PATH/QUERIES/
PATH/LOG/
for the user who starts the MySQL windows service, which if not a special one you created and use for such purpose, is NETWORK SERVICE.

MySQL: mysqld in cmd returns "Can't change dir to..."

I've just joined to ask for help regarding this.
Whenever I type mysqld in CMD I get the following:
mysqld: Can't change dir to 'c:\Program Files\MySQL\MySQL Server 8.0\data\' (OS
errno 2 - No such file or directory)
2018-08-12T09:16:41.903311Z 0 [System] [MY-010116] [Server] c:\Program Files\MyS
QL\MySQL Server 8.0\bin\mysqld.exe (mysqld 8.0.12) starting as process 2740
2018-08-12T09:16:41.965711Z 0 [Warning] [MY-010091] [Server] Can't create test f
ile c:\Program Files\MySQL\MySQL Server 8.0\data\Moonwilles-PC.lower-test
2018-08-12T09:16:41.965711Z 0 [Warning] [MY-010091] [Server] Can't create test f
ile c:\Program Files\MySQL\MySQL Server 8.0\data\Moonwilles-PC.lower-test
2018-08-12T09:16:41.965711Z 0 [ERROR] [MY-010172] [Server] failed to set datadir
to c:\Program Files\MySQL\MySQL Server 8.0\data\
2018-08-12T09:16:41.965711Z 0 [ERROR] [MY-010119] [Server] Aborting
2018-08-12T09:16:41.965711Z 0 [System] [MY-010910] [Server] c:\Program Files\MyS
QL\MySQL Server 8.0\bin\mysqld.exe: Shutdown complete (mysqld 8.0.12) MySQL Com
munity Server - GPL.
I've looked literally everywhere, I installed MySQL using the MySQL installer on 3 different computers, I got the same problem on all of them. This is the most ridiculous and frustrating thing I've ever encountered.
The MySQL service is on.
I tried typing mysqld --initialize and it seems to have made things worse as whenever I type 'mysqld' CMD now 'freezes' momentarily before actually executing the command.
The 'my.ini' file is setup correctly.
The data directory is in 'C:\ProgramData\MySQL\MySQL Server 8.0\Data'.
I've forgotten my root password and I am trying to recover it. I followed the guide found here: https://dev.mysql.com/doc/refman/8.0/en/resetting-permissions.html and it's not even working.
I cannot log in to phpMyAdmin anymore.