I have two MySQL installations on two different PCs not connected to each other. I made some changes in the my.ini file of PC 1 and tried using this file on PC 2, but MySQL service fails to start. Why the copied My.INI not working on my PC when both installations were configured same and the instance names also similar?
Mysql – Why a copy of the.ini of other MySQL installation not working on the PC
MySQLmysql-5.5
Related Question
- MySQL 5.7 not accepting values of innodb_buffer_pool_instances greater than 1
- Mysql – Why is MYSQL not starting
- MYSQL workbench & other IDEs not working on fresh OS after reinstall
- MySql service on Windows won’t start after changing datadir
- MySql 5.6: Ignores innodb_page_size setting in the.ini
- MySQL 8.0 Triggers Current_User not working
- MySQL, Group Replication not surviving after a single restart
Best Answer
First, let's make sure MySQL evens runs properly apart from the service.
Open a DOS Window Session and run these commands
When you launch mysqld like this, mysqld expects my.ini to be in the parent directory, which is C:\Program Files\MySQL\MySQL 5.5. Using start in DOS will open another DOS Window as a background task. If any error messages appear in that window and that forked DOS Session quickly disappears from the screen, check the Task Manager to see if mysqld is running. If it is, you should be able to log into mysql. If mysqld is not in the Task Manager, launch it as a foreground task like this:
If the DOS prompt appears after some error messages, then mysqld failed. If error messages come up and the DOS prompt does not appear, mysqld is up.
If the settings you configured in my.ini on PC 2 is not in
SHOW VARIABLES;
then mysqld cannot see the my.ini. To reiterate, mysqld expects my.ini to be in the parent directory.